TSql Lookup function
Posted
by OldMan
on Stack Overflow
See other posts from Stack Overflow
or by OldMan
Published on 2010-05-05T22:43:38Z
Indexed on
2010/05/05
22:48 UTC
Read the original article
Hit count: 205
tsql
I have a bunch of dimension tables that have unique ID and Name fields. I need a T-SQL function that returns an ID when passed a table name and a value for the name field.
I'm guessing the query would build a little query then execute it? Performance isn't an issue since this is a one time ETL thing.
© Stack Overflow or respective owner