<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Azure Support &#187; Migration</title>
	<atom:link href="http://www.azuresupport.com/tag/migration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.azuresupport.com</link>
	<description>Windows Azure Tutorial</description>
	<lastBuildDate>Mon, 25 Apr 2011 10:32:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>SQL Azure Migration &#8211; Moving the Data [FAQ]</title>
		<link>http://www.sqlazureperformance.com/2009/sql-azure-migration-moving-the-data-faq/</link>
		<comments>http://www.sqlazureperformance.com/2009/sql-azure-migration-moving-the-data-faq/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 05:57:49 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[SQL Azure]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=108</guid>
		<description><![CDATA[There are several methods available to migrate data to a SQL Azure database. BCP using the .exe bulk load/export tool. SSIS Bulk API&#8217;s in ADO.NET and ODBC (see below). Third Party Tools Sync Framework BCP BCP is probably the fastest way to move the data. BCP is a command line tool introduced with SQL Server [...]]]></description>
			<content:encoded><![CDATA[<p>There are several methods available to migrate data to a SQL Azure database.</p>
<ul>
<li>BCP using the .exe bulk load/export tool.</li>
<li>SSIS</li>
<li>Bulk API&#8217;s in ADO.NET and ODBC (see below).</li>
<li>Third Party Tools</li>
<li>Sync Framework</li>
</ul>
<h3>BCP</h3>
<p>BCP is probably the fastest way to move the data. BCP is a command line tool introduced with SQL Server 2005 SP1 which allows for copying data in and out of SQL Server. The tool uses standard TSQL Syntax conventions.<br />
<code>// BCP example </code></p>
<p>SET SRV=aserver.database.windows.net</p>
<p>SET LOGIN=judo@someserver</p>
<p>SET PW=something</p>
<p>SET S_DR=C:flats</p>
<p>bcp TPCH2.dbo.supplier in %S_DR%supplier.tbl -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<p>bcp TPCH2.dbo.nation   in %S_DR%nation.tbl   -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<p>bcp TPCH2.dbo.region   in %S_DR%region.tbl   -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<p>bcp TPCH2.dbo.customer in %S_DR%customer.tbl -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<p>bcp TPCH2.dbo.part     in %S_DR%part.tbl     -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|“</p>
<p>bcp TPCH2.dbo.supplier out %S_DR%supplier.tbl -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<p>bcp TPCH2.dbo.nation   out %S_DR%nation.tbl   -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<p>bcp TPCH2.dbo.region   out %S_DR%region.tbl   -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<p>bcp TPCH2.dbo.customer out %S_DR%customer.tbl -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<p>bcp TPCH2.dbo.part     out %S_DR%part.tbl     -c -U %LOGIN% -P %PW% -S %SRV% -t &#8220;|&#8221;</p>
<h3>ADO.NET Bulk Copy API:</h3>
<p><code>// Bulk data import</code></p>
<p>using (SqlBulkCopy bulk = new SqlBulkCopy(new SqlConnection(conn))</p>
<p>{</p>
<p>DestinationTableName = &#8220;dbo.data&#8221;,</p>
<p>BatchSize = 2000,   // Transaction size (length)</p>
<p>BulkCopyTimeout = 10000,  // Transaction timeout</p>
<p>NotifyAfter = 1000,   // Progress callback</p>
<p>})</p>
<p>{</p>
<p>bulk.SqlRowsCopied += new SqlRowsCopiedEventHandler(</p>
<p>myProgressCallback);</p>
<p>bulk.WriteToServer(sourceDataReader);</p>
<p>}</p>
<h3>Third Party Tools</h3>
<p>Currently the primary third party tool for migration is the <a href="http://sqlazuremw.codeplex.com/" target="_blank">SQL Azure Migration Wizard</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2009/sql-azure-migration-moving-the-data-faq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to SQL Azure</title>
		<link>http://www.sqlazureperformance.com/2010/introduction-to-sql-azure/</link>
		<comments>http://www.sqlazureperformance.com/2010/introduction-to-sql-azure/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 02:11:43 +0000</pubDate>
		<dc:creator>Dinesh Asanka</dc:creator>
				<category><![CDATA[SQL Azure]]></category>
		<category><![CDATA[Migration]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=12</guid>
		<description><![CDATA[Since the SQL Azure database services are in the cloud, you do not have to worry about high availability and scalability. SQL Azure will maintain a “Monthly Availability” of 99.9% during a calendar month. For example, you or your network administrators do not have to spend time on high availability which is taken care by [...]]]></description>
			<content:encoded><![CDATA[<p>Since the SQL Azure database services are in the cloud, you do not have to worry about high availability and scalability. SQL Azure will maintain a “Monthly Availability” of 99.9% during a calendar month. For example, you or your network administrators do not have to spend time on high availability which is taken care by the services. Also, you don’t have to worry about security patches and service packs which will be installed by the service provider.</p>
<p><span id="more-12"></span></p>
<h2>Using SQL Azure</h2>
<p>SQL Azure is still in CTP , the SQL Azure Database CTP is available for free and you can register below to receive an invitation. Due to high demand for the SQL Azure Database CTP, there may be some delays in receiving your invitation codes. <a rel="nofollow" href="http://go.microsoft.com/fwlink/?LinkID=149681&amp;clcid=0x09">http://go.microsoft.com/fwlink/?LinkID=149681&amp;clcid=0&#215;09</a></p>
<h2>Editions &amp; Pricing</h2>
<p>There are two editions for SQL Azure, namely Web and Business. While self-managed DB and auto high-availability features are supported in both editions, there are few differences between them.</p>
<p>Main difference is the storage, as the Web edition supports only 1 GB of database storage space and the Business edition supports 10GB. In case you need to store more that 10GB of data, you will have to break the databases into small sizes. Apart from basic T-SQL facilities, there will additional features like auto-partition and CLR in the business edition. However, these features are not yet available in CTP.</p>
<p>Upon the availability of production ready SQL Azure, the fee will be as below:</p>
<p>•Web Edition: Up to 1 GB relational database = $9.99 / month</p>
<p>•Business Edition: Up to 10 GB relational database = $99.99 / month</p>
<p>•Bandwidth = $0.10 in / $0.15 out / GB</p>
<h2>Using SQL Azure Databases</h2>
<p>As there are no options in the web interface to create tables or databases, you will need to use other tools for creating and designing Azure based databases:</p>
<h3><strong>SQLcmd</strong></h3>
<p>SQLcmd is supported on SQL Azure and you can connect to an Azure database using the below command.</p>
<p>C:&gt;sqlcmd -U &lt;User&gt; -P &lt;PPassword&gt; -S &lt;ServerName&gt; -d master</p>
<h3><strong>Management Studio</strong></h3>
<p>SQL Server Management Studio (SSMS) is the most frequently used tool to connect to SQL Server databases. However, when connecting to SQL Azure there several additional steps you need to follow.</p>
<p>1.       Open SSMS</p>
<p>2.       Cancel out of the first connection dialog that pops up and click on the New Query button from the toolbar. If you enter credentials without performing this step the following error will appear: (Microsoft is working on this issue).<br />
<img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image001.png" border="0" alt="" /></p>
<p>3.       When you are prompted to connect to a database, cancel that dialog.</p>
<p>4.       You should be left with an empty management console. Click New Query.</p>
<p>5.       For the server name, take the fully qualified host name from your SQL Azure connection string. It should look something like mlqe0vurwb.database.windows.net.</p>
<p>6.       Choose SQL Server Authentication as SQL Azure does not support Windows Authentication. Supply the username and password that you used for your database.<br />
<img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image002.png" border="0" alt="" /><br />
7.       Click on the Options button on the bottom right of the dialog box</p>
<p>8.       Set the database name, manually, to the name of your database. It will not show up in the drop-down list. Please note that in case you need to connect other databases, you have to connect again.</p>
<p>9.       Make sure the server type is set to the database engine.</p>
<p>10.   Click Connect.</p>
<p>For SQL Azure SSMS does to show the objects in the Object Explorer and you will need to write T-SQL for all your needs.</p>
<h3><strong>Visual Studio</strong></h3>
<p>You can view the connection strings for the relevant databases by clicking the Connection String button.<br />
<img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image003.png" border="0" alt="" /><br />
Using above connection strings, you can connect to SQL Azure from Visual Studio.</p>
<p>?</p>
<h3><strong><em>Third Party Tools:</em></strong></h3>
<p>As demonstrated, SSMS may not be a good tool for SQL Azure. There are couple of third party tools that I have been working with:</p>
<h4>Omega Web Client</h4>
<p>Omega Web Client has a great set of functionalities. It has a great object explorer. You can access this tool online at <a rel="nofollow" href="https://onlinedemo.cerebrata.com/SQLAzureClient/default.aspx">https://onlinedemo.cerebrata.com/SQLAzureClient/default.aspx</a> and therefore no installation is needed.</p>
<p><img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image005.png" border="0" alt="" width="405" height="234" /></p>
<p>Below is the main view of the UI that you will see from this tool.</p>
<p><img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image006.jpg" border="0" alt="" width="624" height="263" /></p>
<h4>SQL Azure Manager</h4>
<p>SQL Azure Manager is another tool which supports SQL Azure. However there are quite number of draw backs which will be discussed later.</p>
<p>You can download this tool from <a rel="nofollow" href="http://hanssens.org/tools/sqlazuremanager/">http://hanssens.org/tools/sqlazuremanager/</a>.</p>
<p><img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image007.png" border="0" alt="" width="624" height="378" /></p>
<p>The SQL Azure Manager UI is much better than SSMS or the Omega web client.</p>
<p><img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image008.jpg" border="0" alt="" width="624" height="425" /></p>
<p>Though SQL Azure Manager has a much better UI than SSMS 2008 or Omega, it is still lacking a lot of features in the object explorer. For example, it shows the views in object explorer, but does not allow the user to create the alter script for a view. Also, it does not display stored procedures or functions in the object explorer and can only show data of tables with the dbo schema.</p>
<h2>SSIS &amp; SQL Azure</h2>
<p>SQL Server Integration Services (SSIS) is used to integrate data between different data sources.</p>
<p>The first thing to note is that SQL Azure currently does not support OLE DB. The normal recommendation for SSIS is to use the OLE DB Source or Destination to access SQL Server. However, if you want to work with SSIS and SQL Azure, you must use the ADO.NET Source and Destinations. This is fine for 2008, but if you are using SSIS 2005, there is no ADO.NET Destination, so you will have to implement your own through a script component. This can be done by creating a source or destination and then using the SSIS control flow tasks and data flow tasks.</p>
<p><img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image011.png" border="0" alt="" width="608" height="394" /></p>
<p>After it will be the standard way of write SSIS packages.</p>
<p><img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image012.png" border="0" alt="" width="229" height="219" /></p>
<p>When using SSIS for SQL Azure, tables without a clustered index are not supported hence you are required to create a clustered index.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2010/introduction-to-sql-azure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

