{"id":2570,"date":"2012-01-23T10:36:29","date_gmt":"2012-01-23T18:36:29","guid":{"rendered":"http:\/\/www.technosolutions.com\/kb\/2570\/migrating-topteam-sql-server-database-from-sql-server-2005-to-sql-server-2008\/"},"modified":"2019-07-11T05:59:22","modified_gmt":"2019-07-11T12:59:22","slug":"migrating-topteam-sql-server-database-from-older-version-to-the-latest-version","status":"publish","type":"post","link":"http:\/\/www.technosolutions.com\/kb\/2570\/migrating-topteam-sql-server-database-from-older-version-to-the-latest-version\/","title":{"rendered":"Migrating TopTeam SQL Server Database from older version to the latest version"},"content":{"rendered":"<p><!-- Start ScreenSteps Content --><\/p>\n<div class=\"LessonContent\">\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size: 20px;\">Overview<\/h3>\n<div class=\"StepInstructions\">\n<p>This document explains how to migrate <i>TopTeam SQL Server Database<\/i> from one <i>SQL Server <\/i>version to another.<br \/>\nThere are several options if you wish to move a database from an older version such as <i>SQL Server 2005 <\/i>to the latest version of <i>SQL Server<\/i>.<br \/>\nAn option which works without too much hassle is manually detaching and attaching the database\/log files.<\/p>\n<p>This document elaborates on this very approach.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size: 20px;\">NOTE:<\/h3>\n<div class=\"StepInstructions\">\n<p><strong>TopTeam Database schema Export and Import utilities<\/strong><br \/>\n<i>TopTeam<\/i> has a native database schema export and import utilities to export and import <i>TopTeam Database Schema<\/i> from one database to another.<br \/>\nHowever, these utilities are efficient to use only if you want to migrate data from one database type to another, e.g. from Firebird to SQL Server or from Oracle to SQL Server, etc.<br \/>\nTo migrate data from older <i>SQL Server<\/i> version to the latest SQL Server version it is best to use the tools provided by <i>Microsoft SQL Server<\/i>.<\/p>\n<p><strong>Other approaches to migrate data from older SQL Server version to the latest SQL Server version<\/strong><br \/>\nRefer to the official website of SQL Server for more information on this topic.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size: 20px;\">Who should read this?<\/h3>\n<div class=\"StepInstructions\">\n<ul>\n<li>TopTeam Administrators<\/li>\n<li>Database Administrators<\/li>\n<li>IT Support<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size: 20px;\">Prerequisites<\/h3>\n<div class=\"StepInstructions\">\n<ul>\n<li>You should have administrative access to the source and destination <i>SQL Servers<\/i>.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size: 20px;\">Step 1. Detaching the database<\/h3>\n<\/div>\n<div class=\"LessonStep top\">\n<h4 class=\"StepTitle\" style=\"font-size: 20px;\">Step 1.1. Identify TopTeam SQL Server Database Files<\/h4>\n<div class=\"StepImage\" style=\"margin: 10px 0px;\"><img loading=\"lazy\" decoding=\"async\" style=\"padding: 3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2019\/07\/wpid32133-media_1282390745756.png\" alt=\"wpid32133-media_1282390745756.png\" width=\"705\" height=\"647\" \/><\/div>\n<div class=\"StepInstructions\">\n<p><strong>Identify the TopTeam SQL Server Database files.<\/strong><br \/>\nIn later steps, we will need to copy these files to the computer on which destination SQL Server is running.<\/p>\n<p>In the example above, <i>TopTeam Database<\/i> name is <i><strong>TopTeam_Data<\/strong>.<\/i> You may have a different name as specified while installing <i>TopTeam Database<\/i>.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h4 class=\"StepTitle\" style=\"font-size: 20px;\">Step 1.2. Detaching the database from Source SQL Server<\/h4>\n<div class=\"StepImage\" style=\"margin: 10px 0px;\"><img loading=\"lazy\" decoding=\"async\" style=\"padding: 3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2019\/07\/wpid32132-media_1282390169464.png\" alt=\"wpid32132-media_1282390169464.png\" width=\"420\" height=\"378\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>Select<i> TopTeam Database<\/i> that you want to migrate, in the databases node of <i>SQL Server Management Studio<\/i> as shown in the screenshot above.<\/p>\n<p>Right-click this database and select <i><strong>Detach<\/strong><\/i>. Ensure that the database is running (notice the green arrow in the SQL Server Instance name).<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h4 class=\"StepTitle\" style=\"font-size: 20px;\">Step 1.3. Detach the database<\/h4>\n<div class=\"StepImage\" style=\"margin: 10px 0px;\"><img loading=\"lazy\" decoding=\"async\" style=\"padding: 3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2019\/07\/wpid32134-media_1282390972897.png\" alt=\"wpid32134-media_1282390972897.png\" width=\"705\" height=\"631\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>Clicking <i><strong>Detach&#8230;<\/strong> <\/i>will open the <i><strong>Detach Database<\/strong> <\/i>window as shown in the image above. Check <strong>Drop<\/strong> and click <i><strong>OK<\/strong>.<\/i><br \/>\nThis removes the &#8216;TopTeam_Data&#8217; node from the databases folder in <i>SQL Server Management Studio<\/i> (you may need to attach it again).<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size: 20px;\">Step 2. Copy the DATA\/LOG Files<\/h3>\n<div class=\"StepInstructions\">\n<p>Copy the<strong> TopTeam_Data_Data.MDF<\/strong> and<strong> TopTeam_Data_Log.LDF%<\/strong> files to a location on the C: drive of the computer on which the destination SQL Server is installed.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size: 20px;\">Step 3. Attaching the database<\/h3>\n<\/div>\n<div class=\"LessonStep top\">\n<h4 class=\"StepTitle\" style=\"font-size: 20px;\">Step 3.1. Select the Attach option in SQL Server Management Studio<\/h4>\n<div class=\"StepImage\" style=\"margin: 10px 0px;\"><img loading=\"lazy\" decoding=\"async\" style=\"padding: 3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2019\/07\/wpid32135-media_1282391685665.png\" alt=\"wpid32135-media_1282391685665.png\" width=\"416\" height=\"298\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>In <i>SQL Server Management Studio<\/i>, right-click the <i>Databases<\/i> node and click <i><strong>Attach&#8230;<\/strong><\/i> as shown in the image above.<br \/>\nClicking <i><strong>Attach<\/strong><\/i> will pop-up the<i> Attach Databases<\/i> window.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h4 class=\"StepTitle\" style=\"font-size: 20px;\">Step 3.2. The Attach Databases window opens<\/h4>\n<div class=\"StepImage\" style=\"margin: 10px 0px;\"><img loading=\"lazy\" decoding=\"async\" style=\"padding: 3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2019\/07\/wpid32136-media_1282391784800.png\" alt=\"wpid32136-media_1282391784800.png\" width=\"706\" height=\"634\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>This step opens the <i>Locate Database <\/i>Files folder\/file browser window. Locate the files you placed in Step 2. In this tutorial example, the files were placed in the location shown in the image.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h4 class=\"StepTitle\" style=\"font-size: 20px;\">Step 3.3. Select the detached TopTeam Database file<\/h4>\n<div class=\"StepImage\" style=\"margin: 10px 0px;\"><img loading=\"lazy\" decoding=\"async\" style=\"padding: 3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2019\/07\/wpid32137-media_1282392078352.png\" alt=\"wpid32137-media_1282392078352.png\" width=\"428\" height=\"602\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>Open the folder which contains the DATA \/LOG files and select the .MDF file. Now click the <i>OK<\/i> button. This brings in the file information into the <i><strong>Attach Databases<\/strong><\/i> window. Although you just chose the .MDF file, the .LDF file is automatically brought in as well.<br \/>\nNow click the <i>OK<\/i> button in the <i>Attach Databases<\/i> window. Within a few seconds, the <i><strong>TopTeam_Data<\/strong><\/i> database appears in the <i>Databases<\/i> folder of the destination SQL Server.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h4 class=\"StepTitle\" style=\"font-size: 20px;\">Step 3.4. The Attach Databases Window with file details<\/h4>\n<div class=\"StepImage\" style=\"margin: 10px 0px;\"><img loading=\"lazy\" decoding=\"async\" style=\"padding: 3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2019\/07\/wpid32138-media_1282392241064.png\" alt=\"wpid32138-media_1282392241064.png\" width=\"707\" height=\"634\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>Expand the <i><strong>TopTeam_Data<\/strong><\/i> node and verify the Objects as shown in the next screenshot.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h4 class=\"StepTitle\" style=\"font-size: 20px;\">Step 3.5. Verify some of the transferred Objects in the destination SQL Server<\/h4>\n<div class=\"StepImage\" style=\"margin: 10px 0px;\"><img loading=\"lazy\" decoding=\"async\" style=\"padding: 3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2019\/07\/wpid32139-media_1282392630927.png\" alt=\"wpid32139-media_1282392630927.png\" width=\"583\" height=\"333\" \/><\/div>\n<div class=\"StepInstructions\">\n<p><i>TopTeam SQL Server Database<\/i> is now migrated to the destination SQL Server.<br \/>\nTry connecting <i>TopTeam Application Server<\/i> or <i>TopTeam Web Server<\/i> with <i>TopTeam Database<\/i> in the latest SQL Server. Ensure that you change the <i><strong>Database Settings<\/strong><\/i> in <i>TopTeam Server Management Console <\/i>so that <i>TopTeam Server<\/i> connects to the right database.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size: 20px;\">See Also<\/h3>\n<div class=\"StepInstructions\">\n<p><a href=\"http:\/\/www.technosolutions.com\/kb\/2582\/how-to-attach-a-database-in-sql-server\/\" target=\"_blank\" rel=\"noopener\">How to attach a database in SQL Server<\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<div class=\"StepInstructions\">\n<p>Revised: July 10th, 2019<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!-- End ScreenSteps Content --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview This document explains how to migrate TopTeam SQL Server Database from one SQL Server version to another. There are several options if you wish to move a database from an older version such as SQL Server 2005 to the latest version of SQL Server. An option which works without too much hassle is manually detaching and attaching the database\/log files. This document elaborates on this very approach. NOTE: TopTeam Database schema Export and Import utilities TopTeam has a native database schema export and import utilities to export and import TopTeam Database Schema from one database to another. However, these <\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[281,43,9],"class_list":["post-2570","post","type-post","status-publish","format-standard","hentry","category-database","tag-database","tag-migrate","tag-sql-server"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/paoaNA-Fs","_links":{"self":[{"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/posts\/2570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/comments?post=2570"}],"version-history":[{"count":6,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/posts\/2570\/revisions"}],"predecessor-version":[{"id":47696,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/posts\/2570\/revisions\/47696"}],"wp:attachment":[{"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/media?parent=2570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/categories?post=2570"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/tags?post=2570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}