Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data moving between two databases

Status
Not open for further replies.

aajaydee

Technical User
Oct 16, 2005
39
US
I have a table name tbluser in database A
has fields userid and siteid
then
I have tablename tblhelper in database B with "userid" and "Entityid" fields

I want write store procedure to move record from database a to database b

I check data type are matching
I'm using following

INSERT tbluser (userid, siteid)
SELECT userid, Entityid
FROM tblhelper


but I don't know how to get the Address of table tbleuser from database b from database A

thanks
 
INSERT databaseA.tableUser.tblUser(userid,siteid)
SELECT userid, EntityId
FROM databaseB.tableUser.tblhelper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top