|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:52 AM
Points: 1,277,
Visits: 1,608
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 11:21 AM
Points: 2,163,
Visits: 2,148
|
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 3:15 AM
Points: 1,476,
Visits: 1,943
|
|
"ALTER INDEX PK_MyId ON MyTable DISABLE" at this line my brain stopped.
Nice question. Though i think it would have been better if i had stopped at the row above. Since if one didnt know that disabling the clustered index made it impossible to select from the table. You would have selected the 2 row answer anyway.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 1:49 AM
Points: 3,123,
Visits: 4,310
|
|
Good question. shows the dangers of disabling indexes
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 1:32 AM
Points: 3,187,
Visits: 4,140
|
|
The question would be more educational if it had no 'DROP CONSTRAINT' statement. In this case I would probably have answered wrong
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 4:56 AM
Points: 117,
Visits: 25
|
|
i have checked the same on sql server 2005 on windows server 2003 but i am getting the error message The query processor is unable to produce a plan because the index 'PK_MyId' on table or view 'MyTable' is disabled. i think you should check it again.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 2:53 AM
Points: 1,526,
Visits: 359
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 2:53 AM
Points: 1,526,
Visits: 359
|
|
This works on sql 2005... plz. check... you would have commented this line
ALTER TABLE MyTable DROP CONSTRAINT PK_MyId
mukeshkane (9/10/2010) i have checked the same on sql server 2005 on windows server 2003 but i am getting the error message The query processor is unable to produce a plan because the index 'PK_MyId' on table or view 'MyTable' is disabled. i think you should check it again.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Tuesday, March 12, 2013 7:27 AM
Points: 342,
Visits: 788
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 4:56 AM
Points: 117,
Visits: 25
|
|
| still getting the same error message
|
|
|
|