Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How can i get the column datatyes,Constraints

Author  Topic 

boreddy
Posting Yak Master

172 Posts

Posted - 2008-08-06 : 01:31:40
How can i get the column datatyes,Constraints list by query
Plese help me

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2008-08-06 : 01:41:56
use select * from information_schema.tables as well as information_schema.columns views to get all the required information

Arnav
Even you learn 1%, Learn it with 100% confidence.
Go to Top of Page

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2008-08-06 : 01:48:14
select * from INFORMATION_SCHEMA.CONSTRAINT_TABLE_USAGE

Arnav
Even you learn 1%, Learn it with 100% confidence.
Go to Top of Page
   

- Advertisement -