|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, January 21, 2013 11:50 PM
Points: 267,
Visits: 695
|
|
Due to large import function, I would like to disable my constraints.
The query I use is
ALTER INDEX ALL ON [table_name] Disable.
The disabling part runs successfully when I try to enable them it passes error: Cannot find Index <index_name>
The command I use
ALTER INDEX ALL ON [table_name] Rebuild.
I even tried
ALTER INDEX <index_name> ON [table_name] Rebuild and ALTER INDEX <index_name> ON [schema_name].[table_name] Rebuild
But all fails.
When i query sysobjects and INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE the Fk constraint do exist there.
what is that I miss
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Thursday, July 14, 2011 12:59 PM
Points: 73,
Visits: 209
|
|
| It would help me to understand, if u can post the list of indexes on the table as well as the error u r getting while trying to enable the indexes..
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Friday, April 19, 2013 9:23 AM
Points: 1,259,
Visits: 699
|
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, January 21, 2013 11:50 PM
Points: 267,
Visits: 695
|
|
yes, i can use Create Index with Drop existing and it is working fine.
But I still dont understand what is wrong with the former statement.
|
|
|
|