SQL server tutorials
Thursday, 22 August 2013
Getting All Columns from entire Database in SQL Server
Here we can get all columns from all tables from entire database.
? – Indicates the name of database.
sp_msforeachdb 'select "?" AS dbName, * from [?].sys.columns
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment