문제

I have found this one:

http://www.sqlscriptgenerator.com/

Which is actually decent enough but it puts all the scripts in one massive sql script file with no option to generate one script per object.

Is there something that will allow me to generate a suite of scripts that I can then pass into a source control repository and update from time to time?

도움이 되었습니까?

해결책

SQL Server Management Studio will do this for you. You can also choose to script out data as well.

All you have to do is to right-click on a database, choose Tasks then Generate Scripts...

You also have the option of writing everything to a single file, or a file per object.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top