TRACEYMARYLAND
Programmer
im trying to access a table but i want to determine what table to read
DECLARE
@TABLE_NAME NVARCHAR(50),
@COLUMN_NAME NVARCHAR(50)
select DISTINCT @COLUMN_NAME FROM @TABLE_NAME
But im getting error...saying define @TABLE_NAME
is it actually possible to do this
DECLARE
@TABLE_NAME NVARCHAR(50),
@COLUMN_NAME NVARCHAR(50)
select DISTINCT @COLUMN_NAME FROM @TABLE_NAME
But im getting error...saying define @TABLE_NAME
is it actually possible to do this