IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'JNDIDSMAPPING_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE JNDIDSMAPPING_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'JNDIDSMAPPING_2') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE JNDIDSMAPPING_2;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'ACLS_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE ACLS_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'EXTENDACLENTRIES_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE EXTENDACLENTRIES_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'RESOURCENODES_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE RESOURCENODES_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'RESOURCENODES_2') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE RESOURCENODES_2;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'VERSIONNODES_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE VERSIONNODES_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'FOLDERS_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE FOLDERS_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'FOLDERS_2') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE FOLDERS_2;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'NODES_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE NODES_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'NODES_2') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE NODES_2;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'COMPLETEDTABLE_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE COMPLETEDTABLE_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'COMPLETEDTABLE_2') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE COMPLETEDTABLE_2;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'COMPLETEDTABLE_3') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE COMPLETEDTABLE_3;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'COMPLETEDPUBLISHTABLE_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE COMPLETEDPUBLISHTABLE_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'COMPLETEDRESULTTABLE_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE COMPLETEDRESULTTABLE_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'COMPLETEDRESULTTABLE_2') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE COMPLETEDRESULTTABLE_2;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'USERPROFILES_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE USERPROFILES_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'RESULTVERSION_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE RESULTVERSION_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'CATALOGVERSION_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE CATALOGVERSION_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'REPORTVERSION_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE REPORTVERSION_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'ROLES_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE ROLES_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'ACLENTRYS_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE ACLENTRYS_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'USERS_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE USERS_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'USERS_2') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE USERS_2;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'DYNAMICNODE_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE DYNAMICNODE_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'DRESULT_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE DRESULT_1;
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID=OBJECT_ID(N'RESULT_1') AND OBJECTPROPERTY(ID,N'IsUserTable') = 1)DROP TABLE RESULT1;