Registriert seit: 8. Jun 2010
71 Beiträge
|
AW: dynamische variable
22. Jul 2010, 15:37
lösung:
declare @variable as nvarchar(255)
set @variable = '1'
declare @Parameter as nvarchar(255)
set @Parameter = 'Parameter '
declare @Description as nvarchar (255)
set @Description = ' Description'
declare @Param as nvarchar(255)
set @Param = @Parameter + @Variable + @Description
select param, Value
from param_settings
where param = @param
|