SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how to update or insert data from one server to a
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mohan123
Constraint Violating Yak Guru

India
252 Posts

Posted - 12/11/2012 :  06:58:35  Show Profile  Reply with Quote
hello all,

i have data of 100 records in one server with table name Population

and i have data 50 records of same table name in another server.if is sp_generate_inserts for that i need to delete data and again insert.But here i want to update as well as insert new records in mean time..suggest me

P.V.P.MOhan

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3355 Posts

Posted - 12/11/2012 :  07:07:28  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Have a look at linked servers.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

mohan123
Constraint Violating Yak Guru

India
252 Posts

Posted - 12/11/2012 :  07:29:01  Show Profile  Reply with Quote
i am new to sql i never heard about linked servers

P.V.P.MOhan
Go to Top of Page

bandi
Flowing Fount of Yak Knowledge

India
2168 Posts

Posted - 12/11/2012 :  07:42:05  Show Profile  Reply with Quote
Follow first link.. u can create linked server
1) http://www.quackit.com/sql_server/sql_server_2008/tutorial/linked_servers.cfm
(or)
http://msdn.microsoft.com/en-us/library/ff772782.aspx#SSMSProcedure

If u have any further information follow this one
http://www.quackit.com/sql_server/sql_server_2008/tutorial/linked_servers.cfm

Hence you can query that particular table and then do MERGE

--
Chandu

Edited by - bandi on 12/11/2012 07:45:55
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000