Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDC and TRUNCATE TABLE

Status
Not open for further replies.

ousoonerjoe

Programmer
Jun 12, 2007
925
US
Using SQL 2008 R2.

Apparently the CDC auditing process does not like TRUNCATE TABLE. Normally, a DELETE statement can get around this, but when using the Import/Export wizard, it fails. The CDC blocks the ability to TRUNCATE the table and causes the import to fail.

Has anyone else run into this problem? I haven't been able to locate a fix or work around to resolve it.

Is there a way to "Pause" the CDC long enough to allow a TRUNCATE TABLE to execute?

Any suggestions are welcome.

--------------------------------------------------
Stubbornness is a virtue -- if you are right. --Chuck Noll
--------------------------------------------------
 
UPDATE: Installed the emergency patch for the CDC issues. While it fixes the Rebuilding of Indexes, it still does not allow for TRUNCATE TABLE if CDC is enabled on it.

--------------------------------------------------
Stubbornness is a virtue -- if you are right. --Chuck Noll
--------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top