<?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>bisql.net &#187; Microsoft SQL Server</title>
	<atom:link href="http://www.bisql.net/category/mssql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bisql.net</link>
	<description>Ashley Burton&#039;s BI, SQL &#38; Mobile Dev Blog</description>
	<lastBuildDate>Tue, 24 Jan 2012 06:09:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>SQLBits by the Sea a.k.a. Nerds on a Beach!</title>
		<link>http://www.bisql.net/2011/04/sqlbits8/</link>
		<comments>http://www.bisql.net/2011/04/sqlbits8/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 08:30:27 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Data Modelling]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[Data Vault]]></category>
		<category><![CDATA[Denali]]></category>
		<category><![CDATA[FusionIO]]></category>
		<category><![CDATA[SQLBits]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=890</guid>
		<description><![CDATA[Who&#8217;d of thought it &#8211; it&#8217;s early April and I&#8217;ve come back from a SQL Server technical conference with sunburnt arms and a smile on my face.  Usually when I tell people that I&#8217;m going to a Microsoft SQL Server conference they sarcastically say things like &#8220;have fun&#8221;, or &#8220;rather you than me&#8221; and when [...]]]></description>
			<content:encoded><![CDATA[
<p><a rel="attachment wp-att-894" href="http://www.bisql.net/2011/04/sqlbits8/i_heart_sqlbits/" target="_blank"><img class="size-thumbnail wp-image-894 alignright" title="i_heart_sqlbits" src="http://www.bisql.net/wp-content/uploads/2011/04/i_heart_sqlbits-150x150.png" alt="" width="120" height="120" /></a>Who&#8217;d of thought it &#8211; it&#8217;s early April and I&#8217;ve come back from a SQL Server technical conference with sunburnt arms and a smile on my face.  Usually when I tell people that I&#8217;m going to a Microsoft SQL Server conference they sarcastically say things like &#8220;have fun&#8221;, or &#8220;rather you than me&#8221; and when I tell them that it also runs into Saturday and that I&#8217;m not even getting paid for it they&#8217;re even more incredulous.  I can understand the attitude since on paper it sounds like a rather dry affair but nobody that&#8217;s ever attended a SQLBits event would ever agree with that sentiment because it&#8217;s the strangest thing, somehow against all odds the SQLBits organisers have built an event crammed full of technical talks from some of the leading lights of the industry and they&#8217;ve also made it fun.  The craziest thing of all is that the Saturday &#8216;community day&#8217; is also completely free and with over 40 talks it&#8217;s every bit as good as the the paid days, couple that with the prizes and other swag on offer from the sponsors and you can&#8217;t fail to walk away better-off than you went in!</p>
<p><a href="http://www.bisql.http://www.bisql.net/?attachment_id=908net/wp-content/uploads/2011/04/cassette_lord.png" target="_blank"><img class="alignleft size-medium wp-image-908" title="Cassette Lord" src="http://www.bisql.net/wp-content/uploads/2011/04/cassette_lord-300x213.png" alt="" width="168" height="119" /></a>Friday&#8217;s keynote was delivered by Microsoft&#8217;s Mark Souza and gave an insightful rundown of some new features coming in the next release of SQL Server codenamed Denali, there were some interesting High Availability and Disaster Recovery (HADR) features, a new Column Store styled index, the new data visualisation / dashboard tool Crescent as well as some additional enhancements that sound minor but will probably yield a large benefit (Windows Core support, Contained Databases, FileTable).  Also sharing the stage with Mark was David Flynn, CEO of Fusion-IO who gave a short but interesting overview of their ioDrive product which can provide amazing performance increases by moving IO bottleneck from the SAN onto NAND Flash directly attached to the PCI Express bus &#8211; though some nearby graffiti (pictured) showed that there&#8217;s still some loyalty to old storage media!</p>
<p><img class="size-medium wp-image-899 alignright" title="Brighton Beach" src="http://www.bisql.net/wp-content/uploads/2011/04/brighton_beach-300x185.jpg" alt="" width="252" height="156" /></p>
<p>My top talks of the weekend included <a title="Jamie Thomson" href="http://sqlblog.com/blogs/jamie_thomson/" target="_blank">Jamie Thompson</a>&#8216;s session on SSIS Performance and <a title="Vincent Rainardi" href="http://www.datawarehouse.org.uk" target="_blank">Vincent Rainardi</a>&#8216;s talk on Advanced Dimensional Modelling but my &#8216;best of show&#8217; goes to Martijn Evers&#8217; talk on Data Vault &#8211; a data modelling technique that complements use of the well established Kimball and Inmon approaches to data warehousing.  I took a lot of useful hints, tips and tricks away from many of the talks I attended but the Data Vault talk gave me something much more valuable &#8211; an entirely new idea, something I&#8217;d never heard before but will make me think about data modelling in a slightly different way.  It&#8217;s the inclusion of these satellite topics (i.e. not <em>directly</em> related to SQL Server) that really makes SQLBits stand out and one of the reasons I keep coming back.  Aside from the talks my other highlights were sitting on the beach eating lunch and getting my first go on the Xbox 360 Kinect!</p>
<p><a rel="attachment wp-att-913" href="http://www.bisql.net/2011/04/sqlbits8/photo-10/" target="_blank"><img class="alignleft size-thumbnail wp-image-913" title="SQL Azure" src="http://www.bisql.net/wp-content/uploads/2011/04/photo-10-150x150.jpg" alt="" width="150" height="150" /></a>It&#8217;s worth mentioning that the entire event couldn&#8217;t happen without the sponsors and in particular I think a lot of good will should be shown to Microsoft.  Windows users tend to see them as a giant corporate entity that they never get to interact with but somehow it&#8217;s different in the SQL Server product team and they make a lot of effort drafting in some of their best people including Thomas Kejser, Ewan Fairweather, Lubor Kollar, Mark Souza, Connor Cunningham and Andrew Fryer (who completely schooled me on Kinect boxing).  Many of these guys fly in from the US and of course Microsoft can afford it but the point is that they don&#8217;t make a big deal out of it, these guys run sessions and wander around conference offering support to anyone that asks &#8211; where else do you get that?</p>
<p>There&#8217;s nothing quite like listening to a talk from someone who&#8217;s utterly engaged in what they do and wants to share the information with others and that&#8217;s what SQLBits is all about so if you&#8217;re a SQL Server developer or DBA you just have to go, it&#8217;s that simple but if even you&#8217;re a .NET developer or work with other database and BI products it&#8217;s well worth attending &#8211; for now I&#8217;ll look forward to seeing you all at the next SQLBits.</p>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2011%252F04%252Fsqlbits8%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22SQLBits%20by%20the%20Sea%20a.k.a.%20Nerds%20on%20a%20Beach%21%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2011/04/sqlbits8/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using MySQL BLOB Data via ODBC in SSIS, SQL Server &amp; Business Objects</title>
		<link>http://www.bisql.net/2011/03/mysql-odbc-blob/</link>
		<comments>http://www.bisql.net/2011/03/mysql-odbc-blob/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 20:58:36 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Business Objects]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[business objects]]></category>
		<category><![CDATA[ETL]]></category>
		<category><![CDATA[Integration Services]]></category>
		<category><![CDATA[mys]]></category>
		<category><![CDATA[ODBC]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=811</guid>
		<description><![CDATA[Whilst trying to build a centralised cross-platform alerting system I spotted a peculiar issue when trying to move the output of a SHOW FULL PROCESSLIST command on MySQL via ODBC.  It seems that the output of the SHOW FULL PROCESSLIST command returns both integers and binary (BLOB) data types even though to they eye (that [...]]]></description>
			<content:encoded><![CDATA[
<p>Whilst trying to build a centralised cross-platform alerting system I spotted a peculiar issue when trying to move the output of a SHOW FULL PROCESSLIST command on MySQL via ODBC.  It seems that the output of the SHOW FULL PROCESSLIST command returns both integers and binary (BLOB) data types even though to they eye (that is, in the MySQL Query Browser) most of the columns appear to be short text fields.</p>
<p>Despite the fact that the data <em>looks</em> like text whenever I tried to return the data into an application, I tried SSIS, SQL Server Linked Servers <em>and</em> Business Objects, each time the data would come back unusable or an error would be returned.  Business Objects gave me the key by declaring &#8220;This is a BLOB.&#8221; as you can see in the following screenshots&#8230;</p>
<p><span style="text-decoration: underline;">SQL Server Integration Services</span></p>
<p><em><img class="alignnone size-full wp-image-819" title="mysql_blob_ssis_01" src="http://www.bisql.net/wp-content/uploads/2011/03/mysql_blob_06.png" alt="" width="508" height="186" /></em></p>
<p><span style="text-decoration: underline;">SQL Server Linked Server</span></p>
<p><img class="alignnone size-full wp-image-818" title="mysql_blob_linked_02" src="http://www.bisql.net/wp-content/uploads/2011/03/mysql_blob_05.png" alt="" width="352" height="163" /></p>
<p><span style="text-decoration: underline;">Business Objects Desktop Intelligence</span></p>
<p><span style="text-decoration: underline;"><img class="alignnone size-full wp-image-814" title="mysql_blob_busobj_01" src="http://www.bisql.net/wp-content/uploads/2011/03/mysql_blob_01.png" alt="" width="169" height="138" /></span></p>
<p>As with my recent post about <a title="Loading Data into MySQL Using SSIS" href="http://www.bisql.net/2011/03/pgsql_ssis_mysql/" target="_blank">loading data into MySQL with SSIS</a> the saviour turns out to be an ODBC configuration setting, this time in the Metadata tab of the MySQL ODBC driver.  All you have to do is check the &#8220;Always handle binary function results as character data&#8221; and instantly your problems will be solved&#8230;</p>
<p><img class="alignnone size-full wp-image-815" title="mysql_blob_odbc" src="http://www.bisql.net/wp-content/uploads/2011/03/mysql_blob_02.png" alt="" width="387" height="267" /></p>
<p>Out of a crazy fit of completeness I also took screenshots of the final results and it&#8217;d be a shame to waste them so here they are&#8230;</p>
<p><span style="text-decoration: underline;">SQL Server Integration Services</span></p>
<p><img class="alignnone size-full wp-image-822" title="mysql_blob_ssis_02" src="http://www.bisql.net/wp-content/uploads/2011/03/mysql_blob_08.png" alt="" width="457" height="149" /></p>
<p><span style="text-decoration: underline;">SQL Server Linked Server</span></p>
<p><span style="text-decoration: underline;"><img class="alignnone size-full wp-image-817" title="mysql_blob_linked_03" src="http://www.bisql.net/wp-content/uploads/2011/03/mysql_blob_04.png" alt="" width="277" height="125" /><br />
</span></p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Business Objects Desktop Intelligence</span></p>
<p><img class="alignnone size-full wp-image-816" title="mysql_blob_busobj_02" src="http://www.bisql.net/wp-content/uploads/2011/03/mysql_blob_03.png" alt="" width="377" height="77" /></p>
<p>&nbsp;</p>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2011%252F03%252Fmysql-odbc-blob%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Using%20MySQL%20BLOB%20Data%20via%20ODBC%20in%20SSIS%2C%20SQL%20Server%20%26%20Business%20Objects%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2011/03/mysql-odbc-blob/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading Data into MySQL with SSIS via ODBC (sql_mode = ANSI)</title>
		<link>http://www.bisql.net/2011/03/pgsql_ssis_mysql/</link>
		<comments>http://www.bisql.net/2011/03/pgsql_ssis_mysql/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 18:40:27 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ADO]]></category>
		<category><![CDATA[BIDS]]></category>
		<category><![CDATA[ETL]]></category>
		<category><![CDATA[Integration Services]]></category>
		<category><![CDATA[ODBC]]></category>
		<category><![CDATA[Postgres]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=798</guid>
		<description><![CDATA[I was performing a test earlier, a proof-of-concept to show that we could use Integration Services to move data from one platform (PostgreSQL) to another (MySQL) without SQL Server itself being involved at all.  Unfortunately I hit a slight snag on the first simple attempt, I could read the data without a hitch but despite [...]]]></description>
			<content:encoded><![CDATA[
<p><img class="alignright size-full wp-image-799" title="PostgreSQL to MySQL via SSIS 1" src="http://www.bisql.net/wp-content/uploads/2011/03/pg_ssis_mysql_01.png" alt="" width="210" height="245" />I was performing a test earlier, a proof-of-concept to show that we could use Integration Services to move data from one platform (PostgreSQL) to another (MySQL) without SQL Server itself being involved at all. </p>
<p>Unfortunately I hit a slight snag on the first simple attempt, I could read the data without a hitch but despite multiple attempts at tweaking SSIS settings and reconfiguring connections I could not manage to get data into the MySQL target table.  Amongst other messages in the Output window in BIDS I could see the following error&#8230;</p>
<p>[MySQL][ODBC 5.1 Driver][mysqld-5.0.45-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;&#8221;tblDestination&#8221; (&#8220;col1&#8243;, &#8220;col2&#8243;, &#8220;col3&#8243;, &#8220;col4&#8243;, &#8220;col5&#8243;, &#8220;c&#8217; at line 1</p>
<p>After some Googling I determined that the issue was down to an incompatibility between the SQL being generated by SSIS and the default MySQL engine, specifically that MySQL was not setup to accept ANSI compliant SQL.  Most of the solutions out there seemed to require that the entire server was configured in the ANSI compliant mode which was a problem for me as it&#8217;s a shared server and I can&#8217;t go reconfiguring it at will.  Thankfully MySQL provides the ability to set the mode on a per connection level with the following command&#8230;</p>
<pre style="padding-left: 30px;">SET SESSION sql_mode= 'ansi';</pre>
<p>The trick is &#8211; how to get SSIS to run this before inserting the data without messing with the package itself?  The easiest way is to have the ODBC driver send the command at the point SSIS opens the connection, this can be configured in the settings of the ODBC source&#8230;</p>
<p><img class="alignnone size-full wp-image-807" title="PostgreSQL to MySQL via SSIS 2" src="http://www.bisql.net/wp-content/uploads/2011/03/pg_ssis_mysql_02.png" alt="" width="395" height="316" /></p>
<p>This is a relatively common feature of ODBC drivers and allows you to setup initial configuration options for this exact reason, now I know that I will not impact any other users of the server and my SSIS package works just fine.</p>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2011%252F03%252Fpgsql_ssis_mysql%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Loading%20Data%20into%20MySQL%20with%20SSIS%20via%20ODBC%20%28sql_mode%20%3D%20ANSI%29%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2011/03/pgsql_ssis_mysql/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using SQL Server 2008 R2 Linked Servers with PostgreSQL 64-bit</title>
		<link>http://www.bisql.net/2011/02/sql_pg_linked/</link>
		<comments>http://www.bisql.net/2011/02/sql_pg_linked/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 14:48:03 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[2008 R2]]></category>
		<category><![CDATA[Linked Servers]]></category>
		<category><![CDATA[MSDASQL]]></category>
		<category><![CDATA[OLE DB]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=791</guid>
		<description><![CDATA[Having setup a Linked Server in Management Studio talking to a PostgreSQL 8 database I encountered the following error when attempting to run any valid query: Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "MSDASQL" for linked server "PG_SERVER" reported an error. The provider reported an unexpected catastrophic failure. Msg 7350, [...]]]></description>
			<content:encoded><![CDATA[
<p>Having setup a Linked Server in Management Studio talking to a PostgreSQL 8 database I encountered the following error when attempting to run any valid query:</p>
<pre><span style="color: #ff0000;">Msg 7399, Level 16, State 1, Line 1</span>
<span style="color: #ff0000;">The OLE DB provider "MSDASQL" for linked server "PG_SERVER" reported an error. The provider reported an unexpected catastrophic failure.</span>
<span style="color: #ff0000;">Msg 7350, Level 16, State 2, Line 1</span>
<span style="color: #ff0000;">Cannot get the column information from OLE DB provider "MSDASQL" for linked server "PG_SERVER".</span></pre>
<p><span style="color: #333333;">After some digging I came across a handy article on </span><a title="Microsoft Connect" href="http://connect.microsoft.com/SQLServer/feedback/details/620247/using-sql-2008-link-server-to-connect-to-postgres-by-odbc-64-bit-driver-psqlodbc-09-00-0200-x64" target="_blank"><span style="color: #0000ff;">Microsoft Connect </span></a><span style="color: #333333;">describing the same issue, with thanks to Nenea Nelu here&#8217;s the solution&#8230;</span></p>
<ul>
<li>Expand Server Objects &gt; Linked Servers &gt; Providers. <br />
<img class="alignnone size-full wp-image-792" title="Linked Server PG 01" src="http://www.bisql.net/wp-content/uploads/2011/02/sql_pg_01.png" alt="" width="305" height="237" /></li>
<li>Right-click on MSDASQL and select Properties&#8230;</li>
<li>In the Properties dialogue <em><strong>un</strong>-check </em>&#8220;Allow inprocess&#8221; as follows&#8230;<br />
<img class="alignnone size-full wp-image-793" title="Linked Server PG 02" src="http://www.bisql.net/wp-content/uploads/2011/02/sql_pg_02.png" alt="" width="287" height="213" /></li>
<li>Click OK and re-run your query. </li>
</ul>
<p>Hopefully that should solve your problem, please note that this will affect all Linked Servers using that provider however as the Connect article points out &#8211; this is best practice for linked servers anyway.</p>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2011%252F02%252Fsql_pg_linked%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Using%20SQL%20Server%202008%20R2%20Linked%20Servers%20with%20PostgreSQL%2064-bit%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2011/02/sql_pg_linked/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server Backup Compression vs. Quest Litespeed Engine</title>
		<link>http://www.bisql.net/2010/12/sql-vs-litespeed/</link>
		<comments>http://www.bisql.net/2010/12/sql-vs-litespeed/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 13:50:10 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[Tools & Utilities]]></category>
		<category><![CDATA[2008 R2]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[litespeed]]></category>
		<category><![CDATA[quest]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=704</guid>
		<description><![CDATA[As more and more functionality is built into products like SQL Server it&#8217;s always worthwhile reviewing third-party tools and utilities when you&#8217;re considering an upgrade to see (a) if they&#8217;re still required and (b) if the tools themselves need to be upgraded.  With the introduction of Backup Compression in SQL Server 2008 R2 Standard Edition [...]]]></description>
			<content:encoded><![CDATA[
<p>As more and more functionality is built into products like SQL Server it&#8217;s always worthwhile reviewing third-party tools and utilities when you&#8217;re considering an upgrade to see (a) if they&#8217;re still required and (b) if the tools themselves need to be upgraded.  With the introduction of Backup Compression in SQL Server 2008 R2 Standard Edition you could begin to think that the future is grim for Quest&#8217;s backup compression software <a title="Quest LiteSpeed" href="http://www.quest.com/litespeed-for-sql-server/" target="_blank">LiteSpeed</a> so I thought I&#8217;d do some testing to see exactly how it stacks up against the native compression.</p>
<p><strong><span style="text-decoration: underline;">LiteSpeed Engine</span></strong></p>
<p>I&#8217;ve been using LiteSpeed on and off for a few years now and it has always been a great tool but I&#8217;ve always found it a bit of a drag to have to use the GUI to administer and setup jobs however in January 2010 Quest launched the LiteSpeed Engine for SQL Server which allows you to administer jobs using the native SQL Server tools.  The LiteSpeed Engine acts as a driver and the configuration tool allows you to define a variety of configuration profiles based on file extension and from that point onwards you can use the Management Studio to setup backup jobs, maintenance plans, etc. and all you have to do is specify the file extension of the profile you wish to use.</p>
<p><img class="alignnone size-full wp-image-710" title="ls2" src="http://www.bisql.net/wp-content/uploads/2010/12/ls2.png" alt="" width="325" height="274" /></p>
<p>The configuration tool allows you specify the compression level from 1 to 8, encryption level including various bit-length versions of RC2, RC4, 3DES and AES though as you&#8217;ll see later the overhead of adding the highest level (256-bit AES) isn&#8217;t that great so I&#8217;d always shoot for the maximum.</p>
<p><strong><span style="text-decoration: underline;">Benchmark Structure</span></strong></p>
<p>The test is relatively unscientific since I used only one database but it was carried out systematically, the data comes from a transactional billing system which I chose as it has a mix of strucured tables and raw transactions and comes in at about 6.5GB so it wouldn&#8217;t take too long to test.  I used the following configurations&#8230;</p>
<p><img class="alignnone size-full wp-image-712" title="ls1" src="http://www.bisql.net/wp-content/uploads/2010/12/ls1.png" alt="" width="656" height="424" /></p>
<p><strong><span style="text-decoration: underline;">Benchmark Results</span></strong></p>
<p>On my test database the baseline SQL Server native compression reduced the 6.2GB database to 765MB (12.2% of the original size) and took less than half the time (43%), to achieve the same level of compression using LiteSpeed I had to use Level 2 which gave me 12.2% of the original size and 40% of the original duration.</p>
<p>At first this doesn&#8217;t look great for the third-party tool but the benefit of using a mature backup compression engine is the flexibility and LiteSpeed&#8217;s configurations allow you to tweak the performance to solve whatever problem you have in your environment whether that be the absolute size of the backup, the backup window time or a mixture of the two.</p>
<p>If it&#8217;s size you&#8217;re after then Level 8 really did seem to work wonders on my test DB bringing the size down to 5.6% of the original at only 352MB though it did take 2.6 times the original duration, if it&#8217;s the backup window you&#8217;re looking to reduce then the basic Level 1 did manage to improve on the native compression by taking 0nly 37% of the original duration whilst still compressing to 13% of the original size.  If like most people you&#8217;re looking to have your cake and eat it (i.e. reducing size <em>and</em> backup window) I&#8217;d suggest that Level 3 is the best compromise giving 10.9% of the original size at 77% of the original duration so you get some benefit in both areas, though Level 4 takes compression a bit further and still gave a slight time reduction.</p>
<p>Clearly, the real answer is testing and since I&#8217;m at the beginning of data warehousing project I&#8217;m not in the position to make any firm decisions but I think that even if you don&#8217;t run out and purchase it now LiteSpeed is a very valuable tool to have in your mental arsenal so that if you come up against backup size/window issues or you&#8217;re faced with older versions of SQL Server you&#8217;ve got a solution in mind already.  Quest have an odd policy of keeping pricing quite opaque but I believe that the full Enterprise version (including the LiteSpeed Engine) retails for around £1,800 ($2,800) which isn&#8217;t too bad if you need that level of flexibility.</p>
<p><span style="text-decoration: underline;">SQL Server Native Compression</span></p>

<table id="wp-table-reloaded-id-7-no-1" class="wp-table-reloaded wp-table-reloaded-id-7">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Compression</th><th class="column-2">Size (MB)</th><th class="column-3">Time (s)</th><th class="column-4">Size (%)</th><th class="column-5">Time (%)</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">Disabled</td><td class="column-2">6,261</td><td class="column-3">70</td><td class="column-4">100%</td><td class="column-5">100%</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">Enabled</td><td class="column-2">765</td><td class="column-3">30</td><td class="column-4">12.2%</td><td class="column-5">43%</td>
	</tr>
</tbody>
</table>

<p><span style="text-decoration: underline;">LiteSpeed Compression (No Encryption)</span></p>

<table id="wp-table-reloaded-id-8-no-1" class="wp-table-reloaded wp-table-reloaded-id-8">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Compression</th><th class="column-2">Size (MB)</th><th class="column-3">Time (s)</th><th class="column-4">Size (%)</th><th class="column-5">Time (%)</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">None</td><td class="column-2">6,262</td><td class="column-3">70</td><td class="column-4">100%</td><td class="column-5">100%</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">Level 1</td><td class="column-2">813</td><td class="column-3">26</td><td class="column-4">13.0%</td><td class="column-5">37%</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">Level 2</td><td class="column-2">761</td><td class="column-3">28</td><td class="column-4">12.2%</td><td class="column-5">40%</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">Level 3</td><td class="column-2">680</td><td class="column-3">54</td><td class="column-4">10.9%</td><td class="column-5">77%</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">Level 4</td><td class="column-2">649</td><td class="column-3">61</td><td class="column-4">10.4%</td><td class="column-5">87%</td>
	</tr>
	<tr class="row-7 odd">
		<td class="column-1">Level 5</td><td class="column-2">596</td><td class="column-3">122</td><td class="column-4">9.5%</td><td class="column-5">174%</td>
	</tr>
	<tr class="row-8 even">
		<td class="column-1">Level 6</td><td class="column-2">586</td><td class="column-3">151</td><td class="column-4">9.4%</td><td class="column-5">216%</td>
	</tr>
	<tr class="row-9 odd">
		<td class="column-1">Level 7</td><td class="column-2">387</td><td class="column-3">178</td><td class="column-4">6.2%</td><td class="column-5">254%</td>
	</tr>
	<tr class="row-10 even">
		<td class="column-1">Level 8</td><td class="column-2">352</td><td class="column-3">185</td><td class="column-4">5.6%</td><td class="column-5">264%</td>
	</tr>
</tbody>
</table>

<p><span style="text-decoration: underline;">LiteSpeed Compression (With Encryption)</span></p>

<table id="wp-table-reloaded-id-9-no-1" class="wp-table-reloaded wp-table-reloaded-id-9">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Compression</th><th class="column-2">Size (MB)</th><th class="column-3">Time (s)</th><th class="column-4">Size (%)</th><th class="column-5">Time (%)</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">Level 1</td><td class="column-2">813</td><td class="column-3">46</td><td class="column-4">13.0%</td><td class="column-5">66%</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">Level 2</td><td class="column-2">761</td><td class="column-3">31</td><td class="column-4">12.2%</td><td class="column-5">44%</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">Level 3</td><td class="column-2">680</td><td class="column-3">60</td><td class="column-4">10.9%</td><td class="column-5">86%</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">Level 4</td><td class="column-2">649</td><td class="column-3">67</td><td class="column-4">10.4%</td><td class="column-5">96%</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">Level 5</td><td class="column-2">596</td><td class="column-3">126</td><td class="column-4">9.5%</td><td class="column-5">180%</td>
	</tr>
	<tr class="row-7 odd">
		<td class="column-1">Level 6</td><td class="column-2">586</td><td class="column-3">156</td><td class="column-4">9.4%</td><td class="column-5">223%</td>
	</tr>
	<tr class="row-8 even">
		<td class="column-1">Level 7</td><td class="column-2">387</td><td class="column-3">182</td><td class="column-4">6.2%</td><td class="column-5">260%</td>
	</tr>
	<tr class="row-9 odd">
		<td class="column-1">Level 8</td><td class="column-2">352</td><td class="column-3">190</td><td class="column-4">5.6%</td><td class="column-5">271%</td>
	</tr>
</tbody>
</table>

<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2010%252F12%252Fsql-vs-litespeed%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22SQL%20Server%20Backup%20Compression%20vs.%20Quest%20Litespeed%20Engine%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2010/12/sql-vs-litespeed/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Trends in Business Intelligence &amp; 2010 Review</title>
		<link>http://www.bisql.net/2010/12/2010_bi_roundup/</link>
		<comments>http://www.bisql.net/2010/12/2010_bi_roundup/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 08:00:18 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Business Objects]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008 R2]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[BI Trends]]></category>
		<category><![CDATA[business objects]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[Cognos]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[informatica]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Jaspersoft]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Mobile BI]]></category>
		<category><![CDATA[Nike+]]></category>
		<category><![CDATA[OBIEE]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Pentaho]]></category>
		<category><![CDATA[Personal Intelligence]]></category>
		<category><![CDATA[RoamBI]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Talend]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=633</guid>
		<description><![CDATA[It&#8217;s the time of year when magazine editors can&#8217;t resist the urge to fill their glossy wares full of &#8216;thing of the year&#8217; articles, the print equivalent of the mid-season &#8220;clip show&#8221; that has plagued many a TV series.  Well, if it&#8217;s good enough for them it&#8217;s good enough for me so here&#8217;s my rather [...]]]></description>
			<content:encoded><![CDATA[
<p>It&#8217;s the time of year when magazine editors can&#8217;t resist the urge to fill their glossy wares full of &#8216;thing of the year&#8217; articles, the print equivalent of the mid-season &#8220;clip show&#8221; that has plagued many a TV series.  Well, if it&#8217;s good enough for them it&#8217;s good enough for me so here&#8217;s my rather unstructured and unscientific take on Business Intelligence and Data Warehousing in the year that was &#8211; 2010&#8230;</p>
<p><strong><span style="text-decoration: underline;">Market Trends</span></strong></p>
<p>To start, I&#8217;ve taken a series of snapshots from the excellent <a title="Google Trends" href="http://trends.google.com/" target="_blank">Google Trends</a> showing global search volumes for each of the Big Four offerings to measure the level of interest.  It&#8217;s reasonably clear to see from the graph below that interest in OBIEE shows a small but steady growth whilst Reporting Services shows a marked decline and the other two offerings remains roughly static (maybe a small decline?), this surprised me given that with the release of 2008 R2 I think that Reporting Services is really getting to the point where it offers a legitimate choice in the BI marketplace.  Perhaps the issue that Microsoft have fragmented their BI offering to include a mixture of terms with Excel, PowerPivot, SharePoint, Analysis Services and Reporting Services all making up the BI stack and nobody really knows what to call it?</p>
<h6><a href="http://trends.google.com/trends?q=cognos%2C+obiee%2C+business+objects%2C+reporting+services+&amp;ctab=0&amp;geo=all&amp;date=ytd&amp;sort=0" target="_blank"> <img class="alignnone size-full wp-image-664" title="bi_big_four" src="http://www.bisql.net/wp-content/uploads/2010/11/bi_big_four.png" alt="" width="580" height="260" /><br />
</a></h6>
<table width="0%">
<tbody>
<tr>
<td><span style="color: #4684ee;"><strong>Cognos</strong> </span></td>
<td><span style="color: #dc3912;"><strong>OBIEE</strong> </span></td>
<td><span style="color: #ff9900;"><strong>Business Objects</strong> </span></td>
<td><span style="color: #008000;"><strong>Reporting Services</strong></span></td>
</tr>
</tbody>
</table>
<p>This year has also brought an increased emphasis on Mobile BI with the iPad and iPhone fast becoming common executive playthings, Business Objects making it&#8217;s Explorer and Xcelsius products available on Android in addition to the iPhone (Explorer only).  MicroStrategy took the mobile emphasis a step further (perhaps to help stick their head above the crowd) by announcing a strong focus on the mobile BI market and offering a <a href="http://www.microstrategy.com/freemobilebi/" target="_blank">free 25-seat licence</a> for their Mobile Suite.  Despite a strong focus on marketing Mobile BI I&#8217;m still not convinced that any of the vendors have really hit the nail on the head with their solutions in that whilst many offer pretty visualisations and slick interfaces most seem to lack the kind of simplicity that helps to present information quickly and succinctly, even the frankly beautiful independent product <a href="http://www.roambi.com/" target="_blank">RoamBI</a> just feels a little overdone when it comes to actually using it.</p>
<p><strong><span style="text-decoration: underline;">Major Product Releases</span></strong></p>
<p>It&#8217;s been quite a year in the BI &amp; Database world with the launch of Microsoft SQL Server 2008 R2, Oracle Business Intelligence Enterprise Edition (OBIEE) 11g and IBM&#8217;s Cognos 10&#8230;</p>
<p><img class="alignright size-full wp-image-650" title="image.axd" src="http://www.bisql.net/wp-content/uploads/2010/11/image.axd_.png" alt="" width="218" height="136" />Microsoft&#8217;s launch is effectively a moderate evolution of SQL Server 2008 in most areas with little change to the database engine, it&#8217;s ETL tool Integration Services and it&#8217;s OLAP engine Analysis Services.  That said, R2 did bring some handy incremental features which will be especially welcomed by the budget-conscious with an increase in the DB size of the free Express Edition from 4GB to 10GB and the addition of Backup Compression to Standard Edition.  There were some interesting additions with PowerPivot, Master Data Services and StreamInsight thought I&#8217;m not sure that either will find a natural home for a good year or so as busy DBAs and developers struggle to find the time to try these new features out.</p>
<p><img class="alignleft size-full wp-image-657" title="Oracle" src="http://www.bisql.net/wp-content/uploads/2010/11/Screen-shot-2010-11-30-at-03.39.01.png" alt="" width="189" height="39" />Despite the major jump in the version number Oracle&#8217;s release too seems to be mainly an evolution and as a great fan of the product I&#8217;m quite considerably relieved since Oracle could quite easily have been over-zealous in integrating their &#8216;own&#8217; tools like Discoverer and Warehouse Builder with bought-in technologies like Siebel Analytics (which became the bedrock of OBIEE), Hyperion&#8217;s Essbase and Sunopsis (now Oracle Data Integrator).  One of the less exciting but fundamentally important additions is that the semantic layer employed in OBIEE will be directly and immediately compatible with future releases of other Oracle products in the CRM, ERP and Finance application spaces.</p>
<p><img class="alignright size-full wp-image-660" title="ibm-logo" src="http://www.bisql.net/wp-content/uploads/2010/11/ibm-logo.png" alt="" width="134" height="134" />I&#8217;m not as familiar with Cognos as the other two tools having only experimented with Cognos 8 for a couple of weeks but from everything I&#8217;ve read it seems that Cognos 10 was certainly a major milestone in the product&#8217;s lifecycle.  Aside from the shiny sounding features such as Social Networking and iPad support (actually a very serviceable looking mobile BI app) there are some very cutting-edge additions to the product including a statistical engine drawn from SPSS and Active Reports which allows users to explore and analyse offline data including interactive email reports.</p>
<p><strong><span style="text-decoration: underline;">The Future?</span></strong></p>
<p>No good review and roundup article ends without a nod to the future and whilst I&#8217;m not keen on making absolute predictions there are a few developments I&#8217;ll be keeping my eye on for 2011 and beyond.</p>
<p>The main event I&#8217;m anticipating is the release of Business Objects XI Release 4, I&#8217;ve not seen too many concrete details about functionality but over the last few years Business Objects have seen themselves distracted by the Crystal acquisition (including the shoe-horning of their core product into Crystal Enterprise) and in turn their acquisition by SAP.  As a regular and long-term user of Business Objects I&#8217;m really hoping that they&#8217;ll blow away some of the cobwebs and deliver some new functionality as well as rounding off some of the edges that in previous versions feel a little unfinished, it would be great too if they finally included the key functionality from the legacy desktop client (which many long-term customer still rely on) in their core Web Intelligence product (Freehand-SQL &amp; Grouping &#8211; I&#8217;m looking at you).</p>
<p><img class="alignright size-full wp-image-690" title="Informatica Cloud" src="http://www.bisql.net/wp-content/uploads/2010/12/Cloud-w-Services.png" alt="" width="289" height="185" />Another area to watch in Business Intelligence and Data Warehousing as well as the wider enterprise market is cloud computing, Informatica&#8217;s <a href="http://www.informaticacloud.com/" target="_blank">ETL in the Cloud</a> offering has seen improvements and adoption throughout 2010 and it&#8217;s almost a given that Microsoft will be adding some degree of ETL capability to their <a href="http://www.microsoft.com/en-us/sqlazure/default.aspx" target="_blank">SQL Azure</a> platform. I&#8217;d expect an announcement if not a release along these lines in the coming year, though it&#8217;s possible that ETL comes behind providing cloud based analytics (something <a href="http://sqlblog.com/blogs/jamie_thomson/archive/2010/10/21/reading-the-sql-azure-tea-leaves.aspx" target="_blank">SSIS guru Jamie Thomson</a> suggests).</p>
<p>In a broader sense I&#8217;m expecting to see a little more interest and pickup in the open source BI market, I&#8217;ve been saying this for a while (&#8220;<em><a title="This time next year, Rodders..." href="http://www.bisql.net/?attachment_id=682" target="_blank">this time next year, Rodders&#8230;</a></em>&#8220;) and I might be wrong for some time to come but I always keep an eye on companies using an Open Source model such as the ETL vendor <a title="Talend" href="http://www.talend.com/index.php" target="_blank">Talend</a> who recently acquired Sopera (a middleware and SOA vendor), BI vendor <a href="http://www.jaspersoft.com/" target="_blank">Jaspersoft</a> and all-rounder <a href="http://www.pentaho.com/" target="_blank">Pentaho</a>.  With the global economy still suffering a hangover from the sub-prime mortgage crisis and banking collapse people have been looking for cheaper alternatives and open source companies provide a great way to achieve that, though some of Talend&#8217;s high-end offerings are almost comparable in price with other commercial products.</p>
<p>Another possible area to watch out for is the area of Personal Intelligence, essentially Business Intelligence for the individual.  A colleague and I spoke about this back in 2008 and we could both see that as people increasingly become data-aware they&#8217;ll start to look inwards and aim to measure things about themselves, one obvious starting point is fitness and we already have sites to <a href="http://www.weightlossresources.co.uk/" target="_blank">log and chart your weight</a> and calorie intake as well as the brilliant Nike+ product that measures your pace, time and distance during a run using either a sensor in your shoe or GPS (iPhone app), see the sidebar of this blog or below (<a href="http://nikerunning.nike.com/nikeos/p/nikeplus/en_GB/plus/?sitesrc=fbk_ab_plus#//runs/detail/275253305/1908225372/all/allRuns/" target="_blank">one of my runs on the Nike+ site</a>) for examples of the output.</p>
<p><a href="http://nikerunning.nike.com/nikeos/p/nikeplus/en_GB/plus/?sitesrc=fbk_ab_plus#//runs/detail/275253305/1908225372/all/allRuns/" target="_blank"><img class="alignnone size-full wp-image-691" title="Screen shot 2010-11-30 at 06.00.02" src="http://www.bisql.net/wp-content/uploads/2010/12/Screen-shot-2010-11-30-at-06.00.02.png" alt="" width="505" height="284" /></a></p>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2010%252F12%252F2010_bi_roundup%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FgESCHO%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Trends%20in%20Business%20Intelligence%20%26%202010%20Review%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2010/12/2010_bi_roundup/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Reset Default Database from Command Line in SQL Server</title>
		<link>http://www.bisql.net/2010/12/reset-default-database-from-command-line-in-sql-server/</link>
		<comments>http://www.bisql.net/2010/12/reset-default-database-from-command-line-in-sql-server/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 10:40:39 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[osql]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=635</guid>
		<description><![CDATA[During a recent consolidation exercise I was migrating one database at a time and then taking the old copy offline, unfortunately one of the DBs had (un-knowingly) been my default database and next time I tried to log in I received the dreaded &#8220;Cannot open user default database. Login Failed.&#8221; message.  I tried one of the [...]]]></description>
			<content:encoded><![CDATA[
<p>During a recent consolidation exercise I was migrating one database at a time and then taking the old copy offline, unfortunately one of the DBs had (un-knowingly) been my default database and next time I tried to log in I received the dreaded &#8220;Cannot open user default database. Login Failed.&#8221; message. </p>
<p>I tried one of the workarounds proffered by Microsoft for this exact problem only to receive exactly the same error message, thankfully I then came across this <a title="SQL Server Nation" href="http://www.sqlservernation.com/home/fix-for-cannot-open-user-default-database-login-failed.html" target="_blank">excellent post on SQL Server Nation </a>which explains the entire issue from start to end and offers a couple of fixes based on your particular scenario. </p>
<p>In my case it was to execute the sp_defaultdb stored procedure using the OSQL utility, for example&#8230;</p>
<p style="padding-left: 30px;">osql -Sservername -E -dmaster -Q&#8221;sp_defaultdb &#8216;username&#8217;,'master&#8217;&#8221;</p>
<p>Sincere thanks to Brandon Galderisi from <a title="SQL Server Nation" href="http://www.sqlservernation.com/" target="_blank">SQL Server Nation</a> for the fix.</p>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2010%252F12%252Freset-default-database-from-command-line-in-sql-server%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Reset%20Default%20Database%20from%20Command%20Line%20in%20SQL%20Server%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2010/12/reset-default-database-from-command-line-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Enable xp_cmdshell in SQL Server</title>
		<link>http://www.bisql.net/2010/11/enable_xp_cmdshell/</link>
		<comments>http://www.bisql.net/2010/11/enable_xp_cmdshell/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 14:19:37 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[xp_cmdshell]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=527</guid>
		<description><![CDATA[There&#8217;s a great little feature of SQL Server that allows you to execute command-line statements, allowing you to run batch files, get directory listings or call executables.  The feature is accessed via the xp_cmdshell Extended Stored Procedure, the syntax is pretty simple and looks like this&#8230; EXEC xp_cmdshell &#8216;dir *.exe&#8217;; In the wrong hands xp_cmdshell could cause [...]]]></description>
			<content:encoded><![CDATA[
<p>There&#8217;s a great little feature of SQL Server that allows you to execute command-line statements, allowing you to run batch files, get directory listings or call executables.  The feature is accessed via the <a title="xp_cmdshell" href="http://msdn.microsoft.com/en-us/library/ms175046.aspx" target="_blank">xp_cmdshell</a> Extended Stored Procedure, the syntax is pretty simple and looks like this&#8230;</p>
<div>
<div><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">EXEC</span> <span style="color: #ff0080;"><strong>xp_cmdshell</strong></span> <span style="color: red;">&#8216;dir *.exe&#8217;</span><span style="color: silver;">;</span></span><span style="font-family: Courier New; font-size: 10pt;"> </span></div>
<div><span style="font-family: Courier New; font-size: 10pt;"> </span></div>
<div>In the wrong hands xp_cmdshell could cause havok, for that reason it is disabled by default and in order to enable it you will need to run the following&#8230;</div>
<div><span style="font-family: Courier New; font-size: 10pt;"><span style="color: green;"><em> </em></span></span></div>
<div><span style="font-family: Courier New; font-size: 10pt;"><span style="color: green;"><em>&#8211; To allow advanced options to be changed.</em></span><br />
<span style="color: blue;">EXEC</span> <span style="color: #ff0080;"><strong>sp_configure</strong></span> <span style="color: red;">&#8216;show advanced options&#8217;</span><span style="color: silver;">,</span> <span style="color: black;">1</span><br />
<span style="color: blue;">GO</span><br />
<span style="color: green;"><em>&#8211; To update the currently configured value for advanced options.</em></span><br />
<span style="color: blue;">RECONFIGURE</span><br />
<span style="color: blue;">GO</span><br />
<span style="color: green;"><em>&#8211; To enable the feature.</em></span><br />
<span style="color: blue;">EXEC</span> <span style="color: #ff0080;"><strong>sp_configure</strong></span> <span style="color: red;">&#8216;xp_cmdshell&#8217;</span><span style="color: silver;">,</span> <span style="color: black;">1</span><br />
<span style="color: blue;">GO</span><br />
<span style="color: green;"><em>&#8211; To update the currently configured value for this feature.</em></span><br />
<span style="color: blue;">RECONFIGURE</span><br />
<span style="color: blue;">GO</span></span></div>
</div>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2010%252F11%252Fenable_xp_cmdshell%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2Fdw28FX%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22How%20to%20Enable%20xp_cmdshell%20in%20SQL%20Server%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2010/11/enable_xp_cmdshell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Register an Extended Stored Procedure in SQL Server 2008 R2</title>
		<link>http://www.bisql.net/2010/11/add-extended-sps/</link>
		<comments>http://www.bisql.net/2010/11/add-extended-sps/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 20:09:32 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[Extended Stored Procedure]]></category>
		<category><![CDATA[Management Studio]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[Stored Procedure]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=537</guid>
		<description><![CDATA[Aside from those integrated into SQL Server (e.g. xp_cmdshell) it&#8217;s not often I come across the need to use Extended Stored Procedures but an application I installed recently required that I add their custom procedure to the SQL Server housing the application data.  Having been years since I had last added one it took a little [...]]]></description>
			<content:encoded><![CDATA[
<p>Aside from those integrated into SQL Server (e.g. xp_cmdshell) it&#8217;s not often I come across the need to use Extended Stored Procedures but an application I installed recently required that I add their custom procedure to the SQL Server housing the application data.  Having been years since I had last added one it took a little figuring out since I would&#8217;ve expected to find it in Management Studio under &#8220;Server Objects&#8221; or &#8220;Management&#8221; but it&#8217;s somewhere entirely different. </p>
<p>To add/register an Extended Stored Procedure you&#8217;ll need to right-click on&#8230;</p>
<p><strong><em>Databases</em> &gt;&gt; <em>System Databases &gt;&gt; master &gt;&gt; Programability &gt;&gt; Extended Stored Procedures</em></strong></p>
<p>&#8230;and select &#8220;New Extended Stored Procedure&#8221;.</p>
<p><img class="alignnone size-full wp-image-541" title="xp1" src="http://www.bisql.net/wp-content/uploads/2010/11/xp1.png" alt="" width="533" height="321" /></p>
<p>Next you&#8217;ll have to provide a (this will be the name the procedure is called by) and the path to the DLL, you can browse to the the .dll file by clicking on the elipsis. </p>
<p><img class="alignnone size-full wp-image-545" title="xp2" src="http://www.bisql.net/wp-content/uploads/2010/11/xp21.png" alt="" width="580" height="410" /></p>
<p>The next step is vital since at the moment the only people able to actually use the Extended Stored Procedure would by sysadmins.  All you have to do to remedy that is click on &#8220;Permissions&#8221;, click &#8220;Search&#8221;, type &#8220;public&#8221; in the text box and click OK as follows&#8230;</p>
<p><img class="alignnone size-full wp-image-544" title="xp25" src="http://www.bisql.net/wp-content/uploads/2010/11/xp25.png" alt="" width="500" height="301" /></p>
<p>All you have to do now is tick the &#8220;Execute&#8221; permission to allow the &#8216;public&#8217; users of the database (effectively everybody) to be able to use the procedure. </p>
<p>The completed dialog box should look something like this&#8230;</p>
<p><img class="alignnone size-full wp-image-546" title="xp3" src="http://www.bisql.net/wp-content/uploads/2010/11/xp31.png" alt="" width="628" height="464" /></p>
<p>Then click &#8220;OK&#8221; and all should be well.</p>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2010%252F11%252Fadd-extended-sps%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2Fc5hwyw%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Register%20an%20Extended%20Stored%20Procedure%20in%20SQL%20Server%202008%20R2%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2010/11/add-extended-sps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Edit DTS Packages in SQL Server 2008 R2</title>
		<link>http://www.bisql.net/2010/11/how-to-edit-dts-packages-in-sql-server-2008-r2/</link>
		<comments>http://www.bisql.net/2010/11/how-to-edit-dts-packages-in-sql-server-2008-r2/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 11:28:10 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[DTS]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.bisql.net/?p=492</guid>
		<description><![CDATA[I&#8217;m on the verge of migrating a few DTS packages from a legacy application, there&#8217;s no point in re-writing them since the application will be phased out within the next 6-12 months so I figure that if I can migrate them &#8216;as is&#8217; I&#8217;ll save myself some time and a few headaches.  SQL Server Management [...]]]></description>
			<content:encoded><![CDATA[
<p>I&#8217;m on the verge of migrating a few DTS packages from a legacy application, there&#8217;s no point in re-writing them since the application will be phased out within the next 6-12 months so I figure that if I can migrate them &#8216;as is&#8217; I&#8217;ll save myself some time and a few headaches.  SQL Server Management Studio (SSMS) provides a menu option under Management to Open, Import or Migrate DTS packages&#8230;</p>
<p><a href="http://www.bisql.net/wp-content/uploads/2010/11/dts001.jpg"><img class="alignnone size-full wp-image-511" title="dts002" src="http://www.bisql.net/wp-content/uploads/2010/11/dts002.jpg" alt="" width="429" height="323" /></a></p>
<p>Initially if you try to use these features this you may receive the error:</p>
<p>&#8220;SQL Server 2000 DTS Designer Components are required to edit DTS Packages.  Install the special Web download, &#8220;SQL Server 2000 DTS Designer Components&#8221; to use this feature.  (Microsoft.SqlServer.DtsObjectExplorerUI)&#8221;</p>
<p><a href="http://www.bisql.net/wp-content/uploads/2010/11/dts001.jpg"><img class="alignnone size-full wp-image-510" title="dts001" src="http://www.bisql.net/wp-content/uploads/2010/11/dts001.jpg" alt="" width="611" height="137" /></a></p>
<p>To get around this you&#8217;ll need to follow a couple of steps:</p>
<ol>
<li><strong>Install the Microsoft SQL Server 2005 Backward Compatibility Components &#8211; </strong>you can get these as part of the <a title="Microsoft SQL Server 2008 Feature Pack" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4ce2-b80d-2343c099bcb4&amp;displaylang=en" target="_blank">Microsoft SQL Server 2008 Feature Pack </a>(for some reason it&#8217;s not included in the 2008 R2 Feature Pack).  [<a title="x86" href="http://download.microsoft.com/download/3/1/6/316FADB2-E703-4351-8E9C-E0B36D9D697E/SQLServer2005_BC.msi" target="_blank">x86</a>] [<a title="x64" href="http://download.microsoft.com/download/3/1/6/316FADB2-E703-4351-8E9C-E0B36D9D697E/SQLServer2005_BC_x64.msi" target="_blank">x64</a>] [<a title="ia64" href="http://download.microsoft.com/download/3/1/6/316FADB2-E703-4351-8E9C-E0B36D9D697E/SQLServer2005_BC_ia64.msi" target="_blank">ia64</a>].</li>
<li><strong>Install the Microsoft SQL Server 2000 DTS Designer Components</strong> &#8211; since DTS support was depracated in SQL Server 2008 you have to get these from the <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=536fd7d5-013f-49bc-9fc7-77dede4bb075&amp;displaylang=en" target="_blank">Microsoft SQL Server 2005 Feature Pack</a>.  [<a href="http://download.microsoft.com/download/3/1/6/316FADB2-E703-4351-8E9C-E0B36D9D697E/SQLServer2005_DTS.msi" target="_blank">SQLServer2005_DTS.msi</a>]</li>
<li><strong>Ensure that the PATH Environment Variable lists the SQL 2000 directory <em>before</em> the 2008 R2 one</strong> &#8211; I have to thank <a href="http://blogs.msdn.com/b/ramoji/archive/2008/10/16/how-to-open-dts-packages-in-sql-server-2008.aspx" target="_blank">Ramoji Ryali&#8217;s Fundas</a> for this solution, the correct version of sqlgui.dll will be used as long as:&#8221;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\&#8221;<br />
is before:<br />
&#8220;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\&#8221;</li>
</ol>
<p>After that, everything seemed to work fine &#8211; I did happen to log off and log back on again at some point so I&#8217;m not 100% sure if that was required or whether it was just coincidence &#8211; I definitely did not have to reboot though.</p>
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.bisql.net%252F2010%252F11%252Fhow-to-edit-dts-packages-in-sql-server-2008-r2%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22How%20to%20Edit%20DTS%20Packages%20in%20SQL%20Server%202008%20R2%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bisql.net/2010/11/how-to-edit-dts-packages-in-sql-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

