onedunpark
IS-IT--Management
Hello,
I have a (what I refer to as a) data translation table that I use to identify the target table, data column and index column for a set of updates.
Effectively, in really simple terms, I'd like to be able to pass the table name, column name and index column as parameters to an sp, which would then return an indication if it found data using something like the following logic
select @vdatacount = @vindexcolumn in @vtable
where @vindexcolumn = @vindexvalue
I've looked around but can't see how to accomplish this without explicitly specfiying the table/column names in any proposed sp.
I'm sure I must be able to do this somehow. Just perhaps can't see the wood for the trees.
Hopefully this is a simple enough explanation of the problem
Any and all suggestions greatly appreciated.
Now..back to trawling to try an find an answer myself.
Thanks
Steven
I have a (what I refer to as a) data translation table that I use to identify the target table, data column and index column for a set of updates.
Effectively, in really simple terms, I'd like to be able to pass the table name, column name and index column as parameters to an sp, which would then return an indication if it found data using something like the following logic
select @vdatacount = @vindexcolumn in @vtable
where @vindexcolumn = @vindexvalue
I've looked around but can't see how to accomplish this without explicitly specfiying the table/column names in any proposed sp.
I'm sure I must be able to do this somehow. Just perhaps can't see the wood for the trees.
Hopefully this is a simple enough explanation of the problem
Any and all suggestions greatly appreciated.
Now..back to trawling to try an find an answer myself.
Thanks
Steven