<?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; Testing</title>
	<atom:link href="http://www.azuresupport.com/tag/testing/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>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>

