Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Dynamic SQL

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-12-08 : 20:24:54
bob writes "Hi,
I am trying to assign the value returned from executing
this statment (below) to a variable with no luck ,

set @vtext= N'select br.gl_dept from cbildetl cd,contline cl,location ln,branch br where cd.record=103594 and cl.seq=cd.seq and ln.customer=cl.customer and ln.location=cl.location and br.branch=ln.branch'
execute (sp_executesql @vtext)
Thanks for your help"
   

- Advertisement -