can I create an SP that pulls data from one database into a tempDB then pulls data from another db into the same tempDB?
something like:
create procedure test as
create table ....
use db1
select into .....
use db2
select into ....
I am trying to combine sales rep information from five different companies into one table so I can create a report off of one complete table instead of five reports. i have the select statements created and working.
something like:
create procedure test as
create table ....
use db1
select into .....
use db2
select into ....
I am trying to combine sales rep information from five different companies into one table so I can create a report off of one complete table instead of five reports. i have the select statements created and working.