Can we create a clustered index on composite primary key.
Answer Posted / monal
You can also do this.
create table Test
(officeid integer not null,
empid integer not null,
age integer ,
sex varchar(5),
name varchar(20),
PRIMARY KEY (OFFICEID, EMPID))
this will also create composite primary key and cluster
index on composite primary key.
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
Explain Geometry datatype in sql server 2008 with example
What is transact-sql ddl trigger?
How to create a new schema in a database?
What is the benefit of normalization?
What security features are available for stored procedure?
What is the meaning of resultset type_scroll_insensitive?
When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?
in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it
Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
How to fetch the next row from a cursor with a "fetch" statement?
how to use DTS package in 2000,2005,2008 in sql server
What is PROJECTION Operation?
What happens if the update subquery returns multiple rows in ms sql server?
What are clustered and non-clustered index?
Why do we need different type of parameter?