<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Prasanna</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/prasanna/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/prasanna/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:50:20 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Migrating SQL Server On Premise DB to SQL Azure Using SQL Server Migration Wizard</title>
      <link>https://docs.microsoft.com/archive/blogs/prasanna/migrating-sql-server-on-premise-db-to-sql-azure-using-sql-server-migration-wizard</link>
      <pubDate>Mon, 13 Apr 2015 01:09:00 GMT</pubDate>
      <dc:creator><![CDATA[Prasanna Rajayya N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/prasanna/2015/04/13/migrating-sql-server-on-premise-db-to-sql-azure-using-sql-server-migration-wizard/</guid>
      <description><![CDATA[I see that the customers have trouble in migrating SQL Server On Premise DB to SQL Azure.
There are...]]></description>
      <content:encoded><![CDATA[<p>I see that the customers have trouble in migrating SQL Server On Premise DB to SQL Azure.</p>
<p>There are lot of ways to migrate an on Premise DB to SQL Azure.</p>
<p>Here I writing about migration using SQL Server migration wizard.</p>
<p>The tool can be downloaded from here <a href="https://sqlazuremw.codeplex.com/">https://sqlazuremw.codeplex.com/</a></p>
<p>The page has links to three tools as follows</p>
<p>SQLAzureMW v3x and tools requires <strong>.NET Framework 3.5</strong> and <strong>SQL Server 2008 R2 SP1</strong> bits to run.<br /> SQLAzureMW v4x and tools requires <strong>.NET Framework 4.5</strong> and <strong>SQL Server 2012</strong> bits to run.<br /> SQLAzureMW v5x and tools requires <strong>.NET Framework 4.5</strong> and <strong>SQL Server 2014</strong> bits to run.</p>
<p>Please note this tool is open source and is community supported and CSS does not support the tool.</p>
<p>STEP BY STEP MIGRATION PROCESS:</p>
<p>Here I am using an example of SQL Server 2012 DB and will be using the tool <strong>SQLAzureMW v4.15.5 Release Binary for SQL Server 2012 </strong>and will be working on <strong>AdventureWorks2012 DB.</strong></p>
<ol>
<li><strong>Select the executable from the extracted folder.</strong></li>
</ol>
<p><strong></strong>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/0245.SQLAzureMW%20v4.15.5%20Release%20Binary%20for%20SQL%20Server%202012%20executable%20File2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/0245.SQLAzureMW-v4.15.5-Release-Binary-for-SQL-Server-2012-executable-File2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/0245.SQLAzureMW%20v4.15.5%20Release%20Binary%20for%20SQL%20Server%202012%20executable%20File2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/0245.SQLAzureMW-v4.15.5-Release-Binary-for-SQL-Server-2012-executable-File2.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; <strong>2.&nbsp;Select the target Server.</strong></p>
<p>Target server is the Source where the DB to be migrated resides.</p>
<p>SQL Server Migration Wizard can be used to migrate a DB from an&nbsp;On - Premise environment to another on - Permise Environment , On - Permise to SQL Azure , SQL Azure to on Permise and SQL Azure to SQL Azure.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/3201.SQL%20MIGRATION%20WIZARD%20TARGET%20SELECTION.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/3201.SQL-MIGRATION-WIZARD-TARGET-SELECTION.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/3201.SQL%20MIGRATION%20WIZARD%20TARGET%20SELECTION.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/3201.SQL-MIGRATION-WIZARD-TARGET-SELECTION.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Here we will look in to the SQL Server On - Permise Environment to SQL Azure.</p>
<p>&nbsp; 3. <strong>Select the name of the Instance\Server where the DB is hosted.</strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/6470.SQL%20MIGRATION%20WIZARD%20SERVER%20SPECIFYING.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/6470.SQL-MIGRATION-WIZARD-SERVER-SPECIFYING.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/6470.SQL%20MIGRATION%20WIZARD%20SERVER%20SPECIFYING.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/6470.SQL-MIGRATION-WIZARD-SERVER-SPECIFYING.jpg" alt="" border="0" /></a>&nbsp;</p>
<p>Here I am connecting to my default instance in the localbox.</p>
<p>we can either specify the database name or select from the list of database existing in the instance.</p>
<p>Here i have selected to option of choosing the list of databases.</p>
<p>I am selecting the AdventureWorks2012 DB.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/4237.SQL%20MIGRATION%20WIZARD%20SELECTED%20ADVENTURE%20WORKS.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/4237.SQL-MIGRATION-WIZARD-SELECTED-ADVENTURE-WORKS.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/4237.SQL%20MIGRATION%20WIZARD%20SELECTED%20ADVENTURE%20WORKS.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/4237.SQL-MIGRATION-WIZARD-SELECTED-ADVENTURE-WORKS.jpg" alt="" border="0" /></a>&nbsp;</p>
<p>While migrating we choose to select all the DB objects or we choose any particular object of choice.</p>
<p>Note not all objects are supported in azure.</p>
<p>Details of limitations of Azure can be found from here <a href="https://msdn.microsoft.com/en-us/library/azure/ee336245.aspx">https://msdn.microsoft.com/en-us/library/azure/ee336245.aspx</a></p>
<p>For the example I am selecting all database objects.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/5100.SQL%20MIGRATION%20WIZARD%20SELECT%20ALL%20DB%20OBJECTS.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/5100.SQL-MIGRATION-WIZARD-SELECT-ALL-DB-OBJECTS.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/5100.SQL%20MIGRATION%20WIZARD%20SELECT%20ALL%20DB%20OBJECTS.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/5100.SQL-MIGRATION-WIZARD-SELECT-ALL-DB-OBJECTS.jpg" alt="" border="0" /></a>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; 4. <strong>Select the objects to be migrated.</strong></p>
<p>While Migrating we can choose to migrate the&nbsp; schema only, Schema plus data and data only.</p>
<p>To select the items to be migrate click on the advanced button.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/2626.SQL%20MIGRATION%20WIZARD%20SELECT%20WHICH%20ITEM.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/2626.SQL-MIGRATION-WIZARD-SELECT-WHICH-ITEM.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/2626.SQL%20MIGRATION%20WIZARD%20SELECT%20WHICH%20ITEM.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/2626.SQL-MIGRATION-WIZARD-SELECT-WHICH-ITEM.jpg" alt="" border="0" /></a>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/5270.SQL%20MIGRATION%20WIZARD%20%20Ready%20to%20genrate%20Script.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/5270.SQL-MIGRATION-WIZARD--Ready-to-genrate-Script.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/5270.SQL%20MIGRATION%20WIZARD%20%20Ready%20to%20genrate%20Script.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/5270.SQL-MIGRATION-WIZARD--Ready-to-genrate-Script.jpg" alt="" border="0" /></a>&nbsp;</p>
<p>The wizard automatically checks for Azure Incompatiable objects and tries to correct them in the script it genarates.</p>
<p>The wizard uses BCP to export and import the data.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/3060.SQL%20MIGRATION%20WIZARD%20SCRIPT%20COMPLETE.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/3060.SQL-MIGRATION-WIZARD-SCRIPT-COMPLETE.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/3060.SQL%20MIGRATION%20WIZARD%20SCRIPT%20COMPLETE.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/3060.SQL-MIGRATION-WIZARD-SCRIPT-COMPLETE.jpg" alt="" border="0" /></a>&nbsp;</p>
<p>&nbsp;5. <strong>Selecting the SQL Azure DB</strong></p>
<ul>
<li>Once the script Genration is completed we need to connect to the Azure server that has been created.</li>
<li>we get an option to import the scripts to an existing database or we can create new database.</li>
<li>While creating database we get options to select the SLO.</li>
</ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/4431.SNIPPING_SERVER_SELECTION.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/4431.SNIPPING_5F00_SERVER_5F00_SELECTION.PNG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/4431.SNIPPING_SERVER_SELECTION.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/4431.SNIPPING_5F00_SERVER_5F00_SELECTION.PNG" alt="" border="0" /></a>&nbsp;</p>
<p>We get three Performance level\Tiers options in SQL Azure DB.</p>
<p>The lowest performance level is Basic while the highest is Premium, Standard level is in between the both.</p>
<p>The details of the performance levels can be found from here <a href="https://msdn.microsoft.com/en-us/library/azure/dn741336.aspx">https://msdn.microsoft.com/en-us/library/azure/dn741336.aspx</a></p>
<p>While creating the Database we can also specify the collation of the database.</p>
<p>Here for the Demo I am creating a database with the basic Performance level with the default collation.</p>
<p>once the database is created click on the next button and it will confirm the script execution of the destination.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/3107.SNIPPING_execute_scipt_genration%20-%20Copy.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/3107.SNIPPING_5F00_execute_5F00_scipt_5F00_genration-_2D00_-Copy.PNG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/3107.SNIPPING_execute_scipt_genration%20-%20Copy.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/3107.SNIPPING_5F00_execute_5F00_scipt_5F00_genration-_2D00_-Copy.PNG" alt="" border="0" /></a>&nbsp;</p>
<p>Once confirmed the script execution will progress.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/1682.SNIPPING_execute_scipt_progress.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/1682.SNIPPING_5F00_execute_5F00_scipt_5F00_progress.PNG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/1682.SNIPPING_execute_scipt_progress.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/1682.SNIPPING_5F00_execute_5F00_scipt_5F00_progress.PNG" alt="" border="0" /></a>&nbsp;</p>
<p>Once the script execution is complete the import is succesfully complete.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/6574.SNIPPING_import_done.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/6574.SNIPPING_5F00_import_5F00_done.PNG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/51/6574.SNIPPING_import_done.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-51/6574.SNIPPING_5F00_import_5F00_done.PNG" alt="" border="0" /></a>&nbsp;</p>
<p>We can review and click exit.</p>]]></content:encoded>
    </item>
  </channel>
</rss>