![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using the management studio tool that came with SQL server 2008 Express Edition. Problem is the relationship button is greyed out on the toolbar. How do I create relationship (between tables) in SQL 2008 Express... also what do I need to set to enable the (greyed out) relationship button? Thanks in advance |
#3
| |||
| |||
|
|
This is one reason why it's good to know the syntax instead of relying on a graphical tool that might not always work (never mind that you can't store those pointies and clickies in source control). CREATE TABLE dbo.Customers(CustomerID INT PRIMARY KEY); CREATE TABLE dbo.Orders(OrderID INT PRIMARY KEY, CustomerID INT FOREIGN KEY REFERENCES dbo.Customers(CustomerID)); On 3/16/09 11:14 AM, in article ummT2nkpJHA.5100 (AT) TK2MSFTNGP03 (DOT) phx.gbl, "jpBless" <jp3blessNoSpam (AT) hotmail (DOT) com> wrote: I am using the management studio tool that came with SQL server 2008 Express Edition. Problem is the relationship button is greyed out on the toolbar. How do I create relationship (between tables) in SQL 2008 Express... also what do I need to set to enable the (greyed out) relationship button? Thanks in advance |
#4
| |||
| |||
|
|
Thanks for responding... I am trying to adapt the sample code to create relationshiption between tables. I was hoping there is a GUI tool I could use use to drag-and-drop. Thanks for the help. |
#5
| |||
| |||
|
|
I am using the management studio tool that came with SQL server 2008 Express Edition. Problem is the relationship button is greyed out on the toolbar. How do I create relationship (between tables) in SQL 2008 Express... also what do I need to set to enable the (greyed out) relationship button? Thanks in advance |
![]() |
| Thread Tools | |
| Display Modes | |
| |