Hi friends,
I want to know How to create script file in sql server and run a *.sql script file ? with example.
Create Script File In Sql Server And Run A *.Sql Script File
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted May 21, 2012, 7:46 PM EDT
Are are want to create script file using SSMS(managament Studio)?
which type of script you want to generate?
I think,
Please refer..
http://blog.sqlauthority.com/2011/05/07/sql-server-2008-2008-r2-create-script-to-copy-database-schema-and-all-the-objects-data-schema-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/
http://www.mssqltips.com/sqlservertip/1758/generate-scripts-for-sql-server-2008-object-migration/