home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a063 / 4.img / SCRIPTS / INSTMODL.SQL < prev    next >
Encoding:
Text File  |  1992-05-17  |  1.3 KB  |  50 lines

  1. use model
  2. go
  3. if exists (select *
  4.     from sysobjects
  5.         where name = 'sp_configure')
  6. begin
  7.     execute sp_configure 'update', 1
  8. end
  9. reconfigure with override
  10. go
  11. /*
  12. ** a_aversion 49.1 9/10/91
  13. **
  14. ** Copyright Sybase, Inc. 1986, 1987, 1988, 1989
  15. **    All Rights Reserved.
  16. ** Use, duplication, or disclosure by the United States Government
  17. ** is subject to restrictions as set forth in subdivision (c) (1) (ii)
  18. ** of the Rights in Technical Data and Computer Software clause
  19. ** at CFR 252.227-7013. Sybase, Inc. 6475 Christie Avenue, Emeryville,
  20. ** CA 94608.
  21. **
  22. ** Stored procedures for Data Dictionary Operations
  23. */
  24. go
  25. /* a_permitboth 49.1 9/10/91 */
  26. grant select on sysalternates to public
  27. grant select on syscolumns to public
  28. grant select on syscomments to public
  29. grant select on sysdepends to public
  30. grant select on sysindexes to public
  31. grant select on syskeys to public
  32. grant select on sysobjects to public
  33. grant select on sysprocedures to public
  34. grant select on sysprotects to public
  35. grant select on syssegments to public
  36. grant select on systypes to public
  37. grant select on sysusers to public
  38. grant select on syslogs to public
  39. go
  40. dump transaction model to diskdump with truncate_only
  41. go
  42. use master
  43. go
  44. sp_configure "allow updates",0
  45. go
  46. reconfigure with override
  47. go
  48. print 'Loading of model database is complete.'
  49. go
  50.