How to run sql script using SQL Server Management Studio?

后端 未结 3 684
情深已故
情深已故 2020-12-13 09:03

I have been following this tutorial: http://www.misfitgeek.com/2010/07/adding-asp-net-membership-to-your-own-database/

I have installed SQL Server Management Studio

3条回答
  •  无人及你
    2020-12-13 09:42

    This website has a concise tutorial on how to use SQL Server Management Studio. As you will see you can open a "Query Window", paste your script and run it. It does not allow you to execute scripts by using the file path. However, you can do this easily by using the command line (cmd.exe):

    sqlcmd -S .\SQLExpress -i SqlScript.sql
    

    Where SqlScript.sql is the script file name located at the current directory. See this Microsoft page for more examples

提交回复
热议问题