Instead of this:
IF (SELECT COUNT(*) FROM Table1 WHERE ... ) > 0
use this:
IF EXISTS(SELECT * FROM Table1 WHERE ...)
Great tip provided by this article.
Showing posts with label check. Show all posts
Showing posts with label check. Show all posts
Subscribe to:
Posts
(
Atom
)