Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restrictions on exec command

Status
Not open for further replies.

pgk

Programmer
Jul 19, 2002
262
0
0
US
Hi,

Are there any restrictions regarding the use of dynamic sql with the exec statement?

I have a varchar(2500) field that holds a dynamically built sql in a SP. I execute this using exec ( @final_select ). My SP just runs forever.

I tried out the same stuff using DBArtisan and it returns in less than 5 seconds.

Any ideas??

Thanks a lot.

With regards,
Ganesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top