Question
SQL: Delete woes part...3?
Thanks to lionstone, I think I'm getting the hang of complex
DELETE queries.
I'm stuck on this one though:
DELETE faqvars
FROM [SQLCRTPUB\COURTSPUBLIC].DBCourtsPub.CourtsPub.WeFAQsVariations
faqvars
WHERE EXISTS
(SELECT *
FROM
[SQLCRTPUB\COURTSPUBLIC].DBCourtsPub.CourtsPub.WeFAQs faqs INNER JOIN
[SQLCRTPUB\COURTSPUBLIC].DBCourtsPub.CourtsPub.We_about_categories
cats ON faqs.categoryID = cats.categoryID
WHERE (faqvars.collectionID =
faqs.collectionID) AND (faqs.categoryID = 9 OR
cats.categoryParentID =
9))
That gives me this error:
---------------------------
SQL Server Enterprise Manager
---------------------------
[Microsoft][ODBC SQL Server Driver][SQL Server][OLE/DB provider returned
message: Multiple-step OLE DB operation generated errors. Check each OLE DB
status value, if available. No work was done.]
---------------------------
This seems to be a bit of a random error. So, two questions: 1) anyone see
anything particularily wrong with my syntax above and 2) how do I go about
debugging a 'multiple-step OLE DB' operation in SQL Manager?
-Darrel
I'm stuck on this one though:
DELETE faqvars
FROM [SQLCRTPUB\COURTSPUBLIC].DBCourtsPub.CourtsPub.WeFAQsVariations
faqvars
WHERE EXISTS
(SELECT *
FROM
[SQLCRTPUB\COURTSPUBLIC].DBCourtsPub.CourtsPub.WeFAQs faqs INNER JOIN
[SQLCRTPUB\COURTSPUBLIC].DBCourtsPub.CourtsPub.We_about_categories
cats ON faqs.categoryID = cats.categoryID
WHERE (faqvars.collectionID =
faqs.collectionID) AND (faqs.categoryID = 9 OR
cats.categoryParentID =
9))
That gives me this error:
---------------------------
SQL Server Enterprise Manager
---------------------------
[Microsoft][ODBC SQL Server Driver][SQL Server][OLE/DB provider returned
message: Multiple-step OLE DB operation generated errors. Check each OLE DB
status value, if available. No work was done.]
---------------------------
This seems to be a bit of a random error. So, two questions: 1) anyone see
anything particularily wrong with my syntax above and 2) how do I go about
debugging a 'multiple-step OLE DB' operation in SQL Manager?
-Darrel
