yrcdba7
asked on
create non clustered non unique index sql server 2005
Expert,
how to create non unique non clustered index? Is this correct?
CREATE NONCLUSTERED INDEX IX_SalesPerson_SalesQuota_ SalesYTD
ON Sales.SalesPerson (SalesQuota);
GO
Thanks,
Lynn
how to create non unique non clustered index? Is this correct?
CREATE NONCLUSTERED INDEX IX_SalesPerson_SalesQuota_
ON Sales.SalesPerson (SalesQuota);
GO
Thanks,
Lynn
Syntax:
create index index_name on table(columnname)
create index index_name on table(columnname)
yes your syntax is currect
ASKER
Thank you,
how about clustered non-unique index?
how about clustered non-unique index?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you syntax will create a nonclustered nonunique index
create NONCLUSTERED index ABC_IDX on mytable(mycolumn) = nonclustered nonunique
create UNIQUE NONCLUSTERED index ABC_IDX on mytable(mycolumn) = nonclustered unique
create CLUSTERED index ABC_IDX on mytable(mycolumn) = clustered nonunique
create unique CLUSTERED index ABC_IDX on mytable(mycolumn) = clustered unique
create NONCLUSTERED index ABC_IDX on mytable(mycolumn) = nonclustered nonunique
create UNIQUE NONCLUSTERED index ABC_IDX on mytable(mycolumn) = nonclustered unique
create CLUSTERED index ABC_IDX on mytable(mycolumn) = clustered nonunique
create unique CLUSTERED index ABC_IDX on mytable(mycolumn) = clustered unique
ASKER
Thankyou, Lynn
ON Sales.SalesPerson (SalesQuota);
GO
or
CREATE INDEX IX_SalesPerson_SalesQuota_
ON Sales.SalesPerson (SalesQuota);
GO