When sql there is not enough memory to execute the program using the command

 

Use the command 

The first step: win + r type: cmd command, open a command-line tool

Step two: Enter

      sqlcmd -S SERVERNAME -U USERNAME -P PASSWORD -i file.sql

Parameter name: -S server address -U username -P password -i script file path

 E.g:  

sqlcmd -S DESKTOP-ALO838S -U sa -P 55555 -i C:\Users\Administrator\Desktop\SQLQuery1.sql

 

Guess you like

Origin www.cnblogs.com/shanshuiYiCheng/p/11375458.html