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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Primary key
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sun89
Starting Member

3 Posts

Posted - 09/08/2009 :  15:17:06  Show Profile  Reply with Quote
how to see the primary keys of a table? ...

TG
Flowing Fount of Yak Knowledge

USA
6065 Posts

Posted - 09/08/2009 :  15:40:09  Show Profile  Reply with Quote
one way:
exec sp_help <tableName>

Be One with the Optimizer
TG
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22864 Posts

Posted - 09/09/2009 :  02:38:27  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
Other way

sp_pkeys 'table_name'

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000