SELECT * FROM information_schema.columns WHERE table_name = 'Customers'
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Retrieve MSSQL table information (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Scripting schema updates in ... in sql tsql database mssql schema update tables microsoft columns query scripting information_schema alter altering
» Fix orphaned users in MSSQL in users sql mssql microsoft data transact orphan orphaned user restore restoration restoring
» Case sensitivity in PostgreSQL in databases sql select database tables table column columns query postgresql postgre psql rdbm names name lower upper case lowercase uppercase statement
» Reset identity seed for a table in sql reset microsoft column transact reseed seed identity ident field ms dbcc checkident
» Randomly ordered results in ... in sql tsql
» Dynamic ordering without dyn... in sql tsql
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails