SQL Server Forums
Profile | Register | 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
 Server Management Studio - Meaning of Icon
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MattC
Starting Member

USA
9 Posts

Posted - 12/19/2012 :  10:29:47  Show Profile  Reply with Quote
Ok, so I've got a newbie question ...


I am using the Object Explorer in SQL Server Management Studio. I am interested in what the keys are for a certain table.

When I go to the table and display the keys I see two different colored icons. One is a yellow key icon that identifies the primary key for the table . The second is a grey colored key. Can someone tell me what this grey key is identifying?

Many Thanks,

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 12/19/2012 :  10:33:14  Show Profile  Reply with Quote
grey key icon stands for foreign key relationship. those are columns which are related via foreign key relationship to another tables primary key. Right click on any one of them and choose script as option and you'll get create script for foreign key.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

MattC
Starting Member

USA
9 Posts

Posted - 12/19/2012 :  10:47:19  Show Profile  Reply with Quote
Of course - thank you.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 12/19/2012 :  11:13:24  Show Profile  Reply with Quote
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000