Hello: I'm trying to update a field in a table, based on a value that lies in a table from another database;
However, when trying to run, I get this error:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "CompanyFromBackup.sloanled.tblJob.jobid" could not be bound.
if I just run the statement like this, it gives me one record and it runs fine:Code:update Company.sloanled.tblJob set Company.sloanled.tblJob.JobOpenedDate=CompanyFromBackup.sloanled.tblJob.JobOpenedDate where CompanyFromBackup.sloanled.tblJob.jobid=Company.sloanled.tblJob.jobid and Company.sloanled.tblJob.jobid=1
I'm working in sql server 2008 R2.Code:select * from CompanyFromBackup.sloanled.tblJob, Company.sloanled.tblJob where CompanyFromBackup.sloanled.tblJob.jobid=Company.sloanled.tblJob.jobid and Company.sloanled.tblJob.jobid=1
thanks,
Proctor


Reply With Quote
