<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>SQL Server - General</title>
        <link>http://weblogs.sqlteam.com/tarad/category/94.aspx</link>
        <description>SQL Server - General</description>
        <language>en-US</language>
        <copyright>Tara Kizer</copyright>
        <managingEditor>tara.kizer@gmail.com</managingEditor>
        <generator>Subtext Version 1.9.4.0</generator>
        <item>
            <title>SQL Injection Attacks</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2008/06/05/SQL-Injection-Attacks.aspx</link>
            <description>&lt;p&gt;There's a lot of information out there on how to avoid SQL injection attacks, but I wanted to point you to &lt;a href="http://blogs.technet.com/swi/archive/2008/05/29/sql-injection-attack.aspx"&gt;this blog&lt;/a&gt; due to the recent increase in such attacks.  &lt;/p&gt;
&lt;p&gt;Thank you, &lt;a href="http://blogs.msdn.com/buckwoody/archive/2008/05/30/sql-injection-attacks.aspx"&gt;Buck Woody&lt;/a&gt;, for bringing this to our (&lt;a href="https://mvp.support.microsoft.com/communities/mvp.aspx?product=1&amp;amp;competency=SQL"&gt;SQL Server MVPs&lt;/a&gt;) attention.  &lt;/p&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/60617.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2008/06/05/SQL-Injection-Attacks.aspx</guid>
            <pubDate>Thu, 05 Jun 2008 21:33:47 GMT</pubDate>
            <wfw:comment>http://weblogs.sqlteam.com/tarad/comments/60617.aspx</wfw:comment>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2008/06/05/SQL-Injection-Attacks.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/60617.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Data Types of Parameters and Execution Plans</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2007/11/16/60408.aspx</link>
            <description>&lt;style type="text/css"&gt;&lt;![CDATA[

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: Consolas, "Courier New", Courier, Monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}

.csharpcode pre { margin: 0em; }

.csharpcode .rem { color: #008000; }

.csharpcode .kwrd { color: #0000ff; }

.csharpcode .str { color: #ff0000; }

.csharpcode .op { color: #0000c0; }

.csharpcode .preproc { color: #ff00dc; }

.csharpcode .asp { background-color: #ffff00; }

.csharpcode .html { color: #800000; }

.csharpcode .attr { color: #ff0000; }

.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}

.csharpcode .lnum { color: #606060; }]]&gt;&lt;/style&gt;
&lt;p&gt;&lt;font face="Arial"&gt;In a &lt;a href="http://weblogs.sqlteam.com/tarad/archive/2007/11/05/60392.aspx"&gt;previous blog,&lt;/a&gt; I mentioned a performance problem &lt;/font&gt;&lt;font face="Arial"&gt;that I've been working on for a few weeks.  I can finally say that this issue has been resolved.  &lt;/font&gt;&lt;font face="Arial"&gt;The problem was that the database server (SQL Server 2005) was running at 95%-100% CPU utilization at all times.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Here is the query that was causing our problem (object names have been changed):&lt;/font&gt; &lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;SELECT&lt;/span&gt; Table1Id
&lt;span class="kwrd"&gt;FROM&lt;/span&gt; Table1
&lt;span class="kwrd"&gt;WHERE&lt;/span&gt; Unit = ?&lt;/pre&gt;
&lt;p&gt;&lt;font face="Arial"&gt;We were receiving a bad execution plan for this query due to nvarchar being used for the Unit parameter.  The Unit &lt;/font&gt;&lt;font face="Arial"&gt;column is defined as varchar(50) in the table.  See the below demonstration for the table structure including &lt;/font&gt;&lt;font face="Arial"&gt;constraints and indexes.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;The application is written in Java and uses the JDBC driver for SQL Server from Inet software.  The application does &lt;/font&gt;&lt;font face="Arial"&gt;not specify the data types of the parameters in their queries and relies on the driver to do that for them.  It turns &lt;/font&gt;&lt;font face="Arial"&gt;out that the driver is choosing nvarchar(4000) for the Unit parameter.  Once the application was modified to convert &lt;/font&gt;&lt;font face="Arial"&gt;the parameter to varchar, CPU utilization dropped to below 5%.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Here is what the above query was changed to in the application:&lt;/font&gt; &lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;SELECT&lt;/span&gt; Table1Id
&lt;span class="kwrd"&gt;FROM&lt;/span&gt; Table1
&lt;span class="kwrd"&gt;WHERE&lt;/span&gt; Unit = &lt;span class="kwrd"&gt;cast&lt;/span&gt;(? &lt;span class="kwrd"&gt;AS&lt;/span&gt; &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;font face="Arial"&gt;I am able to duplicate the issue with pure T-SQL.  Please see below for a demonstration of the problem.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Setup the environment:&lt;/font&gt; &lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;SET NOCOUNT ON&lt;/span&gt; 

&lt;span class="kwrd"&gt;CREATE&lt;/span&gt; &lt;span class="kwrd"&gt;TABLE&lt;/span&gt; Table1
(
    Table1Id &lt;span class="kwrd"&gt;int&lt;/span&gt; &lt;span class="kwrd"&gt;IDENTITY&lt;/span&gt;(1, 1) &lt;span class="kwrd"&gt;NOT&lt;/span&gt; &lt;span class="kwrd"&gt;NULL&lt;/span&gt;,
    Unit &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(50) &lt;span class="kwrd"&gt;COLLATE&lt;/span&gt; SQL_Latin1_General_CP1_CI_AS &lt;span class="kwrd"&gt;NOT&lt;/span&gt; &lt;span class="kwrd"&gt;NULL&lt;/span&gt;,
    &lt;span class="kwrd"&gt;CONSTRAINT&lt;/span&gt; PK_Table1 &lt;span class="kwrd"&gt;PRIMARY&lt;/span&gt; &lt;span class="kwrd"&gt;KEY&lt;/span&gt; &lt;span class="kwrd"&gt;NONCLUSTERED&lt;/span&gt; (Table1Id),
    &lt;span class="kwrd"&gt;CONSTRAINT&lt;/span&gt; uniq_Unit &lt;span class="kwrd"&gt;UNIQUE&lt;/span&gt; &lt;span class="kwrd"&gt;CLUSTERED&lt;/span&gt; (Unit)
)

&lt;span class="kwrd"&gt;INSERT&lt;/span&gt; &lt;span class="kwrd"&gt;INTO&lt;/span&gt; Table1 (Unit) 
&lt;span class="kwrd"&gt;SELECT&lt;/span&gt; &lt;span class="kwrd"&gt;TOP&lt;/span&gt; 1000000 REPLACE(NEWID(), &lt;span class="str"&gt;'-'&lt;/span&gt;, &lt;span class="str"&gt;''&lt;/span&gt;)
&lt;span class="kwrd"&gt;FROM&lt;/span&gt; SomeLargeTable

&lt;span class="kwrd"&gt;INSERT&lt;/span&gt; &lt;span class="kwrd"&gt;INTO&lt;/span&gt; Table1 (Unit) &lt;span class="kwrd"&gt;VALUES&lt;/span&gt;(&lt;span class="str"&gt;'abcdefghijklmnopqrstuvwxyz'&lt;/span&gt;)

&lt;span class="kwrd"&gt;CREATE&lt;/span&gt; &lt;span class="kwrd"&gt;STATISTICS&lt;/span&gt; Stats1 &lt;span class="kwrd"&gt;ON&lt;/span&gt; Table1 (Table1Id) &lt;span class="kwrd"&gt;WITH&lt;/span&gt; FULLSCAN
&lt;span class="kwrd"&gt;CREATE&lt;/span&gt; &lt;span class="kwrd"&gt;STATISTICS&lt;/span&gt; Stats2 &lt;span class="kwrd"&gt;ON&lt;/span&gt; Table1 (Unit) &lt;span class="kwrd"&gt;WITH&lt;/span&gt; FULLSCAN &lt;/pre&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Turn on the option in SQL Server Management Studio to include the actual execution plan by hitting Ctrl+M or by selecting &lt;/font&gt;&lt;font face="Arial"&gt;"Include Actual Execution Plan" in the Query menu.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Bad execution plan:&lt;/font&gt; &lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @Unit1 &lt;span class="kwrd"&gt;nvarchar(50)&lt;br /&gt;&lt;/span&gt;&lt;span class="kwrd"&gt;SET&lt;/span&gt; @Unit1 = &lt;span class="str"&gt;'abcdefghijklmnopqrstuvwxyz'&lt;/span&gt;

&lt;span class="kwrd"&gt;SELECT&lt;/span&gt; Table1Id
&lt;span class="kwrd"&gt;FROM&lt;/span&gt; Table1
&lt;span class="kwrd"&gt;WHERE&lt;/span&gt; Unit = @Unit1 &lt;/pre&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;img height="150" alt="" width="450" src="http://www.michaelandtara.com/images/badnvarchar.jpg" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Good execution plan:&lt;/font&gt; &lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @Unit2 &lt;span class="kwrd"&gt;varchar(50)&lt;br /&gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;SET&lt;/span&gt; @Unit2 = &lt;span class="str"&gt;'abcdefghijklmnopqrstuvwxyz'&lt;/span&gt;

&lt;span class="kwrd"&gt;SELECT&lt;/span&gt; Table1Id
&lt;span class="kwrd"&gt;FROM&lt;/span&gt; Table1
&lt;span class="kwrd"&gt;WHERE&lt;/span&gt; Unit = @Unit2 &lt;/pre&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;img height="150" alt="" width="450" src="http://www.michaelandtara.com/images/goodvarchar.jpg" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Here are the two execution plans together, ran as a batch to show cost (nvarchar/bad one is first):&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;img height="320" alt="" width="450" src="http://www.michaelandtara.com/images/badgood.jpg" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Notice how the query that used nvarchar for the parameter costs 100% in the batch.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Cleanup the environment:&lt;/font&gt; &lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;DROP&lt;/span&gt; &lt;span class="kwrd"&gt;TABLE&lt;/span&gt; Table1&lt;/pre&gt;
&lt;p&gt;&lt;font face="Arial"&gt;This issue would have been avoided if the application used stored procedures or if it wasn't left up to the driver to determine what data type to use for the parameter.&lt;/font&gt;&lt;/p&gt;
&lt;font face="Arial"&gt;&lt;p&gt;Note: This occurs on the SQL collations only and not the Windows ones.  Thanks &lt;a href="http://weblogs.sqlteam.com/mladenp/"&gt;Mladen&lt;/a&gt; for testing that out.&lt;/p&gt;&lt;/font&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/60408.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2007/11/16/60408.aspx</guid>
            <pubDate>Fri, 16 Nov 2007 19:56:14 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2007/11/16/60408.aspx#feedback</comments>
            <slash:comments>6</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/60408.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Microsoft MVP Award</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2007/07/02/60247.aspx</link>
            <description>&lt;p&gt;I'm proud to announce that I have received the Microsoft MVP Award for my contributions to the SQL Server community. &lt;/p&gt;
&lt;p&gt;I'd like to thank Ben Miller from Microsoft for the nomination.  Thanks Ben!&lt;/p&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/60247.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2007/07/02/60247.aspx</guid>
            <pubDate>Mon, 02 Jul 2007 16:46:10 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2007/07/02/60247.aspx#feedback</comments>
            <slash:comments>16</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/60247.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SQL Server "Katmai"</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2007/05/10/60201.aspx</link>
            <description>&lt;p&gt;Microsoft announced yesterday that the new version of SQL Server, code-named "Katmai", will be delivered in 2008. &lt;/p&gt;
&lt;p&gt;Check &lt;a href="http://www.microsoft.com/presspass/press/2007/may07/05-09KatmaiPR.mspx"&gt;this&lt;/a&gt; out for information on "Katmai".&lt;/p&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/60201.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2007/05/10/60201.aspx</guid>
            <pubDate>Thu, 10 May 2007 23:18:26 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2007/05/10/60201.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/60201.aspx</wfw:commentRss>
        </item>
        <item>
            <title>32-bit/64-bit aliases</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2007/04/10/60170.aspx</link>
            <description>&lt;p&gt;We don't use the default port for SQL Server for security reasons, so we usually have to explicitly tell the client how to connect to SQL Server by creating an alias on the client machine.&lt;/p&gt;
&lt;p&gt;There are many ways to create an alias on a client machine.  My favorite is via the registry as it allows me to save the values to a reg file so that we can quickly deploy them to other client machines.  &lt;/p&gt;
&lt;p&gt;Here is the location of these aliases: &lt;br /&gt;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo &lt;/p&gt;
Yesterday I was configuring transactional replication between two databases on different servers.  The servers are on different networks and are separated by at least one firewall.  I first tried connecting to the subscriber by running Management Studio on the publisher.  As expected, I wasn't able to connect successfully using ServerName\InstanceName.  I then tried using this in Management Studio: ServerName.DomainName.com,PortNumber.  This worked, however replication requires you to use the actual SQL Server name (ServerName\InstanceName).
&lt;p&gt;I then added the following alias to the previously mentioned key:&lt;br /&gt;
String value: ServerName\InstanceName&lt;br /&gt;
Data: DBMSSOCN,ServerName.DomainName.com,PortNumber&lt;/p&gt;
&lt;p&gt;I was unable to connect using this alias.  This should be no different that using ServerName.DomainName.com,PortNumber.  After scratching my head for a while, I finally figured out what the problem was.  &lt;/p&gt;
&lt;p&gt;The publisher server is a 64-bit machine.  When you are using 32-bit applications on a 64-bit machine, it uses the Wow6432Node key in the registry to present a separate view of HKEY_LOCAL_MACHINE\SOFTWARE.&lt;/p&gt;
&lt;p&gt;Once I added the alias to the following key, I was able to connect successfully to the subscriber using Management Studio:&lt;br /&gt;
HKEY_LOCAL_MACHINE\SOFTWARE\&lt;strong&gt;Wow6432Node&lt;/strong&gt;\Microsoft\MSSQLServer\Client\ConnectTo&lt;/p&gt;
&lt;p&gt;Check &lt;a href="http://www.windowsitpro.com/Articles/ArticleID/25995/25995.html"&gt;this&lt;/a&gt; out for more details on Wow6432Node.&lt;/p&gt;
&lt;p&gt;Note: SQL Server Configuration Manager allows you to create both 32-bit and 64-bit aliases when the client is 64-bit.  I hadn't noticed this until after I found Wow6432Node in the registry.&lt;/p&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/60170.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2007/04/10/60170.aspx</guid>
            <pubDate>Tue, 10 Apr 2007 17:23:33 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2007/04/10/60170.aspx#feedback</comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/60170.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SQL Server 2005 - Best Practices</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2006/12/13/51361.aspx</link>
            <description>Check out &lt;a href="http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/default.mspx"&gt;this article&lt;/a&gt; for white papers, scripts, and tools on SQL Server 2005 best practices.&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/51361.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2006/12/13/51361.aspx</guid>
            <pubDate>Wed, 13 Dec 2006 21:06:31 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2006/12/13/51361.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/51361.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Management Studio slowness</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2006/10/05/13676.aspx</link>
            <description>&lt;p&gt;We've been having performance problems on a new 64-bit SQL Server 2005 cluster in our test environment.  We opened a ticket with Microsoft to assist us with this.  &lt;/p&gt;
&lt;p&gt;After modifying several things, the only thing that was slow was Management Studio.  On both nodes of this cluster, it would take about 3-5 minutes to load Management Studio.  The first MS engineer suggested that we add the nosplash switch to the Management Studio shortcut, like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.MichaelAndTara.com/images/ManagementStudioShortcut.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;This did not increase performance at all on either node.  The second MS engineer suggested that we uncheck two options in Internet Explorer's Advanced Security settings.  The two options are "Check for publisher's certificate revocation" and "Check for server certificate revocation".&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.MichaelAndTara.com/images/InternetExplorerCertRevocation.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;After restarting both nodes in the cluster, Management Studio took about 15 seconds to load the first time and 1-2 seconds for each subsequent load!&lt;/p&gt;
&lt;p&gt;So if you are experiencing similar Management Studio slowness, I'd suggest trying these out.&lt;/p&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/13676.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2006/10/05/13676.aspx</guid>
            <pubDate>Thu, 05 Oct 2006 17:47:20 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2006/10/05/13676.aspx#feedback</comments>
            <slash:comments>6</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/13676.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Generating SQL Scripts in SQL Server 2005</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2006/09/20/12374.aspx</link>
            <description>&lt;p&gt;&lt;font size="2"&gt;In SQL Server 2000, you could generate a SQL script easily using the Generate SQL Script wizard.  You could get to it from pretty much anywhere from within Enterprise Manager.  For instance, you can get to it by right clicking on any object in the database, then selecting All Tasks, and then selecting Generate SQL Script.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;In SQL Server 2005, it is now called Generate Scripts.  The only place that I can find where you can get to it is if you right click on the database, then selecting Tasks, and then selecting Generate Scripts.  The 2005 wizard does not resemble the 2000 wizard, so you have to use it a few times before you are comfortable with it.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The most annoying thing with the new 2005 scripting wizard is that you can not generate both CREATE and DROP statements together like you could in the 2000 scripting wizard.  When you select the Script Behavior field, it indicates that this is possible.  However, it is not! Check this out:&lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;img alt="" src="http://www.MichaelandTara.com/images/GenerateSQLScript2005.jpg" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Notice in the description that it says you can do either CREATE, DROP, or DROP followed by CREATE.  However, when you look at the dropdown options, only DROP or CREATE is available.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;I am running SQL Server 2005 service pack 1 already.  Let's hope they fix this in the next service pack.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/12374.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2006/09/20/12374.aspx</guid>
            <pubDate>Wed, 20 Sep 2006 23:47:13 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2006/09/20/12374.aspx#feedback</comments>
            <slash:comments>10</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/12374.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Commenting Blocks of Code in SQL Server 2005</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2006/09/13/12034.aspx</link>
            <description>&lt;P&gt;In Query Analyzer, we could easily comment&amp;nbsp;blocks of code using Ctrl+Shift+C and uncomment blocks of code using Ctrl+Shift+R.&lt;/P&gt;
&lt;P&gt;These keyboard shortcuts do not work in Management Studio unless you switch the keyboard scheme to SQL Server 2000.&lt;/P&gt;
&lt;P&gt;In Management Studio, you can comment blocks of code using Ctrl+K, Ctrl+C and uncomment blocks of code using Ctrl+K, Ctrl+U.&amp;nbsp; These are the same keyboard shortcuts that you would use to comment blocks of code in Visual Studio .NET, so I'm sure that's why Microsoft decided to switch the shortcuts.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;To see other keyboard shortcuts for T-SQL code in Management Studio, open a query window by clicking the New Query button.&amp;nbsp; Click on the Edit menu then Advanced.&amp;nbsp; You must be in a query window for the Advanced item to appear in the Edit menu.&amp;nbsp; &lt;/P&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/12034.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2006/09/13/12034.aspx</guid>
            <pubDate>Wed, 13 Sep 2006 23:57:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2006/09/13/12034.aspx#feedback</comments>
            <slash:comments>6</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/12034.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Red Gate Software</title>
            <link>http://weblogs.sqlteam.com/tarad/archive/2006/06/20/10302.aspx</link>
            <description>&lt;P&gt;Last week, I received a new laptop.&amp;nbsp; For the past few days, I've been installing all of the applications that I need.&amp;nbsp; Today, I decided to tackle &lt;A href="http://www.red-gate.com/"&gt;Red Gate&lt;/A&gt;'s &lt;A href="http://www.red-gate.com/products/SQL_Compare/index.htm"&gt;SQL Compare&lt;/A&gt;.&amp;nbsp; On my old laptop, I was running version 3.&amp;nbsp; I hadn't kept a copy of the installation, so I went to their site to see if I could download it.&amp;nbsp; I couldn't find version 3, so I decided to download the new version to see if my serial number would work as I wasn't sure if we had renewed our support contract.&amp;nbsp; My serial number didn't work in version 5.&amp;nbsp; I e-mailed them to find out if I could get version 3 anywhere.&amp;nbsp; I had a response within 25 minutes!&amp;nbsp; They sent me the link to download version 3 on their ftp site.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I was amazed at how fast they replied to my e-mail and that they helped me out even though we did not have a current support contract.&amp;nbsp; I have always recommended &lt;A href="http://www.red-gate.com/products/index.htm"&gt;their products&lt;/A&gt; in the past, now I can attest to their excellent&amp;nbsp;customer support.&lt;/P&gt;&lt;img src="http://weblogs.sqlteam.com/tarad/aggbug/10302.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tara Kizer</dc:creator>
            <guid>http://weblogs.sqlteam.com/tarad/archive/2006/06/20/10302.aspx</guid>
            <pubDate>Tue, 20 Jun 2006 23:02:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/tarad/archive/2006/06/20/10302.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/tarad/comments/commentRss/10302.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>