Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Executing Remote Procedure with parameter

Author  Topic 

GenerationWithoutName
Starting Member

26 Posts

Posted - 2005-04-27 : 06:38:25
Dear All,
Anybody knows how to Execute Remote Procedure in MSSQL?
or How to insert data from local server to Remote DB Server withing local sp?

nr
SQLTeam MVY

12543 Posts

Posted - 2005-04-27 : 15:51:09
Create a linked server and use fully qualified names

exec remoteserver.remotedb.dbo.remotesp
insert remoteserver.remotedb.dbo.remotetable (fld1, fld2) select 1,2

You will need to map permissions.


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

- Advertisement -