May 6, 2009 at 7:21 am
I have a simple question about SQL Server. When I define a field on a table as the primary key, does SQL Server automatically create a corresponding index on that field or do I need to create the index myself.
Thanks
May 6, 2009 at 7:22 am
By default SQL Server creates a clustered index on the primary key.
May 6, 2009 at 7:29 am
Ken Simmons (5/6/2009)
By default SQL Server creates a clustered index on the primary key.
Thanks for the fast response.
January 24, 2010 at 8:40 am
Anyone know what query I could use to set a primary key using a syntax on a table?
January 24, 2010 at 8:45 am
Look in the SQL Books Online under "Alter Table"
Andrew SQLDBA
January 24, 2010 at 8:47 am
Is google down today?
http://msdn.microsoft.com/en-us/library/ms190273.aspx
There are several examples at the bottom
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 24, 2010 at 9:42 am
GilaMonster (1/24/2010)
Is google down today?http://msdn.microsoft.com/en-us/library/ms190273.aspx
There are several examples at the bottom
As Google is not down, we expect you to do the search 🙂 Just kidding.
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
January 24, 2010 at 7:20 pm
GilaMonster (1/24/2010)
Is google down today?
Not again ??!! 😀
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply