Dear all,
Using sql server 2005.
We are busy with a stored procedure.
Please look at the code:
declare @var varchar(10), @nr varchar(10)
set @var='field1'
set @nr = (SELECT @var FROM myTable)
In the table is only one record.
The result of Print @nr: 'field1'
Is it possible that the sp is acting the @var as a field? Can give someone the syntax?
Nice regards,
Michelle.
Using sql server 2005.
We are busy with a stored procedure.
Please look at the code:
declare @var varchar(10), @nr varchar(10)
set @var='field1'
set @nr = (SELECT @var FROM myTable)
In the table is only one record.
The result of Print @nr: 'field1'
Is it possible that the sp is acting the @var as a field? Can give someone the syntax?
Nice regards,
Michelle.