Hi Mike
This newsgroup is actually about creating a clustered installation of SQL
Server for fault tolerance purposes, and not really about clustered indexes.
This qustion might be better in the .server or .programming newsgroups, so I
have cc'd it to .server.
I presume you are using the Enterprise Manager to make this change, although
you didn't mention the tool you are using. The EM does a lot of things
behind the scenes that you don't always have control over. Using TSQL
throught the Query Analyzer, rather than point and click through EM, you can
request that a primary key have a nonclustered index. I would take the code
that trace shows you, and rewrite the CREATE TABLE to specify that the PK
should be nonclustered, and include the CREATE INDEX statement for the
clustered index. Then execute it through Query Analzyer.
--
HTH
----------------
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"Mike" <anonymous (AT) discussions (DOT) microsoft.com> wrote
Quote:
We receive the following error using SQL 7: Cannot create
more than one clustered index on table 'Profile'. Drop the
existing clustered index 'PK__Profile__7B5B524B' before
creating another.
We're updating a field to a larger size, when we commit
the changes, we receive the above error.
Running a Trace, I seen that the commit drops the table,
creates the table (with fields and a PK), then creates a
clustered index. The problem lies with the create table
creating a primary key since it automatically creates the
clustered index. Is there a way to tell the DB not to add
this clustered index when running the create table command? |