How to run sql script using SQL Server Management Studio?

后端 未结 3 681
情深已故
情深已故 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:38

    Found this in another thread that helped me: Use xp_cmdshell and sqlcmd Is it possible to execute a text file from SQL query? - by Gulzar Nazim

    EXEC xp_cmdshell  'sqlcmd -S ' + @DBServerName + ' -d  ' + @DBName + ' -i ' + @FilePathName
    

提交回复
热议问题