is there more the two primary key in a single table?

Answer Posted / vinay singh

There are no more than one Primary Key in a single table,
but we can make a Primary key using combination of more than
one column...
Example..

CREATE TABLE [LoginHist] (
[UserId] [char] (15) NOT NULL ,
[LogDate] [smalldatetime] NOT NULL ,
[ClientIp] [char] (15) NOT NULL ,
[LoginCount] [int] NULL DEFAULT (0),
CONSTRAINT [PK_LoginHist] PRIMARY KEY CLUSTERED
(
[UserId],
[LogDate],
[ClientIp]
) ON [PRIMARY]
) ON [PRIMARY]

** Vinay Singh
** Cell No - 9867774724

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you find out how many rows returned in a cursor?

754


What is de-normalization and what are some of the examples of it?

720


What is the use of for clause?

768


Do you think BCNF is better than 2NF & 3NF? Why?

999


What are the different types of backups that exist?

849






What is store procedure?

819


How to grant a permission in ms sql server using "grant execute" statements?

761


What are null values in ms sql server?

752


What is the default server name for sql server?

803


How many triggers are possible per table?

806


What are the steps to process a single select statement?

686


How to view existing indexes on an given table using sys.indexes?

800


what is denormalization? : Sql server database administration

654


While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?

103


How to disable a login name in ms sql server?

748