>> So, to clarify...my INNER JOIN is where I'd be
grabbing the distinct
>> subset of records from Table B. And that, in turn,
would update the
>> individual records in Table A that match each ID
field.
>>
>> That's pretty slick!
>>
>> Thanks, as always, Lionstone!
Well, one more question. Here's what my query now looks like:
UPDATE PUBLICFAQS
SET PUBLICFAQS.collectionID = STAGING.collectionID,
PUBLICFAQS.question = STAGING.question, PUBLICFAQS.categoryID
=
STAGING.categoryID,
PUBLICFAQS.publicAccess = STAGING.publicAccess,
PUBLICFAQS.sort = STAGING.sort
FROM [publicDBserver].DBPub.Pub.WeFaqs PUBLICFAQS INNER JOIN
WeFaqs STAGING ON PUBLICFAQS.collectionID =
STAGING.collectionID INNER JOIN
We_about_categories CAT ON CAT.categoryID =
STAGING.categoryID
WHERE (CAT.categoryID = 14) OR
(CAT.categoryParentID = 14)
But I end up with 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.]
---------------------------
OK Help
---------------------------
Any idea what might be causing that? Google seems to indicate
it's a
datatype issue, but even if I go through the fields and just
try updating it
field by field, I get the same error.
-Darrel