Skip to content

Instantly share code, notes, and snippets.

@arekgotfryd
Created November 28, 2018 13:05
Show Gist options
  • Save arekgotfryd/4bf2566f430fa42ed20d7b1e1f31c964 to your computer and use it in GitHub Desktop.
Save arekgotfryd/4bf2566f430fa42ed20d7b1e1f31c964 to your computer and use it in GitHub Desktop.
TITLE: Microsoft SQL Server Management Studio Cannot execute script. ADDITIONAL INFORMATION: Insufficient memory to continue the execution of the program. (mscorlib)
Use sqlcmd tool just like below:
SQLCMD -S TestSQLServer\SQLEXPRESS -U sa -P sasa -d AdventureWorks2018 -i "d:\document\sql document\script.sql"
@arekgotfryd
Copy link
Author

Typically, the MSSQLSERVER service is the service of a un-named default instance.

Therefore, try this:

sqlcmd -U sa -S mymachine_name
(without specifying any instance name - just the machine name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment