Link to home
Start Free TrialLog in
Avatar of CubicleGuy
CubicleGuyFlag for United States of America

asked on

Pulling from a MSSQL 2005 db on a remote server and inserting results into our MSSQL 2005 tables

I'd prefer to *not* use MS Business Integration Studio.

Can I, in one stored procedure, pull data from table A in database A and then insert the results into table B in database B?

Is it as simple as using "USE" to identify the source and then the target?

Thanks
Avatar of lof
lof
Flag of United Kingdom of Great Britain and Northern Ireland image

If databases are on the same server it is as simple as using longer names of the tables

databaseA.schema.tableA
databaseB.schema.tableB

default schema is dbo.

if the database are on different servers you will need to use linked servers
ASKER CERTIFIED SOLUTION
Avatar of lof
lof
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CubicleGuy

ASKER

Linked servers are new to me -- but after reading the URL, it seems to be the answer.