I would like to create a function that retrieves the value of a field by passing the string name of the table and field. For example:
returnValue = dbo.LookupValue('BusinessDetails', 'Telephone')
I could do it via dynamic sql but is there any other way?
Thanks.
returnValue = dbo.LookupValue('BusinessDetails', 'Telephone')
I could do it via dynamic sql but is there any other way?
Thanks.