/*
 * $Id: template,v 1.2 2002/05/07 21:13:15 mpeppler Exp $
 */

if exists(select * from sysobjects where type = 'U' and name = 'xxx')
  begin
    drop table xxx
    print "Dropped table xxx"
  end
go

create table xxx
(
)
go
grant select on xxx to yyy
go
if exists(select * from sysobjects where type = 'U' and name = 'xxx')
  print "Table xxx created"
else 
  print "Failed: create table xxx"
go
