Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab. Download now (direct download link)
Thank this author by sharing:
By Neil Bryan, 2014/02/04
This is a PowerShell script that can be used to dump out a database schema to a text file (similar to the Generate Scripts option in SSMS).
I wrote it to dump out out live DB schemas which are not under source control (our dev schemas are).
We run the scripts once a week.
They are very useful when someone accidently overwrites say a stored procedure on the live server.
To run from the command line...
Generate output and place in a specific folder
Script to create datestamp folder causing issue
Database schema
sync database design, database schema
Schema versus Database