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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 table info

Author  Topic 

coco
Starting Member

1 Post

Posted - 2007-04-06 : 23:15:38
hi
how can i get all infos of a table by query? i mean all foreing keys, primary keys, cols names, cols data types
thxx bye.

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-04-07 : 01:10:51
sp_help @tablename

************************
Life is short. Enjoy it.
************************
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-04-07 : 02:21:09
Also, read about Information_schema views in sql server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -