View Single Post

   
  #1 (permalink)  
Old 03-01-2008, 11:52 AM
fireball
 
Posts: n/a
Default 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


Reply With Quote