ResetConfiguration2_0_mssqlserver.sql 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. -- Licensed Materials - Property of IBM
  2. --
  3. -- BI and PM: CM
  4. --
  5. -- (C) Copyright IBM Corp. 2008, 2009
  6. --
  7. -- US Government Users Restricted Rights - Use, duplication or disclosure
  8. -- restricted by GSA ADP Schedule Contract with IBM Corp.
  9. -- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. -- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. delete from CMOBJPROPS1 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  12. delete from CMOBJPROPS2 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  13. delete from CMOBJPROPS3 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  14. delete from CMOBJPROPS4 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  15. delete from CMOBJPROPS5 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  16. delete from CMOBJPROPS6 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  17. delete from CMOBJPROPS7 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  18. delete from CMOBJPROPS9 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  19. delete from CMOBJPROPS10 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  20. delete from CMOBJPROPS11 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  21. delete from CMOBJPROPS13 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  22. delete from CMOBJPROPS14 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  23. delete from CMOBJPROPS15 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  24. delete from CMOBJPROPS16 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  25. delete from CMOBJPROPS17 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  26. delete from CMOBJPROPS18 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  27. delete from CMOBJPROPS20 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  28. delete from CMOBJPROPS23 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  29. delete from CMOBJPROPS24 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  30. delete from CMOBJPROPS25 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  31. delete from CMOBJPROPS26 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  32. delete from CMOBJPROPS27 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  33. delete from CMOBJPROPS28 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  34. delete from CMOBJPROPS30 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  35. delete from CMOBJPROPS31 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  36. delete from CMOBJPROPS32 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  37. delete from CMOBJPROPS33 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  38. delete from CMOBJPROPS34 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  39. delete from CMOBJPROPS35 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  40. delete from CMOBJPROPS36 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  41. delete from CMOBJPROPS37 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  42. delete from CMOBJPROPS38 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  43. delete from CMOBJPROPS39 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  44. delete from CMOBJPROPS40 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  45. delete from CMOBJPROPS41 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  46. delete from CMOBJPROPS42 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  47. delete from CMOBJPROPS43 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  48. delete from CMPOLICIES where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  49. delete from CMGUIDS where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  50. delete from CMOBJNAMES where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  51. delete from CMREFNOORD1 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  52. delete from CMREFNOORD2 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  53. delete from CMREFORD1 where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  54. delete from CMSTOREIDS where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  55. delete from CMVIEWED where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  56. delete from CMOBJECTS where CMID in (select CMID from CMOBJECTS where CLASSID=14 or PCMID in ( select CMID from CMOBJECTS where CLASSID=14 ) or PCMID in ( select CMID from CMOBJECTS where PCMID in ( select CMID from CMOBJECTS where CLASSID=14 )))
  57. update CMCAPACITY set PATH='' where USAGE=4