home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / BENCHSQL.ZIP / DB.SQL < prev    next >
Text File  |  1989-08-29  |  482b  |  21 lines

  1. use master
  2. go
  3.  
  4. print " "
  5. print "******** Checking database status **********"
  6. print " "
  7. go
  8. if exists (select name from master.dbo.sysdatabases where name = "bench")
  9.  BEGIN
  10.   print " "
  11.   print "**************** Database 'bench' is present ******************"
  12.  END
  13. else
  14.  begin
  15.   create database bench on benchdev = 300, benchlog = 200
  16.   execute sp_logdevice bench, benchlog
  17.   print " "
  18.   print "**************** Database 'bench' was created ************"
  19.  end
  20. go
  21.