Hello - I am looking for confirmation help on an issue.
I am trying to report from tables out of 2 separate databases ... creating temp table to pull from one - then insert records from another ... but I am getting error 154 - that the USE command cannot be issued in a SP.
Is it as simple as using a explicit reference to a table ... such as "database1"."dbo"."table1" and "database2"."dbo"."table2"?
any help would be appreciated. thanks.
I am trying to report from tables out of 2 separate databases ... creating temp table to pull from one - then insert records from another ... but I am getting error 154 - that the USE command cannot be issued in a SP.
Is it as simple as using a explicit reference to a table ... such as "database1"."dbo"."table1" and "database2"."dbo"."table2"?
any help would be appreciated. thanks.