Reputation: 5442
Hi i am using SQL SERVER 2008 R2 and i wanted to execute prestored *.sql files in a folder and wanted to run in SSMS. can it be possible and if possible can somebody please help me to get how can we implement that?
Upvotes: 0
Views: 1321
Reputation: 36681
Ok If I'm clear with your question.
.sql
file.vish.sql
name.sqlcmd -S DALVI1 -d cookbookdb -i vish.sql
Note (This is my configuration
DALVI1 is my ServerName
cookbookdb is database name
vish.sql is filename
)
Modify as per your configuration. For More Reference
Upvotes: 1