diff --git a/mssqlscripter/main.py b/mssqlscripter/main.py
index 333f4f7..4a0524d 100644
--- a/mssqlscripter/main.py
+++ b/mssqlscripter/main.py
@@ -86,8 +86,9 @@ def main(args):
scripting_request.execute()
while not scripting_request.completed():
+ # The sleep prevents burning up the CPU and lets other threads get scheduled.
+ time.sleep(0.1)
response = scripting_request.get_response()
-
if response:
scriptercallbacks.handle_response(response, parameters.DisplayProgress)
diff --git a/sql-xplat-cli.pyproj b/sql-xplat-cli.pyproj
index 9d6e35e..9c31b76 100644
--- a/sql-xplat-cli.pyproj
+++ b/sql-xplat-cli.pyproj
@@ -5,15 +5,13 @@
2.0
{f4bb6290-43f3-4f35-b26e-067c5ef8e64b}
- build.py
+ mssqlscripter\main.py
.
.
.
{888888a0-9f3d-457c-b088-3a5042f75d52}
Standard Python launcher
- Global|PythonCore|2.7
-
-
+ -S localhost -d AdventureWorks2014
False
False
@@ -26,6 +24,7 @@
+
@@ -49,9 +48,7 @@
-
- Code
-
+
@@ -89,9 +86,5 @@
-
-
-
-
\ No newline at end of file
diff --git a/sql-xplat-cli.sln b/sql-xplat-cli.sln
index 8051f79..7095fd2 100644
--- a/sql-xplat-cli.sln
+++ b/sql-xplat-cli.sln
@@ -18,6 +18,6 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {1DD06426-BEB7-4299-B45E-04535B761301}
+ SolutionGuid = {1A0F24BB-2803-4A8C-9816-CB374FAAC673}
EndGlobalSection
EndGlobal