justin_smith
asked on
getting values from sp_executesql
HI
It is something similar to this i am trying to do
declare @query nvarchar(500) ,
@value int
set @query ='select count(*) from table_a'
i want to assign the count to @value with sp_executesql
How can i do this
Thanks
It is something similar to this i am trying to do
declare @query nvarchar(500) ,
@value int
set @query ='select count(*) from table_a'
i want to assign the count to @value with sp_executesql
How can i do this
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
remarks: if you don't need dynamic sql, don't use dynamic sql!
but I guess that you simplified your example in that regards :)
but I guess that you simplified your example in that regards :)
ASKER