B Bích Hạnh Member Jan 12, 2022 #1 How do I run a SQL script in terminal? Answer Run the script file Open a command prompt window. In the Command Prompt window, type: sqlcmd -S myServerinstanceName -i C:myScript.sql. Press ENTER.
How do I run a SQL script in terminal? Answer Run the script file Open a command prompt window. In the Command Prompt window, type: sqlcmd -S myServerinstanceName -i C:myScript.sql. Press ENTER.