| How To Create A New Database
   You can create additional databases for your own particular needs. For instance, you may have
  different types of  accounts that you work as separate business departments, you may need to split
  a large database, or you may want a test environment for import routines.
   This option is only available with a Corporate license.
   There are two ways to create a new database:
 
    Copy DatabaseCreate Empty Database Copy Database
 This procedure creates a fully functional database that may be used immediately. However,
          you should use only the exact same version of Collect! to ensure proper results. If the
          version or build is different, the "Create Empty Database" method is recommended. 
 This procedure requires the use of the MS SQL Management Studio. If you do not have
          experience with this tool, do not proceed. Consult our support department or a certified
          Microsoft technician for assistance.    
    Sign into Collect! and stop at the  Welcome To Collect! screen.Select the SELECT DATABASE button to display the list of available registered databases that
        you can open.Select the NEW button at the bottom of the device list to create a new empty database. Collect!
        will create the new device and display the name you chose in the Database To Open field. For
        the remainder of this example, let's say the new database you created was called "testdb"
 This is a completely empty database! The following steps will copy the data from the masterdb. Sign out of Collect! and sign into the MS SQL Management Studio.Detach all of the databases related to the masterdb and testdb.Open the masterdb folder and select all the files and sub-folders. Then paste them into the
        newly created database folder.Rename the following files in the database folder to reflect the new database name.
      
        cv_masterdb.mdf to cv_testdb.mdfcv_masterdb_log.ldf to cv_testdb_log.ldfcvr_masterdb.mdf to cvr_testdb.mdfcvr_masterdb_log.ldf to cvr_testdb_log.ldfcvx_masterdb.mdf to cvx_testdb.mdfcvx_masterdb_log.ldf to cvx_testdb_log.ldfhtml\db\cvr_masterdb_w.mdf to cvr_testdb_w.mdfhtml\db\cvr_masterdb_w_log.ldf to cvr_testdb_w_log.ldfhtml\db\cvx_masterdb_w.mdf to cvx_testdb_w.mdfhtml\db\cvx_masterdb_w_log.ldf to cvx_testdb_w_log.ldfAttach the masterdb files (remember to include the  web host database located in the html\db
        folder).Attach the testdb files, BUT pay close attention to the "attach as" field in MS Management
        Studio. Even though you renamed the files, they will still try to attach as masterdb. You need
        to change the names to testdb during the attach process.You can now sign back into Collect! and open the newly created database. At this point it is
        an exact copy of your Masterdb database.  
 Create Empty Database  This procedure creates a fully functional EMPTY database. A default set of  user levels and operators
  is provided, as well as a complete list of  printable fields and import field definitions. However,
  there are no  clients, debtors,  transaction types, import maps, reports,  contact plans or status codes.
    
    Sign into Collect! as an  operator with User Level 99 and stop at the  Welcome To Collect!
        screen.Select the SELECT DATABASE button to display the list of available registered databases that
        you can open.Select the NEW button at the bottom of the device list to create a new empty database. Collect!
        will create the new device and display the name you chose in the Database To Open field.Select the START button and Collect! will rebuild your  access rights, printable field and
        import field definition lists. 
 This is a completely empty database! There are several ways that you may choose to populate
          it, including copying records from another database. Please refer to the Help topic
           How to Copy Records for more information.  
 | 
Was this page helpful? Do you have any comments on this document? Can we make it better? If so how may we improve this page.
Please click this link to send us your comments: helpinfo@collect.org