In SQL Server 2008 – is there any script available which will list all tables (incl column names, data type, length) for the entire database – with one script.
Sql-server – Script all tables in a database
scriptingsql serversql-server-2008
Related Question
- SQL Server – Script to Insert Dummy Data in All Tables
- SQL Server 2008 Deployment Script – Resolve Different Behaviors
- SQL Server – How to Set Default Value for All Columns with Specific Name
- Sql-server – Script to backup all databases
- Sql-server – How to implement a quick backup and restore strategy for database script testing
- SQL Server Management Studio – SQL Script Scope for Active or All Databases
Best Answer
You can use below script :
For Complete Documenting sql server, I highly recommend :
SQL Server & Windows Documentation Using Windows PowerShell written by Kendal Van Dyke
Brief description from the link :