August 13, 2014 at 5:48 am
What are you trying to do? The code doesn't make any sense.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 13, 2014 at 6:50 am
Indu-649576 (8/13/2014)
This code says 'Could not find stored proc'Plz help
declare @a nvarchar
declare @b-2 nvarchar
set @a = (select 'a')
set @b-2 = (select CAST(@a as varchar(10)))
print @b-2
EXECUTE (@b)
Of course it says that, you're essentially executed: -
EXECUTE a;
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply