January 13, 2005 at 11:15 pm
I have 3 machines, Alpha, Beta, and Gamma. SQL server 2000 are properly installed, linked,
and tested in this 3-machine based distributed db, distributed query system.
Following Test1 stored procedure works just fine when executed remotely (from any of the 3 linked server).
CREATE PROCEDURE Test1AS
select * from Alpha.Northwind.dbo.employees
GO
Therefore, my application dynamically, during run time, figures out what machine need to be used.
CREATE PROCEDURE Test2@ThisMachine varchar(10)
AS
select * from @ThisMachine.Northwind.dbo.employees
GO
column name in a variable in a SQL statement.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply