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 Administration (2000)
 which columns in a table belongs to primarykey?

Author  Topic 

DRAGON
Starting Member

13 Posts

Posted - 2006-05-26 : 00:33:28
I have a database, it has sometables
Now i want to indicate which columns in a table belongs to primarykey?.
How can i do it, Where in the sysTables tell us that?
Help me!


dragon

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-05-26 : 01:01:17
INFORMATION_SCHEMA.KEY_COLUMN_USAGE


KH

Go to Top of Page

DRAGON
Starting Member

13 Posts

Posted - 2006-05-26 : 06:12:50
THANK KHTAN A LOT
I HAVE DONE IT WELL!

dragon
Go to Top of Page
   

- Advertisement -