Results 1 to 2 of 2

Thread: passing values from one SQL server to another

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    passing values from one SQL server to another

    Hi

    Is it possible to pass the value of a stored procdure on one sql server to a stored procedure on another SQL server??

    Thanks in advance!!!

    If it is HOW???


    ** HOLLY **

  2. #2
    Fanatic Member kaffenils's Avatar
    Join Date
    Apr 2004
    Location
    Norway
    Posts
    946

    Re: passing values from one SQL server to another

    Quote Originally Posted by holly
    Hi

    Is it possible to pass the value of a stored procdure on one sql server to a stored procedure on another SQL server??

    Thanks in advance!!!

    If it is HOW???


    I'm not sure what you mean when you say you want to pass a value from one stored procedure to another, but I assume that you want to take the returned value from one stored procedure and pass it as a parameter to a second sproc.
    In that case you need to add the second server as a linked server to the first server. You can do this with EM or a set of system stored procedures. Using EM is probably the easiest.
    To execute a stored procedure on the remote server you simply specify the procedure using the four party name (server.database.owner.objectname) e.g. myserver2.mydatabase.dbo.mysproc @someparameter.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width