To migrate your installation and not lose your data, please follow these steps (they are written using SpiraTeam as an example, but they apply to SpiraTest, SpiraPlan, or KronoDesk, you just need to change the database name in the examples below):

  1. First backup the live data on your demo instance of SpiraTeam via SQL Server Management Studio
  2. Next make a copy of the Attachments folder that is used to store document attachments.
  3. Now install a clean version of the same version of SpiraTeam onto your production instance. When you log in it will have just the sample data.
  4. Now delete the 'SpiraTeam' database on your live server. This is the one with just the sample data
  5. Now restore the backup from the demo box onto the live server with the database name 'SpiraTeam'.
  6. Now copy the attachments that you backed-up in step (2) to the Attachments folder on the new server.
  7. Finally run the following SQL command to relink the SpiraTeam SQL Server login with the SQL Server user (otherwise the DB will throw an error):
    1. Using SQL Server Authentication
      USE SpiraTeam
      GO
      EXEC sp_change_users_login 'Update_One', 'SpiraTeam', 'SpiraTeam'
      GO

       

    2. Using Windows Authentication on Windows 2003/2008/Vista/7
      USE SpiraTeam
      GO
      ALTER USER SpiraTeam WITH LOGIN = [NT AUTHORITY\NETWORK SERVICE]
      GO

       

    3. Using Windows Authentication on Windows XP
      USE SpiraTeam
      GO
      ALTER USER SpiraTeam WITH LOGIN = [MACHINENAME\ASPNET]
      GO