Using Sql Server 7 ...
Unable to get this code fragment to work ...
@z is Null when I display it ...Ive tried different
approaches to "set @fcount = 1" with no success ....
declare @z char(300)
declare @list char(30)
declare @fcount char(1)
set @list = "(10,99999,999999)"
set @z = "if exists(select * from titles where royalty in "+@list + "
set " + @fcount + "=1"
exec (@z)
Any help would be appreciated ..
Thank u
john
Unable to get this code fragment to work ...
@z is Null when I display it ...Ive tried different
approaches to "set @fcount = 1" with no success ....
declare @z char(300)
declare @list char(30)
declare @fcount char(1)
set @list = "(10,99999,999999)"
set @z = "if exists(select * from titles where royalty in "+@list + "
exec (@z)
Any help would be appreciated ..
Thank u
john