スクリプトを生成するには、Management studio の手順に従う必要があることを認識しています。
Right click the database
Select Tasks -> Generate Scripts
(Click next if you get the intro screen)
Select "Select specific database objects"
Pick the objects to generate scripts for (tables, stored procedures, etc...)
Click Next, then specify the output filename
This will generate the schemas only. If you want to do data generating scripts as well, click the Advanced button and scroll down to the "Types of data to script" and change it from "Schema only" to "Data only" or "Schema and data"
Click Finish to generate the script
しかし、毎回これを実行したくはありません。同じジョブを実行するクエリ、SP、または関数はありますか?上記の手順は面倒で時間がかかります。既製のスクリプト作品が利用可能であれば、それは大いに役立ちます。