|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
update database I don't know its name till runtimeHi all,
I want to insert a row in a table that resides in DB on another server. I don't know the database, server, username and password till runtime. The stored procedure will take 4 arguments represent the connectivity settings: @Server,@DB,@UserName,@PWD 1. HOw can I connect to the server? 2. How to update the table? thank you! see OPENDATASOURCE in Books Online.
regards, Mark Baekdal http://www.dbghost.com http://www.innovartis.co.uk +44 (0)208 241 1762 Build, Comparison and Synchronization from Source Control = Database change management for SQL Server Show quote "Ahmed" wrote: > Hi all, > > I want to insert a row in a table that resides in DB on another server. > > I don't know the database, server, username and password till runtime. > > The stored procedure will take 4 arguments represent the connectivity > settings: > > @Server,@DB,@UserName,@PWD > > 1. HOw can I connect to the server? > > 2. How to update the table? > > thank you! |
|||||||||||||||||||||||