home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0430 - 0439 / ibm0430-0439 / ibm0438.tar / ibm0438 / SQL42111.ZIP / SQL421A.011 / SQL / I386 / UNOBJ.SQL < prev    next >
Encoding:
Text File  |  1994-01-25  |  2.2 KB  |  85 lines

  1. /***************************************************************************/
  2. /* UNOBJ.SQL - Uninstall SQL Server Object Manager Stored Procedures       */
  3. /***************************************************************************/
  4. /* This stored procedure drops all stored procedures and tables            */
  5. /* for the SQL Server Object Manager tool.                                 */
  6. /***************************************************************************/
  7. /* latest revision - 3/16/93                                               */
  8. /* Copyright (C) 1993 - Microsoft Corporation                              */
  9. /***************************************************************************/
  10. print ""
  11. print "un-installing SQL Server Object Manager Scripts"
  12. go
  13.  
  14. if exists (select * from sysobjects where name = 'sp_MSuser_info' and sysstat & 7 = 4)
  15. begin
  16.   drop procedure sp_MSuser_info
  17. end
  18. go
  19. print ""
  20. go
  21.  
  22. if exists (select * from sysobjects where name = 'sp_MScheck_OM' and sysstat & 7 = 4)
  23. begin
  24.   drop procedure sp_MScheck_OM
  25. end
  26. print ""
  27. go
  28. go
  29.  
  30. if exists (select * from sysobjects where name = 'sp_MStable_properties' and sysstat & 7 = 4)
  31. begin
  32.   drop procedure sp_MStable_properties
  33. end
  34. go
  35. print ""
  36. go
  37.  
  38. if exists (select * from sysobjects where name = 'sp_MScolumn_properties' and sysstat & 7 = 4)
  39. begin
  40.   drop procedure sp_MScolumn_properties
  41. end
  42. go
  43. print ""
  44. go
  45.  
  46. if exists (select * from sysobjects where name = 'sp_MSobjecttype_name' and sysstat & 7 = 4)
  47. begin
  48.   drop procedure sp_MSobjecttype_name
  49. end
  50. go
  51. print ""
  52. go
  53.  
  54. if exists (select * from sysobjects where name = 'sp_MSobject_list' and sysstat & 7 = 4)
  55. begin
  56.   drop procedure sp_MSobject_list
  57. end
  58. go
  59. print ""
  60. go
  61.  
  62. if exists (select * from sysobjects where name = 'sp_MStable_permissions' and sysstat & 7 = 4)
  63. begin
  64.   drop procedure sp_MStable_permissions
  65. end
  66. go
  67. print ""
  68. go
  69.  
  70. if exists (select * from sysobjects where name = 'sp_MSobject_dependencies' and sysstat & 7 = 4)
  71. begin
  72.   drop procedure sp_MSobject_dependencies
  73. end
  74. go
  75. print ""
  76. go
  77.  
  78. if exists (select * from sysobjects where name = 'sp_MSOM_version' and sysstat & 7 = 4)
  79. begin
  80.   drop procedure sp_MSOM_version
  81. end
  82. go
  83. print ""
  84. go
  85.