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.
Author |
Topic |
tpiazza55
Posting Yak Master
162 Posts |
Posted - 2010-10-29 : 16:22:22
|
I have a dynamically built sql statement. I need to know when executed if it returns any results. if not I need to execute another sql statement.trying IF NOT EXISTS ( EXEC(@SQLStatement) )BeginEXEC(@SQLStatement)i get an error on the exec -- how do i get around this? |
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
|
|
|
|