home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / COMMON / IDE / IDE98 / TMPLTS / DBITEM / NEWTABLE.SQL < prev    next >
Text File  |  1998-04-25  |  887b  |  39 lines

  1. IF EXISTS (SELECT * FROM sysobjects WHERE type = 'U' AND name = 'Table_Name')
  2.     BEGIN
  3.         PRINT 'Dropping Table Table_Name'
  4.         DROP  Table Table_Name
  5.     END
  6. GO
  7.  
  8. /******************************************************************************
  9. **        File: 
  10. **        Name: Table_Name
  11. **        Desc: 
  12. **
  13. **        This template can be customized:
  14. **              
  15. **
  16. **        Auth: 
  17. **        Date: 
  18. *******************************************************************************
  19. **        Change History
  20. *******************************************************************************
  21. **        Date:        Author:                Description:
  22. **        --------        --------                -------------------------------------------
  23. **    
  24. *******************************************************************************/
  25.  
  26. PRINT 'Creating Table Table_Name'
  27. GO
  28. CREATE TABLE Table_Name
  29. (
  30.    
  31.  
  32.  
  33. )
  34. GO
  35.  
  36. GRANT SELECT ON Table_Name TO PUBLIC
  37.  
  38. GO
  39.