<?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; SQL Azure</title>
	<atom:link href="http://www.azuresupport.com/tag/sql-azure/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>Windows Azure Report Card &#8211; Year One</title>
		<link>http://www.azuresupport.com/2010/10/windows-azure-report-card-year-one/</link>
		<comments>http://www.azuresupport.com/2010/10/windows-azure-report-card-year-one/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 03:59:40 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[SQL Azure]]></category>
		<category><![CDATA[Windows Azure]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=880</guid>
		<description><![CDATA[OK, Windows Azure isn&#8217;t a year old yet (it only came out of Beta in February) but it is almost year since it was made widely available and demoed at PDC 2009. So before PDC 2010, its a good time to reflect on the past year of Azure with a report card for Azure to [...]]]></description>
			<content:encoded><![CDATA[<p>OK, Windows Azure isn&#8217;t a year old yet (it only came out of Beta in February) but it is almost year since it was made widely available and demoed at PDC 2009. So before PDC 2010, its a good time to reflect on the past year of Azure with a report card for Azure to take home to its Microsoft parent.</p>
<p><strong><em>Overall Stability, Security and Performance :  A-</em></strong></p>
<p>Azure definitely confounded some of its harsher critics by registering a very good track record for uptime, performance and most important &#8211; security. Since its launch there have been no major security issues and no large outages. I&#8217;ve run Azure since April and the only issue was two short periods (under one hour) of sluggish performance while OS patches were being applied, it seems that most users experiences have been similar to mine.</p>
<p><strong><em>SQL Azure : D</em></strong></p>
<p>While the performance of SQL Azure has been good, I can only register my bitter disappointment at the progress of adding features. I noted that probably the biggest weakness of SQL Azure at launch was the lack of any backup facility, we were promised two backup functions (continuous and clone) with one to appear in the first half of 2010 but still no sign of anything, no sign of encryption or compressions either. The features that have been added can only be described as basic &#8211; such as a 50GB sized database, or  the ability to automatically upgrade to a larger database size (although we still have to execute a TSQL Alter statement for this). <br />
 SQL Azure itself is a solid product but it is still too expensive and lacking in even the basic features SQL Server users require.</p>
<p><strong><em>Windows Azure Features : C-</em></strong></p>
<p>Azure is still not heavy in terms of features, which is fine for a product is its first year so it would be merited a B- or C+ had it not been for the omission of .NET 4.0 support (6 months and counting since .NET was released).  Unfortunate for Microsoft the last year has been one of heavy innovation for its main rival &#8211; AWS. Most notably, AWS Simple Notification Services (SNS) allows AWS users to send notifications via several formats (even email and SMS) to alert a user of an application of an event (this is a heavily requested feature on Azure but no plans have been confirmed to add it).</p>
<p><strong><em>Azure Tooling : C+</em></strong></p>
<p>.NET developers are used to best in class dev tools and so we&#8217;d expect great tooling for deploying to Azure. We now have an vastly improved Visual Studio experience which allows for direct deployment  to Azure (which is great since the Azure developer&#8217;s portal is still slow and generally a poor user experience). We can also directly connect to SQL Azure databases to view and interact with database objects from SSMS 2008 R2 and generate scripts to create an SQL Azure database. But this is pretty much the minimum we would expect using a Microsoft environment.</p>
<p>In the minus column the Azure portal is still slow and lacking in features, monitoring of the cost is very basic and the are no tools for monitoring the   various running instances of an Azure service. Also, migration tools are pretty lacking &#8211; the SQL Azure migration is good to troubleshooting a migration to SQL Azure but won&#8217;t be able to solve many of the incompatibilities. No tool exists for migration an ASP.NET app (there are several tutorials on migration in which the process looks relatively simple but there are enough gotchas to make the migration of a reasonably sized ASP.NET app a real headache).</p>
<p><em><strong>Pricing : D</strong></em></p>
<p>I&#8217;ve given a D for pricing as it is the one area where improvement could easily have been made. Probably the most persistent complaint about Azure is the high cost of the entry. With a single SQL Azure database and only a single compute instance an Azure plan will cost $60 &#8211; $90 per month depending on any discounting given if you are a member of BizSpark or MSDN etc. Even worse if you need to rely on Azure&#8217;s 99.95% uptime SLA you are required to have 2 compute instances which will comfortably bring the cost to over $100 (imagine your hosting company informing you that you needed a second server if you wanted to have good uptime ). This is a relatively high barrier to entry for small developers who are building new apps which will only initially use a fraction of the small compute instance and the 1GB SQL Azure database allocation. AWS meanwhile now offers an ultra-small instance which costs only $15 per month and in addition they are offering a full free year to new users.</p>
<p>I would have given an E except for the fact that Azure pricing matches AWS whilst offering a lot more.  The Azure platform handles all the OS patching, scaling and security without the need for user intervention. AWS by contrast with its infrastructure as a service model merely provides the OS and offers some tools the user can implement (such as the elastic load balancer) to manage scaling, patching and security updates is left to the user.</p>
<p><br class="spacer_" /></p>
<p><strong><em>Conclusion</em></strong></p>
<p>Overall the grades might not have been too high but it is definitely the grade for stability, security and performance which is the most important since a poor performance would surely mean the death of the Azure platform and the only one area where Azure should definitely have been better is in pricing. We are definitely lacking in tools and features (especially for SQL Azure) but since it is just a year we shouldn&#8217;t be too demanding &#8211; the real test of Azure will be whether it can innovate over the next 1 -2 years.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azuresupport.com/2010/10/windows-azure-report-card-year-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating A SQL Server Database To SQL Azure</title>
		<link>http://www.sqlazureperformance.com/2010/migrating-sql-server-database-to-sql-azure/</link>
		<comments>http://www.sqlazureperformance.com/2010/migrating-sql-server-database-to-sql-azure/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 04:40:24 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[SQL Azure]]></category>
		<category><![CDATA[Migrating]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=628</guid>
		<description><![CDATA[SQL Azure is essentially a cut down version of SQL Server and so we would expect that migrating from SQL Server to SQL Azure should be a straightforward task. However, in the first release of SQL Azure, the scripts generated by SQL Server Management Studio will require some extra cleanup since not all the SQL [...]]]></description>
			<content:encoded><![CDATA[<p>SQL Azure is essentially a cut down version of SQL Server and so we would expect that migrating from SQL Server to SQL Azure should be a straightforward task. However, in the first release of SQL Azure, the  scripts generated by SQL Server Management Studio will require some extra cleanup since not all the SQL Server 2008 features are supported in SQL Azure.</p>
<p>For this demo we will use SQL Server Management Studio (SSMS) to generate the SQL scripts and<br />
migrate an existing database from SQL Server 2008 to  SQL Azure. It should be noted that there are several tools such as the SQL Migration Wizard for assisting in the migration, but in this article we will look at performing a manual migration.</p>
<p>Since SQL Azure is built from SQL Server 2008, the database should first be migrated to SQL Serer 2008 if necessary (note &#8211; it is not necessary to update to 2008 R2).</p>
<ol>
<li>Open SQL Server Management Studio (SSMS), right-click on the database node of the database to be migrated (AdventureWorks for this demo) and select Tasks &gt; Generate Scripts , then select the database to be migrated and click Next:<br />
<img class="alignnone size-full wp-image-630" title="img1" src="http://64.207.144.116/wp-content/uploads/2010/03/ScreenHunter_01-Mar.-05-11.11.gif" alt="" width="510" height="484" /></li>
<li>In the <strong>Choose Script Options </strong>page, we need to configure the script to comply with the restrictions of SQL Azure, so make the following changes:
<ul>
<li><strong>Convert UDDTs to Base Type</strong>: Set this  to true as SQL Azure does not support user-defined types. UDDT&#8217;s need to be converted into SQL Azure portable types.</li>
<li><strong>Script extended properties</strong>: Set to false as SQL Azure does not support extended properties.</li>
<li><strong>Script USE DATABASE</strong>: Set to false as SQL Azure does not support the USE statement.</li>
<li> <strong>Script Data</strong>: Set to false since we are not migrating the data right now.</li>
</ul>
</li>
<li>In the Choose Object Types page &#8211; select all the objects except User Defined Data Types and click Next:<br />
<img class="alignnone size-full wp-image-632" title="img2" src="http://64.207.144.116/wp-content/uploads/2010/03/ScreenHunter_03-Mar.-05-11.271.gif" alt="" width="510" height="459" /></li>
<li>In a succession of screens you will be prompted to select the Stored Procedures, Views, Tables etc to be migrated (depending on which objects are in your database). Click <strong>Select All </strong>then <strong>Next </strong>for each.</li>
<li>Finally at the Output Option page select where the script should be generated (in this example I have elected to have the script generated in a new query window):<br />
<img class="alignnone size-full wp-image-634" title="img" src="http://64.207.144.116/wp-content/uploads/2010/03/ScreenHunter_04-Mar.-05-11.391.gif" alt="" width="503" height="480" /></li>
<li>Click <strong>Next</strong> and SSMS will direct you to the Summary page before generating the scripts in a new SQL script window. The Generate Script Success screen shows the progress and results of the migration on the database objects (see below). Copy the script generated to the clipboard.<br />
<img class="alignnone size-full wp-image-636" title="img4" src="http://64.207.144.116/wp-content/uploads/2010/03/ScreenHunter_05-Mar.-05-11.431.gif" alt="" width="502" height="449" /></li>
<li>Log in to the Azure platform portal at https://sql.azure.com/ and create a target database on the online portal (simply click <strong>Create Database </strong>after navigating to the the SQL Azure tab and then select the database size).</li>
<li>Close and re-open SSMS to connect to SQL Azure and view your database (see <a href="http://www.azuresupport.com/2009/01/connect-to-a-sql-azure-database-using-ssms-or-sqlcmd/">Connect to SQL Azure from SSMS</a> for details if neceesary) . Note &#8211; SSMS in SQL Server 2008 R2 can view the SQL Azure objects and should be used whenever connecting to SQL Azure.</li>
<li>Copy the script into a new script window in SSMS. Before we run the script against the target SQL Azure database we still need to make some modifications to the script:
<ul>
<li>SQL Azure&#8217;s first release does not support partitions. Therefore the KEY constraint statement for the table-creation scripts has to be removed and replaced by a separate script. For example, in the original script SSMS generated for creating a data table there are KEYconstraints such asPRIMARY KEY CLUSTERED<br />
(<br />
[TerritoryID] ASC<br />
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]<br />
) ON [PRIMARY]</p>
<p>This needs to be replaced with a separate ALTER TABLE Script to Assign a Key to a Table, such as:</p>
<p>ALTER TABLE [Table_Name]<br />
ADD CONSTRAINT ID_PK PRIMARY KEY (Primary_Key)</li>
<li>If there are any CREATE NONCLUSTERED INDEX statements in the script, these will need to be modified. For example remove the bold type text from the below script section:CREATE NONCLUSTERED INDEX [IX_UserTable_FirstName] ON [dbo].[UserTable]<br />
(<br />
[FirstName] ASC<br />
)<strong>WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF,ONLINE = OFF) ON [PRIMARY]</strong><br />
GO</li>
</ul>
</li>
</ol>
<p>That&#8217;s it, now run the script against the SQL Azure database (ie click <strong>New Query </strong>in SSMS, select the target SQL Azure database from the dropdown database listing  and click <strong>Execute</strong>).</p>
<p>It should be noted that this is as of SQL Azure Update 1 (February 2010) , SQL Azure is currently developing rapidly and not all the inconsistencies with SQL Server are well documented.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2010/migrating-sql-server-database-to-sql-azure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Azure Firewall &#8211; Tutorial</title>
		<link>http://www.sqlazureperformance.com/2010/sql-azure-firewall-tutorial/</link>
		<comments>http://www.sqlazureperformance.com/2010/sql-azure-firewall-tutorial/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 02:06:36 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL Azure]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=149</guid>
		<description><![CDATA[SQL Azure comes with a built-in  firewall, through which all connection attempts to a SQL Azure database must pass. By  default the firewall blocks all access to the database even from your own Azure applications. The first step in configuring the firewall is therefore to navigate to SQL Azure in the online Azure developer portal, [...]]]></description>
			<content:encoded><![CDATA[<p>SQL Azure comes with a built-in  firewall, through which all connection attempts to a SQL Azure database must pass. By  default the firewall blocks all access to the database even from your own Azure applications. The first step in configuring the firewall is therefore to navigate to SQL Azure in the online Azure developer portal, select the Firewall tab and check &#8220;Allow Microsoft Services access to this server&#8221; . This will enable other Azure services in your app to communicate with SQL Azure (NB this isnt necessary if you are using the SQL Azure database with non-Azure apps). This will add an entry for MicrosoftServices as a firewall rule.</p>
<p><img class="alignnone size-full wp-image-312" title="SQL Firewall Settings 1" src="http://azuresupport.com/wp-content/uploads/2009/12/Picture-21.png" alt="SQL Firewall Settings 1" width="434" height="143" /></p>
<p>This will be sufficient for your Azure apps to run bu you will also need to access the server for development purposes and so additional rules are required. Simply click Add Rule, name the rule and set the IP address range for the rule. In this example I have set an extremely strict rule to only allow my IP access to the database. To turn off the firewall enter the range 0.0.0.0 to 255.255.255.255 but this is obviously not recommended.<br />
Bear in mind your local development environment may also have a firewall and to connect to the SQL Azure database you must have enable TCP communication on TCP port 1433.</p>
<p><img class="alignnone size-full wp-image-314" title="SQL Azure Firewall 3" src="http://azuresupport.com/wp-content/uploads/2009/12/Picture-31.png" alt="SQL Azure Firewall 3" width="468" height="291" /></p>
<p><br class="spacer_" /></p>
<p>The firewall can also be manipulated by executing TSQL against the Master database (you will obviously have to configure a firewall rule allowing a connect from the source of the TSQL first).</p>
<h3>View Firewall Rules</h3>
<p>The  <code><strong>sys.firewall_rules</strong></code> view contains the ?? <code>id, name, start_ip_address, end_ip_address, create_date and modify_date </code> for the firewall rules.</p>
<pre lang="sql">--Select all firewall rules
select * from sys.firewall_rules</pre>
<p><br class="spacer_" /></p>
<h3>Add/Update Firewall Rules</h3>
<p>Use the <code><strong>sp_set_firewall_rule</strong></code> stored procedure to add or update firewall rules, with <code> name, start_ip_address, end_ip_address as the parameters.</code></p>
<pre lang="sql">--Create a firewall rule
exec sp_set_firewall_rule N'azureSupDev','0.102.129.120','0.102.130.110'</pre>
<p><br class="spacer_" /></p>
<pre lang="sql">--Update a firewall rule
exec sp_set_firewall_rule N'azureSupDev','0.102.129.120','0.102.130.135'</pre>
<p><br class="spacer_" /></p>
<h3>Delete Firewall Rules</h3>
<p>Use the <code><strong>sp_delete_firewall_rule</strong></code> stored procedure to delete firewall rules, with <code> name</code> as the only parameter:</p>
<pre lang="sql">--Delete a firewall rule
exec sp_set_firewall_rule N'azureSupDev','0.102.129.120','0.102.130.135'</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2010/sql-azure-firewall-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Azure Encryption and Compression [FAQ]</title>
		<link>http://www.sqlazureperformance.com/2010/sql-azure-encryption-and-compression-faq/</link>
		<comments>http://www.sqlazureperformance.com/2010/sql-azure-encryption-and-compression-faq/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 06:56:54 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[SQL Azure]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=115</guid>
		<description><![CDATA[As of January 2010 launch encryption and compression are not included in the SQL Azure feature list. Encryption should definitely be introduced in 2010 and compression is also currently in testing.]]></description>
			<content:encoded><![CDATA[<p>As of January 2010 launch encryption and compression are not included in the SQL Azure feature list. Encryption should definitely be introduced in 2010 and compression is also currently in testing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2010/sql-azure-encryption-and-compression-faq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Azure Backup</title>
		<link>http://www.sqlazureperformance.com/2010/sql-azure-backup/</link>
		<comments>http://www.sqlazureperformance.com/2010/sql-azure-backup/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 06:32:18 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[SQL Azure]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=113</guid>
		<description><![CDATA[As of August 2010 SQL Azure does not contain any inbuilt backup options. The closest to an inbuilt backup functions is support for the TSQL Database Copy command which produces a transactionally complete copy of a database. Coming in 2010, Azure will deliver two backup methods &#8211; Clone and Continuous Backup. Clone (targeted for release [...]]]></description>
			<content:encoded><![CDATA[<p>As of August 2010 SQL Azure does not contain any inbuilt backup options.</p>
<p>The closest to an inbuilt backup functions is support for the TSQL <a href="http://www.azuresupport.com/2010/08/sql-azure-backup-database-copy/">Database Copy</a> command which produces a transactionally complete copy of a database.</p>
<p>Coming in 2010, Azure will deliver two backup methods &#8211; Clone and Continuous Backup. Clone (targeted for release in H1 2010) allows for a transactionally consistent &#8216;clone&#8217; to be made of a database, once a clone is created it is a totally separate database with no relations to the &#8216;parent&#8217; database. Continuous Backup (targeted for release in H2 2010) is similar to a mirror and is configured with a retention period and a lag time. Continuous Backup copies will be read-only. These will be be add-ons to the standard SQL Azure service and will incur an additional fee which was has not yet been announced.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2010/sql-azure-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>SQL Azure Failover [FAQ]</title>
		<link>http://www.sqlazureperformance.com/2010/sql-azure-failover/</link>
		<comments>http://www.sqlazureperformance.com/2010/sql-azure-failover/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 03:43:36 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Failover]]></category>
		<category><![CDATA[SQL Azure]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=90</guid>
		<description><![CDATA[One of the key benefits of Azure is the inbuilt failover protection, in the event of a hardware failure the automatic failover kicks in and a mirror of the database is brought online. This failover is not completely seemless as the current sessions will first be disconnected and then must be reconnected. If the fail [...]]]></description>
			<content:encoded><![CDATA[<p>One of the key benefits of Azure is the inbuilt failover protection, in the event of a hardware failure the automatic failover kicks in and a mirror of the database is brought online. This failover is not completely seemless as the current sessions will first be disconnected and then must be reconnected. If the fail occurs during a transaction, that transaction is then rolled back.</p>
<p>In addition there is inbuilt DOS protection, if there are many failed attempts to access a SQL Azure database the requesting IP is disallowed for a period of time. Thus if you make several incorrect login attempts you may be locked out for a short period.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2010/sql-azure-failover/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Azure Resource Ultilization Limits  [FAQ]</title>
		<link>http://www.sqlazureperformance.com/2010/sql-azure-resource-ultilization-limits/</link>
		<comments>http://www.sqlazureperformance.com/2010/sql-azure-resource-ultilization-limits/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 03:37:10 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[SQL Azure]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=88</guid>
		<description><![CDATA[As Azure is a common platform shared by many users Microsoft has implement resource utilization limits to prevent excessive use of resources. This seems a little strange on a cloud based system which should isolate users and provide effortless scaling but some resources need to be managed carefully to prevent an adverse impact on the [...]]]></description>
			<content:encoded><![CDATA[<p>As Azure is a common platform shared by many users Microsoft has implement resource utilization limits to prevent excessive use of resources. This seems a little strange on a cloud based system which should isolate users and provide effortless scaling but some resources need to be managed carefully to prevent an adverse impact on the entire cloud. Expect these restrictions to be eased and modified as Azure matures.</p>
<p>As at launch (January 2010) SQL Azure will disconnect any idle sessions after 5 minutes, it will also kill any long running transactions which last over 5 minutes (Microsoft has pledged to adapt this restriction in future and attempt to distinguish between genuine long running transactions and transactions which are not operating correctly). SQL Azure will implement resource throttling if a process generates excessive CPU or I/O load. The exact throttle thresholds are not disclosed.</p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2010/sql-azure-resource-ultilization-limits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to SQL Azure [FAQ]</title>
		<link>http://www.azuresupport.com/2009/12/connecting-to-sql-azure-faq/</link>
		<comments>http://www.azuresupport.com/2009/12/connecting-to-sql-azure-faq/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 03:13:30 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[SQL Azure]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=86</guid>
		<description><![CDATA[Connecting to a SQL Azure database is extremely simple, connection can be done using the classic ADO.NET  method. When a database is created in SQL Azure a connection string is generated. This connection string follows the normal  syntax for connection strings and can be substituted for a connection string to a SQL Server in an [...]]]></description>
			<content:encoded><![CDATA[<p>Connecting to a SQL Azure database is extremely simple, connection can be done using the classic ADO.NET  method. When a database is created in SQL Azure a connection string is generated. This connection string follows the normal  syntax for connection strings and can be substituted for a connection string to a SQL Server in an ADO.NET Connection object.</p>
<p>There is a subtle difference in connecting compared with SQL Server. When connecting to SQL Server you are first connected to the server and through the server to the database, in Azure you are directly connected to the database. This means that there is no support for context switching using the USE keyword (in SQL Server this allowed the Server to direct a request to a database determined at run-time).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azuresupport.com/2009/12/connecting-to-sql-azure-faq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing SQL Azure</title>
		<link>http://www.sqlazureperformance.com/2010/testing-sql-azure/</link>
		<comments>http://www.sqlazureperformance.com/2010/testing-sql-azure/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 02:20:26 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[SQL Azure]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=18</guid>
		<description><![CDATA[So how do you know whether all the T-SQL syntaxes are working with SQL Azure? For the purpose of this example we will use the TSQL from the AdventureWorks database. Database First you need to create a database. You need to be logged in to the Master database to create a database. CREATE DATABASE AdventureWorks2008 [...]]]></description>
			<content:encoded><![CDATA[<p>So how do you know whether all the T-SQL syntaxes are working with SQL Azure? For the purpose of this example we will use the TSQL from the AdventureWorks database.</p>
<h3><strong>Database</strong></h3>
<p>First you need to create a database. You need to be logged in to the <strong>Master</strong> database to create a database.</p>
<p>CREATE DATABASE AdventureWorks2008</p>
<p>After creating the database, you need to log into the database with the created database credentials.</p>
<h3><strong>Schema, UDF and UDT </strong></h3>
<p>Schema , UDF and UDTs will be created without any issues. However, if you generate the script from the AdventurkWorks2008 database there will be entries for stored procedure sp_addextendedproperty.</p>
<h3><strong>Table &amp; DML Triggers</strong></h3>
<p>There are a few limitations in the CREATE TABLE statement when it comes to SQL Azure which are highlighted in the following image.</p>
<p><img id="Picture 9" src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image009.jpg" border="0" alt="" width="624" height="369" /></p>
<p>You will need to remove these tags and columns to create tables in SQL Azure. As you can see in the above image, ROWGUIDCOL, xml and <strong>hierarchyid</strong> data types are not supported.</p>
<p><img src="http://www.azuresupport.com/wp-content/images_misc/sql_azure_intro_files/image010.png" alt="Text Box: UPDATE [Purchasing].[PurchaseOrderHeader] SET [Purchasing].[PurchaseOrderHeader].[RevisionNumber] = [Purchasing].[PurchaseOrderHeader].[RevisionNumber] + 1" width="662" height="79" />Triggers will be created but you shouldn’t use columns with more than two parts.</p>
<p>If you run this statement you will receive following error.</p>
<p><strong>Deprecated feature &#8216;More than two-part column name&#8217; is not supported in this version of SQL Server.</strong></p>
<p>In the Update statement above, RevisionNumber is referred as <strong>[Purchasing].[PurchaseOrderHeader].[RevisionNumber] </strong>which will not be supported by SQL Azure.</p>
<h3><strong><strong>View</strong></strong></h3>
<p>Views don’t have major issues except that the above mention column types are not supported.</p>
<h3><strong>Stored Procedures </strong></h3>
<p>Store procedures behave same as views.</p>
<h3><strong>DDL Triggers</strong></h3>
<p>DDL Triggers can be created but with a major limitation – the EVENTDATA() function is not supported in SQL Azure (the EVENTDATA() function used to capture event information).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlazureperformance.com/2010/testing-sql-azure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

