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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

take all data from first database to second

Status
Not open for further replies.

ahm1985

Programmer
Dec 6, 2012
138
EG
I have two databases these two databases have same structures and objects but different only in data
Are there are any way to transfer data(only) from one databases to another.i try to make replication but no connection mode between us.Now How i solving these problem please help me
these two database working in sql server 2005
 
What do you mean there is 'no connection mode between us'? Does that mean the databases are in different locations? Does it mean they are not on the same network?

-SQLBill

The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875
 
Two databases in different network and different location but two database same structures and objects different only in data
 
To be able to copy the data from one server to another you need to be able to connect between the two networks. If you can't do that, you could BCP the data out to a file, copy it to the destination (you might have to have it sent to you if you don't have a network connection), and then BCP it back in.

That's the only way I can think of doing it if you don't have the connection.

-SQLBill

The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875
 
OK Excellent are you have ant code sample can make these from interface by .net or any language
 
Any reason why you just cant backup the database and restore?

----------------------------------------

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top