Unix Technical Forum

Stored Procedure Across SQL Servers

This is a discussion on Stored Procedure Across SQL Servers within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, Is it possible to write a Stored Procedure which can update the data from one SQL Server to ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 03:57 AM
Vikram
 
Posts: n/a
Default Stored Procedure Across SQL Servers

Hi,

Is it possible to write a Stored Procedure which can update the data
from one SQL Server to another SQL Server ? I know its possible
through DTS, but want to know if its possible using a Stored Proc by
passing the two server names as parameters to the Stored Procedures.

Thanks,
Vikram
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 03:57 AM
David Portas
 
Posts: n/a
Default Re: Stored Procedure Across SQL Servers

You can do this easily in TSQL provided you create a linked server on the
server where you want to run the code. Then you can reference objects on
either server using fully-qualified names:

ServerName.DatabaseName.OwnerName.ObjectName

Read about Linked Servers in Books Online:
http://msdn.microsoft.com/library/en...erver_4uuq.asp

--
David Portas
SQL Server MVP
--


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 04:31 AM
MissLivvy
 
Posts: n/a
Default Re: Stored Procedure Across SQL Servers

Yes this is possible if you set up a linked server.
"Vikram" <vikram404@hotmail.com> wrote in message
news:7acafb49.0405210156.514c2e42@posting.google.c om...
> Hi,
>
> Is it possible to write a Stored Procedure which can update the data
> from one SQL Server to another SQL Server ? I know its possible
> through DTS, but want to know if its possible using a Stored Proc by
> passing the two server names as parameters to the Stored Procedures.
>
> Thanks,
> Vikram



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com