![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We have a function that basically returns a column name(mapping table), I'm trying to run a query that will call that function to get the column name and return a value from a field using that column name: Function will return a value of 'ColumnName' Select Field1 AS [dbo].GetDisplayName('Parm1','Parm2') from [TABLENAMEHERE] Should return: ColumnName ----------------- Field1 Field1 Can anyone tell me if this is possible or a better way to do this? |
#3
| |||
| |||
|
|
We have a function that basically returns a column name(mapping table), I'm trying to run a query that will call that function to get the column name and return a value from a field using that column name: Function will return a value of 'ColumnName' Select Field1 AS [dbo].GetDisplayName('Parm1','Parm2') from [TABLENAMEHERE] Should return: ColumnName ----------------- Field1 Field1 Can anyone tell me if this is possible or a better way to do this? |
#4
| |||
| |||
|
|
We have a function that basically returns a column name(mapping table), I'm trying to run a query that will call that function to get the column name and return a value from a field using that column name: Function will return a value of 'ColumnName' Select Field1 AS [dbo].GetDisplayName('Parm1','Parm2') from [TABLENAMEHERE] Should return: ColumnName ----------------- Field1 Field1 Can anyone tell me if this is possible or a better way to do this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |