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?
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