How do I run a SQL script from the command line?

How do I run a SQL script from the command line?
Answer
Run the script file
  1. Open a command prompt window.
  2. In the Command Prompt window, type: sqlcmd -S myServerinstanceName -i C:myScript.sql.
  3. Press ENTER.
15 июл. 2016 г.
 

Tìm kiếm

Back
Top