October 15, 2006 at 8:57 pm
From within a Stored Proc I need to retrieve data from another SQL Server 2000 DB on another physical server. I am not allowed to use the login which runs the proc to attach to the other DB and must use a login already provided on that DB. How can I create a connection for this purpose in the proc by specifying the required login and password ?
October 15, 2006 at 9:47 pm
October 16, 2006 at 8:14 pm
Another possibility would be to use a "Linked Server" which would also hide the login and password from prying eyes.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 17, 2006 at 2:31 am
use the 'Linked Server'. you can use the sp_addlinkedserver [servername] to add the concerned server and you will be able to connect to any server on any machine
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply