S.Balasubramanian
Tuesday, July 29, 2008
Set Primary Key and Foreign Key to Table using SQL Query
Primary Key:
ALTER TABLE Table_name ADD PRIMARY KEY (SID);
Foreign Key:
ALTER TABLE table_name
ADD CONSTRAINT FK_table_name1_Id FOREIGN KEY (tablename1Id) REFERENCES table_name1(Id)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Search This Blog
Blog Archive
►
2010
(5)
►
July
(3)
►
May
(1)
►
April
(1)
►
2009
(7)
►
August
(1)
►
July
(2)
►
May
(1)
►
April
(1)
►
March
(1)
►
January
(1)
▼
2008
(22)
►
December
(8)
►
November
(1)
►
October
(7)
▼
July
(6)
Set Primary Key and Foreign Key to Table using SQL...
Backup Database using C#.net
Backup Database SQL SERVER 2005 Query
Get all SP and Tables and Views from the Database
Create Role and Assign the user to the role
Create Login and user in SQL Server 2005
About Me
S.Balasubramanian
View my complete profile
My Blog List
S.Vinothkumar
Take ASP.NET application to offline
11 years ago
Shaalini
Charts in Silverlight
14 years ago
No comments:
Post a Comment