Thread
:
if exists condition..
View Single Post
#
1
(
permalink
)
03-01-2008, 11:52 AM
fireball
Posts: n/a
if exists condition..
which is more proper:
if DB_ID(@db) IS NOT NULL
or
IF EXISTS (SELECT name FROM sys.databases WHERE name = @db)
?
regards
fireball