<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Journey to SQL Authority with Pinal Dave &#187; SQL Error Messages</title>
	<atom:link href="http://blog.sqlauthority.com/category/sql-error-messages/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 01:30:19 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='blog.sqlauthority.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/08e35387c05b61340e885b1763a69d9f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Journey to SQL Authority with Pinal Dave &#187; SQL Error Messages</title>
		<link>http://blog.sqlauthority.com</link>
	</image>
			<item>
		<title>SQLAuthority News &#8211; FIX : An error occurred while executing this command. If this error persists, please contact your Live Meeting administrator.</title>
		<link>http://blog.sqlauthority.com/2009/09/26/sqlauthority-news-fix-an-error-occurred-while-executing-this-command-if-this-error-persists-please-contact-your-live-meeting-administrator/</link>
		<comments>http://blog.sqlauthority.com/2009/09/26/sqlauthority-news-fix-an-error-occurred-while-executing-this-command-if-this-error-persists-please-contact-your-live-meeting-administrator/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 01:30:54 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6913</guid>
		<description><![CDATA[Recently, while I was scheduling a live meeting for one of my online training sessions, I kept receiving the following error message repeatedly. I had never encountered this type of error before, and despite searching online for a long time, I could not solve this problem.

After several failed attempts, I finally managed to fix this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6913&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Recently, while I was scheduling a live meeting for one of my online training sessions, I kept receiving the following error message repeatedly. I had never encountered this type of error before, and despite searching online for a long time, I could not solve this problem.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/errorlivemeeting.jpg" alt="" width="489" height="169" /></p>
<p style="text-align:justify;">After several failed attempts, I finally managed to fix this error with the help of Solid Quality Mentors IT Support Mentor – Victor. He suggested that instead of just typing my name in the “To” field, I should clear the cache by pressing CTRL + DELETE or perform force lookup by selecting the contact person from the global directory.</p>
<p style="text-align:justify;">First click on the “To” field in your new email window in MS Outlook and lookup the person&#8217;s email from the global directory, as showed in image below.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/fixlivemeeting.jpg" alt="" width="499" height="352" /></p>
<p style="text-align:justify;">Now, try to send the email; you will be able to send the invitation successfully!</p>
<p style="text-align:justify;">Reference: <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, SQLAuthority News, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6913/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6913/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6913/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6913/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6913/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6913/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6913/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6913/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6913/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6913/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6913&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/09/26/sqlauthority-news-fix-an-error-occurred-while-executing-this-command-if-this-error-persists-please-contact-your-live-meeting-administrator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/errorlivemeeting.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/fixlivemeeting.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; FIX &#8211; ERROR : Cannot drop the database because it is being used for replication. (Microsoft SQL Server, Error: 3724)</title>
		<link>http://blog.sqlauthority.com/2009/09/05/sql-server-fix-error-cannot-drop-the-database-because-it-is-being-used-for-replication-microsoft-sql-server-error-3724/</link>
		<comments>http://blog.sqlauthority.com/2009/09/05/sql-server-fix-error-cannot-drop-the-database-because-it-is-being-used-for-replication-microsoft-sql-server-error-3724/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 01:30:06 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Replication]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6720</guid>
		<description><![CDATA[I have set up replication at many different organization. One error I quite commonly face is after I have removed replication I can not remove database. When I try to remove the database it gives me following error.
Cannot drop the database because it is being used for replication. (Microsoft SQL Server, Error: 3724)
Fix/Workaround/Solution:
The solution is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6720&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I have set up replication at many different organization. One error I quite commonly face is after I have removed replication I can not remove database. When I try to remove the database it gives me following error.</p>
<p style="text-align:justify;"><span style="color:#ff0000;">Cannot drop the database because it is being used for replication. (Microsoft SQL Server, Error: 3724)</span></p>
<p style="text-align:justify;"><strong>Fix/Workaround/Solution:</strong></p>
<p style="text-align:justify;">The solution is very simple. Create the empty database with the same name on another server/instance first. Take full back of the same and forced restore over this database.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/forcerestore.jpg" alt="" width="499" height="533" /></p>
<p style="text-align:justify;">Do let me know if you have any better idea or suggestion.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: SQL Replication <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6720/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6720/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6720/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6720/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6720/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6720/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6720/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6720/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6720/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6720/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6720&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/09/05/sql-server-fix-error-cannot-drop-the-database-because-it-is-being-used-for-replication-microsoft-sql-server-error-3724/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/forcerestore.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; FIX : ERROR : Cannot open database requested by the login. The login failed. Login failed for user &#8216;NT AUTHORITY\NETWORK SERVICE&#8217;.</title>
		<link>http://blog.sqlauthority.com/2009/08/20/sql-server-fix-error-cannot-open-database-requested-by-the-login-the-login-failed-login-failed-for-user-nt-authoritynetwork-service/</link>
		<comments>http://blog.sqlauthority.com/2009/08/20/sql-server-fix-error-cannot-open-database-requested-by-the-login-the-login-failed-login-failed-for-user-nt-authoritynetwork-service/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 01:30:47 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Login]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6622</guid>
		<description><![CDATA[This error is quite common and I have received it few times while I was working on a recent consultation project.
Cannot open database requested by the login. The login failed.
Login failed for user &#8216;NT AUTHORITY\NETWORK SERVICE&#8217;.

This error occurs when you have configured your application with IIS, and IIS goes to SQL Server and tries to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6622&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">This error is quite common and I have received it few times while I was working on a recent consultation project.</p>
<p style="text-align:justify;"><em><span style="color:#ff0000;">Cannot open database requested by the login. The login failed.<br />
Login failed for user &#8216;NT AUTHORITY\NETWORK SERVICE&#8217;.</span></em>
</p>
<p style="text-align:justify;">This error occurs when you have configured your application with IIS, and IIS goes to SQL Server and tries to login with credentials that do not have proper permissions. This error can also occur when replication or mirroring is set up.</p>
<p style="text-align:justify;">If you search online, there are many different solutions provided to solve this error, and many of these solutions work fine. However, I will be going over a solution that works always and is very simple.</p>
<p style="text-align:justify;"><strong>Fix/Workaround/Solution:</strong></p>
<p style="text-align:justify;">Go to SQL Server &gt;&gt; Security &gt;&gt; Logins and right click on NT AUTHORITY\NETWORK SERVICE and select Properties</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/errnt.jpg" alt="" width="468" height="439" /></p>
<p style="text-align:justify;">In newly opened screen of Login Properties, go to the “User Mapping” tab. Then, on the “User Mapping” tab, select the desired database – especially the database for which this error message is displayed. On the lower screen, check the role db_owner. Click OK.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/errnt1.jpg" alt="" width="500" height="451" /></p>
<p style="text-align:justify;">In almost all such cases, this should fix your problem.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Security, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: SQL Login <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6622/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6622&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/08/20/sql-server-fix-error-cannot-open-database-requested-by-the-login-the-login-failed-login-failed-for-user-nt-authoritynetwork-service/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/errnt.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/errnt1.jpg" medium="image" />
	</item>
		<item>
		<title>SQLAuthority News &#8211; USB Drive Fails to Copy Large File</title>
		<link>http://blog.sqlauthority.com/2009/08/14/sqlauthority-news-usb-drive-fails-to-copy-large-file/</link>
		<comments>http://blog.sqlauthority.com/2009/08/14/sqlauthority-news-usb-drive-fails-to-copy-large-file/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 01:30:31 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6593</guid>
		<description><![CDATA[I am currently traveling on a month-long training assignment for Business Intelligence. For demonstration purposes, I use Virtual PC files and hands-on lab examples for attendees of the training. The size of my VPC file is about 15 GB. Initially, I copy this file to a USB Drive and then move it to other computers, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6593&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I am currently traveling on a month-long training assignment for Business Intelligence. For demonstration purposes, I use Virtual PC files and hands-on lab examples for attendees of the training. The size of my VPC file is about 15 GB. Initially, I copy this file to a USB Drive and then move it to other computers, as needed.</p>
<p style="text-align:justify;">Recently, while trying to copy my VPC file to my USB drive I received the following error:</p>
<p style="text-align:justify;"><strong>Error Copying File or Folder. Cannot Copy. There is not enough free disk space.</strong></p>
<p style="text-align:justify;">I had never experienced this problem before. I tried copying it a few more times using different copy methods and the command line. No matter what I tried, I received the same error message.  I finally decided to check the file system of the USB drive and discovered that it is FAT32. Filesystem FAT32 only supports a maximum file-size of 4 GB file, where as filesystem NTFS does not have this limitation. I had not come across FAT32 for more that two years and had completely forgotten about this limitation. I re-formatted the USB drive with NTFS. After this, it worked fine and I was able to copy my large VPC file successfully.</p>
<p style="text-align:justify;">I used GUI to format my drive, but if you prefer, you can also do it using Command Prompt.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/format.png" alt="" width="272" height="469" /></p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/format1.png" alt="" width="514" height="145" /></p>
<p style="text-align:justify;">While this article may not be directly related to SQL Servers, SQL Server Database files can be extremely large at times. If a SQL Expert faces this kind of situation in future, it may be helpful.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Best Practices, Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, SQLAuthority News, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6593/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6593&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/08/14/sqlauthority-news-usb-drive-fails-to-copy-large-file/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/format.png" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/format1.png" medium="image" />
	</item>
		<item>
		<title>SQLAuthority News &#8211; FIX : Error : HP OfficeJet Scanning and Printing Gray or Pink Shades</title>
		<link>http://blog.sqlauthority.com/2009/07/05/sqlauthority-news-fix-error-hp-officejet-scanning-and-printing-gray-or-pink-shades/</link>
		<comments>http://blog.sqlauthority.com/2009/07/05/sqlauthority-news-fix-error-hp-officejet-scanning-and-printing-gray-or-pink-shades/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 01:30:36 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[HP]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5812</guid>
		<description><![CDATA[Unlike my usual articles today’s article is not at all related to SQL Server but something drove me to include it on my blog. This issue snatched away my precious few hours. It took me over 2 hours to resolve it yesterday, which barred me from doing research on SQL Server. I am sure many [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5812&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Unlike my usual articles today’s article is not at all related to SQL Server but something drove me to include it on my blog. This issue snatched away my precious few hours. It took me over 2 hours to resolve it yesterday, which barred me from doing research on SQL Server. I am sure many people must have faced this issue and the sad part is no solution has been proposed so far.</p>
<p style="text-align:justify;">Let us understand the problem first. I got a brand new printer <strong>HP Officejet J4580 All-in-One printer</strong>. Support Engineer came along to install it. Fax, Printing, Photocopy &#8211; all the functions just worked fine. However, when we tried to scan anything the scanned copy had gray or pink shade on it. No matter what I did, the scanned copy still contained <strong>gray/pink shade</strong>. The support engineer worked for almost an hour on it but had no clue how to resolve it. We called up HP Support online but to my disappointment they replied with uncooperative attitude- we have never faced this issue so you should never face it. I contact several global HP Support and they suggested re-shipping the complete printer to them so that they can look at it.</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/hp1.jpg" alt="" width="501" height="500" /></p>
<p style="text-align:justify;">The most annoying part was that I kept on telling them that Photocopy worked fine, and only scanning was the issue; it seemed to be a software issue. It was very strange that no one from HP support knew how to fix it. Anyway, I decided to use every search engine available on planet to look for the solution for the same. To my surprise, I was not the only one who was facing this issue; this is quite common but there is no real answer to this problem. Most of the time annoyed users keep on changing computer, ink cartridges or ultimately printer, but no one really talks about its solution.</p>
<p style="text-align:justify;">I was determined to solve this software problem. After attempting nearly every possible setting available on software, I finally found the solution. Please pay attention to the checkbox in the image below. Once it is checked, the saved image will appear as follows:</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/hp2.jpg" alt="" width="502" height="571" /></p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/hp3.jpg" alt="" width="500" height="711" /></p>
<p style="text-align:justify;">After the setting was changed, the image came out neatly, without any pink or gray shade.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/hp4.jpg" alt="" width="497" height="499" /></p>
<p style="text-align:justify;">Hopefully, this article will save some time of those who are trying to make this work and who are not able to find time to read SQL Server due to this issue.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, SQLAuthority News, T SQL, Technology Tagged: HP <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5812/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5812&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/05/sqlauthority-news-fix-error-hp-officejet-scanning-and-printing-gray-or-pink-shades/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/hp1.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/hp2.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/hp3.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/hp4.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Fix : Error : 17892 Logon failed for login due to trigger execution. Changed database context to &#8216;master&#8217;.</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/</link>
		<comments>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 01:30:17 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Trigger]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[DAC]]></category>
		<category><![CDATA[sqlcmd]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722</guid>
		<description><![CDATA[I had previously written two articles about an intriguing observation of triggers online.
SQL SERVER – Interesting Observation of Logon Trigger On All Servers
SQL SERVER &#8211; Interesting Observation of Logon Trigger On All Servers &#8211; Solution
If you are wondering what made me write yet another article on logon trigger then let me tell you the story [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5722&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I had previously written two articles about an intriguing observation of triggers online.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2009/05/27/sql-server-interesting-observation-of-logon-trigger-on-all-servers/" target="_blank">SQL SERVER – Interesting Observation of Logon Trigger On All Servers</a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution" target="_blank">SQL SERVER &#8211; Interesting Observation of Logon Trigger On All Servers &#8211; Solution</a></p>
<p>If you are wondering what made me write yet another article on logon trigger then let me tell you the story behind it. One of my readers encountered a situation where he dropped the database created in the above two articles and he was unable to logon to the system after that.</p>
<p>Let us recreate the scenario first and attempt to solve the problem.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">/* Create Audit Database */<br />
</span><span style="color:blue;">CREATE DATABASE </span><span style="color:black;">AuditDb<br />
GO<br />
</span><span style="color:blue;">USE </span><span style="color:black;">AuditDb<br />
GO<br />
</span><span style="color:green;">/* Create Audit Table */<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">ServerLogonHistory<br />
</span><span style="color:gray;">(</span><span style="color:black;">SystemUser </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">512</span><span style="color:gray;">),<br />
</span><span style="color:black;">DBUser </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">512</span><span style="color:gray;">),<br />
</span><span style="color:black;">SPID </span><span style="color:blue;">INT</span><span style="color:gray;">,<br />
</span><span style="color:black;">LogonTime DATETIME</span><span style="color:gray;">)<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">/* Create Logon Trigger */<br />
</span><span style="color:blue;">CREATE TRIGGER </span><span style="color:black;">Tr_ServerLogon<br />
</span><span style="color:blue;">ON </span><span style="color:gray;">ALL </span><span style="color:black;">SERVER </span><span style="color:blue;">FOR </span><span style="color:black;">LOGON<br />
</span><span style="color:blue;">AS<br />
BEGIN<br />
INSERT INTO </span><span style="color:black;">AuditDb.dbo.ServerLogonHistory<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">SYSTEM_USER</span><span style="color:gray;">,</span><span style="color:magenta;">USER</span><span style="color:gray;">,</span><span style="color:#434343;">@@SPID</span><span style="color:gray;">,</span><span style="color:magenta;">GETDATE</span><span style="color:gray;">()<br />
</span><span style="color:blue;">END<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">/* Dropping Database AuditDB */<br />
/* Please note login to Server again will<br />
Produce Errors */<br />
</span><span style="color:blue;">USE </span><span style="color:black;">master<br />
GO<br />
</span><span style="color:blue;">DROP DATABASE </span><span style="color:black;">AuditDB<br />
GO</span></code>
</p>
<p style="text-align:justify;">After the database is dropped and we try to login again the following error will be displayed.</p>
<p style="text-align:justify;"><span style="color:#ff0000;">Logon failed for login &#8216;SQL\Pinal&#8217; due to trigger execution.<br />
Changed database context to &#8216;master&#8217;.<br />
Changed language setting to us_english. (Microsoft SQL Server, Error: 17892)</span>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/errortrigger.png" alt="" width="555" height="469" /></p>
<p style="text-align:justify;">This error could have been evaded if the Trigger was dropped prior to dropping database.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">USE </span><span style="color:black;">master<br />
GO<br />
</span><span style="color:blue;">DROP TRIGGER </span><span style="color:black;">Tr_ServerLogon </span><span style="color:blue;">ON </span><span style="color:gray;">ALL </span><span style="color:black;">SERVER<br />
GO</span></code>
</p>
<p style="text-align:justify;">Now, it will not be possible to logon to the database using SQL Server Management Studio. The only way to fix this problem is using DAC. Read more details about DAC  <a href="http://blog.sqlauthority.com/2009/01/09/sql-server-sqlcmd-using-a-dedicated-administrator-connection-to-kill-currently-running-query/" target="_blank">Using a Dedicated Administrator Connection to Kill Currently Running Query</a>. Now let us take a look at the example in our case where I am using windows authentication to logon to the system.</p>
<p style="text-align:justify;">Connect SQL Server using sqlcmd and -A option, which will establish DAC. Running the following command on command prompt will allow you to login once again in the database. I am specifying argument <em><strong>-d master</strong></em> which will directly enable me to logon to master database when DAC is connected.</p>
<p style="text-align:justify;"><strong>C:\Users\Pinal&gt;sqlcmd -S LocalHost -d master -A<br />
1&gt; DROP TRIGGER Tr_ServerLogon ON ALL SERVER<br />
2&gt; GO</strong>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/sqlcmddac.png" alt="" width="477" height="333" /></p>
<p style="text-align:justify;">I hope my explanation on logon triggers, DAC, and sqlcmd is clear to everyone. Let me have your thoughts about my present article.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, Readers Question, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQL Trigger, T SQL, Technology Tagged: DAC, sqlcmd <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5722/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5722&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/errortrigger.png" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlcmddac.png" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Fix : Error: 15372 Failed to generate a ser instance od SQL Server due to a failure in starting the process for the user instance.  The connection will be closed</title>
		<link>http://blog.sqlauthority.com/2009/06/08/sql-server-fix-error-15372-failed-to-generate-a-ser-instance-od-sql-server-due-to-a-failure-in-starting-the-process-for-the-user-instance-the-connection-will-be-closed/</link>
		<comments>http://blog.sqlauthority.com/2009/06/08/sql-server-fix-error-15372-failed-to-generate-a-ser-instance-od-sql-server-due-to-a-failure-in-starting-the-process-for-the-user-instance-the-connection-will-be-closed/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 01:30:55 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Server Express]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5439</guid>
		<description><![CDATA[Just a day ago, I was installing SQL Server Express on backup computer. I only use this computer when I have something to experiment. While installing SQL Server Express I found following error in my error log which prevented successful installation to computer. It was difficult to initially understand the problem by itself, after some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5439&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just a day ago, I was installing SQL Server Express on backup computer. I only use this computer when I have something to experiment. While installing SQL Server Express I found following error in my error log which prevented successful installation to computer. It was difficult to initially understand the problem by itself, after some try and error I found the solution.</p>
<p><span style="color:#ff0000;">Error: 15372, Severity: 16, State: 1.<br />
Failed to generate a ser instance od SQL Server due to a failure in starting the process for the user instance.  The connection will be closed.</span></p>
<p>Solution for this error is fairly simple. </p>
<p><strong>Fix/Workaround/Solution:</strong></p>
<p>For XP:<br />
Delete the directory &#8220;<em>c:\Documents and Settings\username\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS</em> &#8221;</p>
<p>For Vista:<br />
Delete the directory &#8220;c<em>:\Users\&lt;username&gt;\AppData\Local\Microsoft\Microsoft Sql Server Data\SQLEXPRESS&#8221;</em></p>
<p>Reboot the system.</p>
<p>Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
<p> </p>
<p><strong><br />
</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: SQL Server Express <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5439/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5439&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/08/sql-server-fix-error-15372-failed-to-generate-a-ser-instance-od-sql-server-due-to-a-failure-in-starting-the-process-for-the-user-instance-the-connection-will-be-closed/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Fix : Error : SQLDUMPER library failed initialization. Your installation is either corrupt or has been tampered with. Please uninstall then re-run setup to correct to correct this problem. in a modal dialog with the title SQL Writer</title>
		<link>http://blog.sqlauthority.com/2009/05/28/sql-server-fix-error-sqldumper-library-failed-initialization-your-installation-is-either-corrupt-or-has-been-tampered-with-please-uninstall-then-re-run-setup-to-correct-to-correct-this-problem/</link>
		<comments>http://blog.sqlauthority.com/2009/05/28/sql-server-fix-error-sqldumper-library-failed-initialization-your-installation-is-either-corrupt-or-has-been-tampered-with-please-uninstall-then-re-run-setup-to-correct-to-correct-this-problem/#comments</comments>
		<pubDate>Thu, 28 May 2009 01:30:04 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5206</guid>
		<description><![CDATA[I often receive emails from reader requesting solution to following error:
&#8220;SQLDUMPER library failed initialization. Your installation is either corrupt or has been tampered with. Please uninstall then re-run setup to correct to correct this problem.&#8221; in a modal dialog with the title &#8220;SQL Writer&#8221;
While searching online there are so many different solution and many time [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5206&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I often receive emails from reader requesting solution to following error:</p>
<p style="text-align:justify;"><span style="color:#ff0000;">&#8220;SQLDUMPER library failed initialization. Your installation is either corrupt or has been tampered with. Please uninstall then re-run setup to correct to correct this problem.&#8221; in a modal dialog with the title &#8220;SQL Writer&#8221;</span></p>
<p style="text-align:justify;">While searching online there are so many different solution and many time the solution is to reinstall SQL Server. There is no need to reinstall SQL Server or do any complex process. It is very simple to fix this issue.</p>
<p style="text-align:justify;"><strong>Fix/Workaround/Solution:</strong></p>
<p style="text-align:justify;">Go to Add/Remove Program in windows Control Panel</p>
<p style="text-align:justify;">Remove &#8220;microsoft SQL server vss writer&#8221; program</p>
<p style="text-align:justify;">Reboot the computer.</p>
<p style="text-align:justify;">The error should have gone by now. If you prefer you can reinstall SQL Server VSS Writer again.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
<p style="text-align:justify;">
<p style="text-align:justify;">
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5206&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/05/28/sql-server-fix-error-sqldumper-library-failed-initialization-your-installation-is-either-corrupt-or-has-been-tampered-with-please-uninstall-then-re-run-setup-to-correct-to-correct-this-problem/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; FIX : ERROR : (provider: Named Pipes Provider, error: 40 &#8211; Could not open a connection to SQL Server) (Microsoft SQL Server, Error: )</title>
		<link>http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/</link>
		<comments>http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/#comments</comments>
		<pubDate>Thu, 21 May 2009 01:30:01 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4840</guid>
		<description><![CDATA[Regular readers of my blog are aware of the fact that I have written about this subject umpteen times earlier, and every time I have spoken about a new issue related to it. Few days ago, I had redone my local home network. I have LAN setup with wireless router connected with my four computers, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4840&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Regular readers of my blog are aware of the fact that I have written about this subject umpteen times earlier, and every time I have spoken about a new issue related to it. Few days ago, I had redone my local home network. I have LAN setup with wireless router connected with my four computers, two mobile devices, one printer and one VOIP solution. I had also formatted my primary computer and clean installed SQL Server 2008 into it. Yesterday, incidentally, I was sitting in my yard trying to connect SQL Server located in home office and suddenly I stumbled upon the following error. Finding the solution was the most infuriating part as it consumed my precious 10 minutes.</p>
<p style="text-align:justify;">Let us look at few of the common errors received:</p>
<p style="text-align:justify;"><em><span style="color:#ff0000;">An error has occurred while establishing a connection to the server.</span></em></p>
<p style="text-align:justify;"><em><span style="color:#ff0000;">(provider: Named Pipes Provider, error: 40 &#8211; Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 5)</span></em></p>
<p style="text-align:justify;"><em><span style="color:#ff0000;">An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 &#8211; Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 1326)</span></em></p>
<p style="text-align:justify;">I eventually found the resolution to this error on this blog itself; so I was saved from hunting for the solution. I am sure there are a number of developers who had previously fixed this error while installing SQL Server 2008 or SQL Server 2005 but in due course forgot the right solution to this error. <strong>This is just a quick refresher. Make sure to bookmark this as you never know when you would need this solution.</strong></p>
<p style="text-align:justify;">Let us check into the steps to resolve this error.</p>
<p style="text-align:justify;">1)<strong> SQL Server should be up and running. </strong></p>
<p style="text-align:justify;">Go to All Programs &gt;&gt; Microsoft SQL Server 2008 &gt;&gt; Configuration Tools &gt;&gt; SQL Server Configuration Manager &gt;&gt; SQL Server Services, and check if SQL Server service status is &#8220;Running&#8221;.</p>
<p style="text-align:justify;">In addition, ensure that your remote server is in the same network. Run &#8220;sqlcmd -L&#8221; in your command prompt to ascertain if your server is included in your network list. You can even find tutorial for the same here <strong><a href="http://blog.sqlauthority.com/2009/03/18/sql-server-find-all-servers-from-local-network-using-sqlcmd/" target="_blank">SQL SERVER &#8211; Find All Servers From Local Network &#8211; Using sqlcmd &#8211; Detect Installed SQL Server on Network</a></strong>.</p>
<p style="text-align:justify;">I have confronted numerous situations when these nerve-wracking errors crop up, and most of the time when I try to troubleshoot I notice that SQL Server services are neither running nor installed. If SQL Server is not installed as default instance SQL Server Browser should be running together with it; we will explore this further in Topic 5.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_7.jpg" alt="" width="500" height="205" /></p>
<p style="text-align:justify;"><strong>2) Enable TCP/IP in SQL Server Configuration</strong></p>
<p style="text-align:justify;">When two or more SQL Servers are connected across network they do all communication using TCP/IP. The default port of SQL Server installation is 1433. This port can be changed through SQL Server Configuration Manager. TCP/IP should be enabled for SQL Server to be connected.</p>
<p style="text-align:justify;">Go to All Programs &gt;&gt; Microsoft SQL Server 2008 &gt;&gt; Configuration Tools &gt;&gt; SQL Server Configuration Manager &gt;&gt; Select TCP/IP</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_1.jpg" alt="" width="465" height="534" /></p>
<p style="text-align:justify;">Right Click on TCP/IP &gt;&gt; Click on Enable</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_2.jpg" alt="" width="500" height="221" /></p>
<p style="text-align:justify;">You must restart SQL Server Services for all the changes to take effect. Right click and go to menu properties to select location where default port of SQL Server can be changed.</p>
<p style="text-align:justify;"><strong>3) Open Port in Windows Firewall</strong></p>
<p style="text-align:justify;"><strong></strong>Windows Firewall is very efficacious in protecting the Operating system from all sorts of malicious attacks. By default, many of the ports and services are refrained from running by firewall. Time and again, SQL Server ports are not open in firewall as well. All the ports on which SQL Server is running should be added to exception and firewall should filter all the traffic from those ports. As described, by default SQL Server runs on port 1433, but if default port is changed then the new port should be added to exception. If SQL Server has named instance (another instance besides default instance) is installed, SQL Server browser should also be added to the exception, as described in Step 7.</p>
<p style="text-align:justify;">Go to Control Panel &gt;&gt; Windows Firewall &gt;&gt; Change Settings &gt;&gt; Exceptions  &gt;&gt; Add Port</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_3.jpg" alt="" width="500" height="400" /></p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_4.jpg" alt="" width="444" height="519" /></p>
<p style="text-align:justify;">Make the following entries in popup &#8220;Add a Port&#8221; and click OK.<br />
<strong>Name : SQL<br />
Port Number: 1433<br />
Protocol: Select TCP</strong>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_5.jpg" alt="" width="403" height="306" /></p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_6.jpg" alt="" width="444" height="519" /></p>
<p style="text-align:justify;"><strong>4) Enable Remote Connection</strong></p>
<p style="text-align:justify;">Enabling remote connection is another important, yet oft-neglected step that is frequently missed by database administrators while setting up SQL Server. If this feature is turned off SQL Server will function smoothly on local machine, but it will let another server connect to it remotely. By default this feature is ON in SQL Server 2008.</p>
<p style="text-align:justify;">Right click on the server node and select Properties.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_9.jpg" alt="" width="470" height="596" /></p>
<p style="text-align:justify;">Go to Left Tab of Connections and check &#8220;Allow remote connections to this server&#8221;</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_10.jpg" alt="" width="500" height="560" /></p>
<p style="text-align:justify;"><strong>5) Enable SQL Server Browser Service</strong></p>
<p style="text-align:justify;">If SQL Server is not installed as default instance but instead installed as named instance and also if there is no specific TCP/IP port configured, it will give rise to the error that is being discussed in this article. If SQL Server Browser service is enabled, it will allow the server to be connected through dynamic TCP/IP port. Enabling this service is a one-time process, as on enabling it once it will apply to all the instances installed on the same server.</p>
<p style="text-align:justify;">Go to All Programs &gt;&gt; Microsoft SQL Server 2008 &gt;&gt; Configuration Tools &gt;&gt; SQL Server Configuration Manager &gt;&gt; SQL Server Browser</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_8.jpg" alt="" width="500" height="205" /></p>
<p style="text-align:justify;">Right Click on SQL Server Browser &gt;&gt; Click on Enable</p>
<p style="text-align:justify;"><strong>6) Create exception of sqlbrowser.exe in Firewall</strong></p>
<p style="text-align:justify;">As elucidated in Step 6, sqlbrowser service needs to be enabled for named instance. Windows Firewall may prevent sqlbrowser.exe to execute. So, it is imperative to add exception for the same in windows firewall.</p>
<p style="text-align:justify;">Search for sqlbrowser.exe on your local drive where SQL Server is installed. Copy the path of the sqlbrowser.exe like C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe and create the exception of the file in Firewall, as delineated in <strong>Step 3</strong>.</p>
<p style="text-align:justify;"><strong>7) Recreate Alias</strong></p>
<p style="text-align:justify;">It is getting quite common to create alias of SQL Server and use it in application. This will ensure that in future if any physical SQL Server has to be moved, it will not be required to change any code or connection string. You can simply create alias with the same name pointing to different SQL Server and it will start working instantaneously. I have observed that a couple of times due to internal error while recreating alias this error was fixed.</p>
<p style="text-align:justify;">Go to All Programs &gt;&gt; Microsoft SQL Server 2008 &gt;&gt; Configuration Tools &gt;&gt; SQL Native Client 10.0 Configuration &gt;&gt; Aliases</p>
<p style="text-align:justify;">Delete the alias that is giving problem and recreate it with identical parameters.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/error40/e40_11.jpg" alt="" width="417" height="269" /></p>
<p style="text-align:justify;">I have tried my best to include all the methods of fixing this error and if I have missed any, please leave a comment and I will be very glad to include them here. I have put in my effort to encompass this issue in one article that needs to be refereed when any connection error comes up.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Server, SQL Server Management Studio, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4840/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4840&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_7.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_1.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_2.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_3.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_4.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_5.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_6.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_9.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_10.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_8.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/error40/e40_11.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Fix : Management Studio Error : Saving Changes in not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can&#8217;t be re-created or enabled the option Prevent saving changes that require the table to be re-created</title>
		<link>http://blog.sqlauthority.com/2009/05/18/sql-server-fix-management-studio-error-saving-changes-in-not-permitted-the-changes-you-have-made-require-the-following-tables-to-be-dropped-and-re-created-you-have-either-made-changes-to-a-tab/</link>
		<comments>http://blog.sqlauthority.com/2009/05/18/sql-server-fix-management-studio-error-saving-changes-in-not-permitted-the-changes-you-have-made-require-the-following-tables-to-be-dropped-and-re-created-you-have-either-made-changes-to-a-tab/#comments</comments>
		<pubDate>Mon, 18 May 2009 01:30:45 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4822</guid>
		<description><![CDATA[Today, we will delve into a very simple issue that one of the Jr. Developers at my organization confronted. I have a preference for T-SQL. According to me, all the developers should always use T-SQL instead of Design feature of SQL Server Management Studio (SSMS). In fact, sound knowledge of T-SQL has the potential to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4822&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Today, we will delve into a very simple issue that one of the Jr. Developers at my organization confronted. I have a preference for T-SQL. According to me, all the developers should always use T-SQL instead of Design feature of SQL Server Management Studio (SSMS). In fact, sound knowledge of T-SQL has the potential to make a huge difference in the development of the developer. One issue with using design mode of SSMS is that it sometimes adds too much overhead to the actual code and locks up the complete database. In the earlier version of SSMS, it was quite common to see that even on doing a small change the whole SSMS got hanged and went unresponsive till the operation was over.</p>
<p style="text-align:justify;">The reason for SSMS to go unresponsive is that when some operations (i.e. adding column, changing datatype of any column, etc) happen, it has to do much more work than the actual operation. Let us now examine an operation where we will add a new column to an already existing table.</p>
<ul style="text-align:justify;">
<li>Transaction starts.</li>
<li> When a new column is added SSMS renames the existing table to temp table.</li>
<li>After that, it creates a new table with new specification.</li>
<li>Now, SSMS has two tables: copy of  previous table with data and empty table with new structure.</li>
<li>SSMS now starts moving older data from older table to newer table.</li>
<li>If there is any error, it rolls back transaction.</li>
<li>If there is no error, it commits all the previous operations.</li>
<li>Transaction ends.</li>
</ul>
<p style="text-align:justify;">This entire operation is very resource intensive and puts lock on SQL Server tables in operation, eventually hanging SSMS.</p>
<p>SQL Server 2008 SSMS has new a feature that averts this issue. SSMS prevents user from running any operation that goes through the above-mentioned process. Let us see an example for the same.</p>
<p style="text-align:justify;">First, create table using the following script in any database.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">CREATE TABLE </span><span style="color:black;">dbo.Table_1<br />
</span><span style="color:gray;">(<br />
</span><span style="color:black;">ID </span><span style="color:blue;">INT </span><span style="color:gray;">NOT NULL,<br />
</span><span style="color:black;">First </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">50</span><span style="color:gray;">) NOT NULL,<br />
</span><span style="color:black;">Second </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">50</span><span style="color:gray;">) NOT NULL,<br />
</span><span style="color:black;">Third </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">50</span><span style="color:gray;">) NOT NULL<br />
) </span><span style="color:blue;">ON </span><span style="color:black;">[PRIMARY]<br />
GO</span></code></p>
<p>Once the table is created open the table in SSMS by clicking on the table name and selecting &#8220;Design.&#8221; Try to include another column to the existing table and click on save (CTRL+S). It will prevent it from saving and will emit the following error in popup.
</p>
<p style="text-align:justify;"><span style="color:#ff0000;">Saving Changes in not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can&#8217;t be re-created or enabled the option Prevent saving changes that require the table to be re-created<br />
</span>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/preventtable1.jpg" alt="" width="500" height="397" /></p>
<p style="text-align:justify;">I like how SSMS takes stance of displaying warning message and stops user from going further to do operation, thereby preventing hanging of SSMS. However, this feature can cause inconvenience in a situation when one is required to save table using SSMS. If such situation arises, then this feature can be turned off by going to <em><strong>Menu &gt;&gt; Tools &gt;&gt; Options &gt;&gt; Designers &gt;&gt; Uncheck &#8220;Prevent Saving changes that require table re-creation&#8221;.</strong></em></p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/preventtable.jpg" alt="" width="500" height="289" /></p>
<p style="text-align:justify;">This restriction only applies to operation attempted using only SSMS. If modification of tables are attempted using T-SQL in Query Editor, it will work just fine!</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Database, Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Server, SQL Server Management Studio, SQL Tips and Tricks, SQLServer, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4822/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4822/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4822/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4822/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4822/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4822/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4822/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4822/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4822/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4822/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4822&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/05/18/sql-server-fix-management-studio-error-saving-changes-in-not-permitted-the-changes-you-have-made-require-the-following-tables-to-be-dropped-and-re-created-you-have-either-made-changes-to-a-tab/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/preventtable1.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/preventtable.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; FIX : Error : Windows Update; Error Code 8000FFFF</title>
		<link>http://blog.sqlauthority.com/2009/05/07/sql-server-fix-error-windows-update-error-code-8000ffff/</link>
		<comments>http://blog.sqlauthority.com/2009/05/07/sql-server-fix-error-windows-update-error-code-8000ffff/#comments</comments>
		<pubDate>Thu, 07 May 2009 01:30:22 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Add-On]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4819</guid>
		<description><![CDATA[At present, I am running Windows Vista Ultimate as OS in my computer. I have installed SQL Server 2008 developer&#8217;s version in my computer.
A couple of months back, I learnt that SQL Server Book On-Line (BOL) update has been released. I usually depend on my Windows Update of SQL Server to install all updates in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4819&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">At present, I am running Windows Vista Ultimate as OS in my computer. I have installed SQL Server 2008 developer&#8217;s version in my computer.</p>
<p style="text-align:justify;">A couple of months back, I learnt that SQL Server Book On-Line (BOL) update has been released. I usually depend on my Windows Update of SQL Server to install all updates in my OS, so I do not have to  bother myself with installing updates manually.</p>
<p style="text-align:justify;">However, this time I was quite taken aback to find that my computer was not updated with the latest updates released by Microsoft. Further, I noticed that my SQL Server Book On-Line is not up to date. This experience was nerve-wracking, as I expected my computer to have all the latest updates. I probed into the matter and found that there was an issue with some previous incomplete updates available with Windows Update. I was getting vexed with the following error every time I tried to run Windows Update.</p>
<p style="text-align:justify;"><span style="color:#ff0000;">Windows Update; Error Code 8000FFFF </span></p>
<p style="text-align:justify;">I attempted to reboot, uninstall antivirus but had no luck fixing this error. I finally sent out an email to my friend who is expert in troubleshooting OS issues.  He sent me some steps to resolve the issue.</p>
<p style="text-align:justify;"><strong>Fix/Solution/Workaround:</strong></p>
<p style="text-align:justify;">After I performed the following steps, windows updated started to work normally and I was able to successfully download all SQL Server related updates.</p>
<ol style="text-align:justify;">
<li>Click on Windows button and search &#8216;regedit&#8217;.</li>
<li>Right click on the regedit and &#8220;Run as Administrator&#8221; (See Image 1).</li>
<li>Go to HKEY_LOCAL_MACHINE &gt;&gt; COMPONENTS and look for keys described in steps 4, 5 and 6. In the absence of  any  key  go to  the next step (See Image 2).</li>
<li>Find key PendingXmlIdentifier and delete it.</li>
<li>Find key NextQueueEntryIndex and delete it.</li>
<li>Find key AdvancedInstallersNeedResolving and delete it.</li>
<li>Restart the computer.</li>
<li>Once restarted now attempt Windows Updates;  it  should work fine now.</li>
</ol>
<p style="text-align:justify;">Do let me know if this solution helps you.</p>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Image1" src="http://www.pinaldave.com/bimg/vistaerror1.jpg" alt="" width="399" height="515" /></dt>
<dd class="wp-caption-dd">Image1</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Image2" src="http://www.pinaldave.com/bimg/vistaerror2.jpg" alt="" width="500" height="290" /></dt>
<dd class="wp-caption-dd">Image2</dd>
</dl>
</div>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Add-On, SQL Authority, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: Vista <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4819/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4819/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4819/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4819/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4819/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4819/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4819/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4819/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4819/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4819/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4819&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/05/07/sql-server-fix-error-windows-update-error-code-8000ffff/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/vistaerror1.jpg" medium="image">
			<media:title type="html">Image1</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/vistaerror2.jpg" medium="image">
			<media:title type="html">Image2</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; FIX : ERROR :  is not a valid Win32 application. (Exception from HRESULT: 0&#215;800700C1)</title>
		<link>http://blog.sqlauthority.com/2009/04/30/sql-server-fix-error-is-not-a-valid-win32-application-exception-from-hresult-0x800700c1/</link>
		<comments>http://blog.sqlauthority.com/2009/04/30/sql-server-fix-error-is-not-a-valid-win32-application-exception-from-hresult-0x800700c1/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 01:30:51 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4760</guid>
		<description><![CDATA[Just a day ago, one of my friend sent me email requesting help with following error:
is not a valid Win32 application. (Exception from HRESULT: 0&#215;800700C1)
In fact this is not SQL Server error but it is of .NET application. The solution of this error is just changing configuration of IIS7.
Fix/Solution/Workaround:
Go to IIS.
Click on Application Pool.
Look for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4760&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Just a day ago, one of my friend sent me email requesting help with following error:</p>
<p style="text-align:justify;"><span style="color:#ff0000;">is not a valid Win32 application. (Exception from HRESULT: 0&#215;800700C1)</span></p>
<p style="text-align:justify;">In fact this is not SQL Server error but it is of .NET application. The solution of this error is just changing configuration of IIS7.</p>
<p style="text-align:justify;"><strong>Fix/Solution/Workaround:</strong></p>
<p style="text-align:justify;">Go to IIS.<br />
Click on Application Pool.<br />
Look for your web application in application pool.<br />
Go to Advanced Settings by right clicking on previously selected application pool.<br />
Enable 32-Bit Applications by checking it.
</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, Readers Question, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Security, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4760/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4760&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/30/sql-server-fix-error-is-not-a-valid-win32-application-exception-from-hresult-0x800700c1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; FIX : Error: 18486 Login failed for user &#8217;sa&#8217; because the account is currently locked out. The system administrator can unlock it. &#8211; Unlock SA Login</title>
		<link>http://blog.sqlauthority.com/2009/04/23/sql-server-fix-error-18486-login-failed-for-user-sa-because-the-account-is-currently-locked-out-the-system-administrator-can-unlock-it-unlock-sa-login/</link>
		<comments>http://blog.sqlauthority.com/2009/04/23/sql-server-fix-error-18486-login-failed-for-user-sa-because-the-account-is-currently-locked-out-the-system-administrator-can-unlock-it-unlock-sa-login/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 01:30:22 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[hacking]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4488</guid>
		<description><![CDATA[Today, we will riffle through a very simple, yet common issue &#8211; How to unlock a locked &#8220;sa&#8221; login?
It is quite a common practice that SQL Server is hosted on a separate server than application server. In most cases, SQL Server ports or IP are exposed to the web, which makes them risk prone. For [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4488&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Today, we will riffle through a very simple, yet common issue &#8211; <em><strong>How to unlock a locked &#8220;sa&#8221; login?</strong></em></p>
<p style="text-align:justify;">It is quite a common practice that SQL Server is hosted on a separate server than application server. In most cases, SQL Server ports or IP are exposed to the web, which makes them risk prone. For hackers, System Admin login &#8220;sa&#8221; is the preferred account which they use for hacking. In fact, a majority of hackers try to hack into SQL Server by attempting to login using &#8220;sa&#8221; account. Once hackers gain access to server using &#8220;sa&#8221; login, they get a complete control over the SQL Server.</p>
<p style="text-align:justify;">Hackers apply Brute Force method to hack &#8220;sa&#8221; login. Brute Force method is an attempt to guess a password using every possible combination. Be it in your machine where SQL Server is hosted or in your domain, if you have a policy setting that disables any account after a certain number of unsuccessful attempts, it will also disable all your SQL Server logins including &#8220;sa&#8221; login. In this scenario, SQL Server will display the following error:</p>
<p style="text-align:justify;"><span style="color:#ff0000;">msg: 18486<br />
Login failed for user &#8217;sa&#8217; because the account is currently locked out. The system administrator can unlock it.<br />
</span>
</p>
<p style="text-align:justify;"><strong>Fix/Solution/Workaround:</strong></p>
<p style="text-align:justify;">1) Disable the policy on your system or on your domain level. However, this may not be the most appropriate option as it will adversely affect your security protection level.</p>
<p style="text-align:justify;">2) If this is a one-time issue, enable &#8220;sa&#8221; login WITH changing password of &#8220;sa&#8221; login.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">ALTER </span><span style="color:black;">LOGIN sa </span><span style="color:blue;">WITH </span><span style="color:black;">PASSWORD </span><span style="color:blue;">= </span><span style="color:red;">'yourpass' </span><span style="color:black;">UNLOCK </span><span style="color:gray;">;<br />
</span><span style="color:black;">GO</span></code>
</p>
<p style="text-align:justify;">3) If this is a one-time issue, enable &#8220;sa&#8221; login WITHOUT changing password of &#8220;sa&#8221; login.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">ALTER </span><span style="color:black;">LOGIN sa </span><span style="color:blue;">WITH </span><span style="color:black;">CHECK_POLICY </span><span style="color:blue;">= OFF</span><span style="color:gray;">;<br />
</span><span style="color:blue;">ALTER </span><span style="color:black;">LOGIN sa </span><span style="color:blue;">WITH </span><span style="color:black;">CHECK_POLICY </span><span style="color:blue;">= ON</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO</span></code>
</p>
<p style="text-align:justify;">4) If you are not using &#8220;sa&#8221; login, switch your authentication from mixed mode authentication to windows authentication to remove your &#8220;sa&#8221; login account.</p>
<p style="text-align:justify;">5) <strong>BEST Practice: </strong>Create another user with systemadmin role having the same rights as &#8220;sa&#8221; login and let &#8220;sa&#8221; login get disabled. Use the newly created account as this will not be exposed on the Internet and for hackers it will be a tough nut to crack! They will find it difficult to guess the right password and moreover, they will not be able to do Brute Force attack over it.</p>
<p style="text-align:justify;">I am eager to know if there are other options to solve this problem.</p>
<p style="text-align:justify;">If you simply want to change the &#8220;sa&#8221; password, you can follow my previous article <strong><a href="http://blog.sqlauthority.com/2007/12/29/sql-server-change-password-of-sa-login-using-management-studio/" target="_blank">SQL SERVER &#8211; Change Password of SA Login Using Management Studio</a></strong>.</p>
<p style="text-align:justify;">Please note that it is not mandatory to reboot SQL Server or restart SQL Server services after changing the password for &#8220;sa&#8221; login. If you are interested, go through all the <a href="http://blog.sqlauthority.com/2007/12/29/sql-server-change-password-of-sa-login-using-management-studio/" target="_blank">comments </a>and bring forth your opinion about this discussion.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
<p style="text-align:justify;">
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Security, SQL Server, SQL Tips and Tricks, SQLServer, T SQL, Technology Tagged: hacking <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4488/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4488&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/23/sql-server-fix-error-18486-login-failed-for-user-sa-because-the-account-is-currently-locked-out-the-system-administrator-can-unlock-it-unlock-sa-login/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Fix : SQL Server 2008 Developer Edition Install fail due to .NET Framework 3.5 missing</title>
		<link>http://blog.sqlauthority.com/2009/04/19/sql-server-fix-sql-server-2008-developer-edition-install-fail-due-to-net-framework-35-missing/</link>
		<comments>http://blog.sqlauthority.com/2009/04/19/sql-server-fix-sql-server-2008-developer-edition-install-fail-due-to-net-framework-35-missing/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 01:30:41 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Download]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4435</guid>
		<description><![CDATA[It goes without saying that computer running slow is a common problem we all face, a pestering one indeed! Last week, I had to format my computer as it was running at an annoyingly tortoise pace. After formatting it, I installed Visual Studio 2008. When tested Visual Studio 2008 worked all fine. However, when I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4435&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">It goes without saying that computer running slow is a common problem we all face, a pestering one indeed! Last week, I had to format my computer as it was running at an annoyingly tortoise pace. After formatting it, I installed Visual Studio 2008. When tested Visual Studio 2008 worked all fine. However, when I attempted to install SQL Server 2008, I was confronted with an error.</p>
<p style="text-align:justify;"><span style="color:#ff0000;">SQL Server 2008 Developer Edition Install fail due to .NET Framework 3.5 missing</span></p>
<p style="text-align:justify;">For a couple of seconds, I was in a state of surprise, as I had Visual Studio 2008 and it worked absolutely fine; without .NET Framework 3.5 VS 2008 should have not worked. I had a hard time wrapping my head around this idea. I searched online for the solution and successfully found the following link, which clearly gave explanation to my probing mind. As CSS SQL Server Engineers have already explained it perfectly I will be not talking about the same again, but I recommend this as a good read.</p>
<p style="text-align:justify;"><strong><a href="http://blogs.msdn.com/psssql/archive/2008/08/11/sql-server-2008-visual-studio-2008-sp1-and-net-framework-3-5-sp1-explained.aspx" target="_blank">SQL Server 2008, Visual Studio 2008 SP1, and .Net Framework 3.5 SP1 explained</a></strong></p>
<p style="text-align:justify;">If you have installed VS 2008, install VS 2008 SP1 as well.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Download, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: Visual Studio <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4435/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4435&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/19/sql-server-fix-sql-server-2008-developer-edition-install-fail-due-to-net-framework-35-missing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; FIX : ERROR : The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine Error:2147749896 (0×80041008)</title>
		<link>http://blog.sqlauthority.com/2009/04/12/sql-server-fix-error-the-sql-server-system-configuration-checker-cannot-be-executed-due-to-wmi-configuration-on-the-machine-error2147749896-0%c3%9780041008/</link>
		<comments>http://blog.sqlauthority.com/2009/04/12/sql-server-fix-error-the-sql-server-system-configuration-checker-cannot-be-executed-due-to-wmi-configuration-on-the-machine-error2147749896-0%c3%9780041008/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 01:30:20 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4292</guid>
		<description><![CDATA[A couple of days back I  had my computer formatted. I reinstalled it with Vista SP1 32bit. Subsequent to installing other indispensable software  I tried to install SQL Server 2005 .  However, it instantly displayed the following error message.
The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine Error:2147749896 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4292&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">A couple of days back I  had my computer formatted. I reinstalled it with Vista SP1 32bit. Subsequent to installing other indispensable software  I tried to install SQL Server 2005 .  However, it instantly displayed the following error message.</p>
<p style="text-align:justify;"><span style="color:#ff0000;">The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine Error:2147749896 (0×80041008).</span></p>
<p style="text-align:justify;">It was a bit frustrating for me as it was pretty late and I ardently wanted to install SQL Server 2008 right after I was done  with installing SQL Server 2005. I pinged my friend <em>James Locazicoski </em>with the above error message. James came to my rescue with a batch file. I immediately ran the batch file on my server;  it took a while and when it was done it closed itself on vista. I kept my fingers crossed and ran my SQL Server installer right after that.   There was no WMI error to wreck my nerve. I was able to successfully install SQL Server right after that.</p>
<p style="text-align:justify;">Well, this bat file is certainly a life savior. While searching online I found this script at several places, which reflects its popularity and usability.  I need help from my readers regarding the following information.</p>
<p style="text-align:justify;"><em><strong>1) Where is the original source of this script?</strong></em></p>
<p style="text-align:justify;"><em><strong>2) What is this script actually doing?</strong></em></p>
<p style="text-align:justify;">Once I receive response to both the above questions, I will post the answers  on my blog with due credit to my readers.</p>
<h3 style="text-align:justify;"><a href="http://www.pinaldave.com/bimg/WMIFIX.zip" target="_blank">Download Batch File Here</a></h3>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQL Utility, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4292/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4292&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/12/sql-server-fix-error-the-sql-server-system-configuration-checker-cannot-be-executed-due-to-wmi-configuration-on-the-machine-error2147749896-0%c3%9780041008/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Restore or Attach Database Without .NDF or .MDF is Not Possible</title>
		<link>http://blog.sqlauthority.com/2009/04/10/sql-server-restore-or-attach-database-without-ndf-or-mdf-is-not-possible/</link>
		<comments>http://blog.sqlauthority.com/2009/04/10/sql-server-restore-or-attach-database-without-ndf-or-mdf-is-not-possible/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 01:30:57 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4271</guid>
		<description><![CDATA[This article revolves around a trivial yet common issue. There might be a set of people for whom the current topic might appear to be insignificant. But I have been asked this question innumerable times, particularly from   people who are frequenting using forums or have blog related to storage and highly availability, which instigated me [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4271&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">This article revolves around a trivial yet common issue. There might be a set of people for whom the current topic might appear to be insignificant. But I have been asked this question innumerable times, particularly from   people who are frequenting using forums or have blog related to storage and highly availability, which instigated me to write this article.</p>
<p style="text-align:justify;">Here goes this frequently asked question.</p>
<p style="text-align:justify;"><strong>Question:</strong> Is it possible to restore database if one of the files of .mdf (primary data file) or .ndf (secondary data file) is missing?</p>
<p style="text-align:justify;"><strong>Answer:</strong> In one word the answer is <strong>NO</strong>. All the .mdf and .ndf files are mandatory to attach or restore database successfully.  Even though  you have all the transactions stored in .ldf you will not be able to restore the database completely.</p>
<p>I hope this answer removes the cloud of doubt hovering over my targeted readers.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
<p style="text-align:justify;">
Posted in Database, Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4271&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/10/sql-server-restore-or-attach-database-without-ndf-or-mdf-is-not-possible/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Fix : Error : Msg 9803, Level 16. Invalid data for type &#8220;numeric&#8221; &#8211; Data Type Mapping for Oracle Publishers</title>
		<link>http://blog.sqlauthority.com/2009/04/09/sql-server-fix-error-msg-9803-level-16-invalid-data-for-type-numeric-data-type-mapping-for-oracle-publishers/</link>
		<comments>http://blog.sqlauthority.com/2009/04/09/sql-server-fix-error-msg-9803-level-16-invalid-data-for-type-numeric-data-type-mapping-for-oracle-publishers/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 01:30:39 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4267</guid>
		<description><![CDATA[My present article talks about an error that you will encounter when connecting to Oracle database using OPENQUERY.
The error that eventuates is as follows:
Msg 9803, Level 16, State 1, Line 1
Invalid data for type &#8220;numeric&#8221;.

Fix/Solution/Workaround:
As far as I can discern, the above error occurs due to numeric precision or numeric definition mismatch. The number field [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4267&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">My present article talks about an error that you will encounter when connecting to Oracle database using OPENQUERY.</p>
<p style="text-align:justify;">The error that eventuates is as follows:</p>
<p style="text-align:justify;"><span style="color:#ff0000;">Msg 9803, Level 16, State 1, Line 1<br />
Invalid data for type &#8220;numeric&#8221;.</span>
</p>
<p style="text-align:justify;"><strong>Fix/Solution/Workaround:</strong></p>
<p style="text-align:justify;">As far as I can discern, the above error occurs due to numeric precision or numeric definition mismatch. The number field of SQL Server does not appropriately match with the number field of Oracle. In fact, apart from number field there are several other data types that do not match.</p>
<p style="text-align:justify;">I am including the following sample query having NumberCol that is Integer field of SQL Server and it needs to be converted To_Char to match up. NumberCol can be matched to Numeric in Oracle as well.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:magenta;">CONVERT</span><span style="color:gray;">(</span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">NumberCol</span><span style="color:gray;">) </span><span style="color:blue;">AS </span><span style="color:black;">NumberCol<br />
</span><span style="color:blue;">FROM OPENQUERY </span><span style="color:gray;">(</span><span style="color:black;">YourConnectionMethod</span><span style="color:gray;">, </span><span style="color:red;">'SELECT TO_CHAR(NumberCol) AS NumberCol FROM RemoteTbl'</span><span style="color:gray;">); </span></code>
</p>
<p style="text-align:justify;">Do read the article of MSDN to have a sound knowledge about <strong><a href="http://msdn.microsoft.com/en-us/library/ms151817.aspx" target="_blank">Data Type Mapping for Oracle Publishers</a></strong>.</p>
<p style="text-align:justify;">Please drop a line to me and let me have your doubts and questions. Your suggestions are always welcome!</p>
<p style="text-align:justify;"><strong><a href="http://msdn.microsoft.com/en-us/library/ms151817.aspx" target="_blank"></a></strong></p>
<p style="text-align:justify;"><strong></strong></p>
<p style="text-align:justify;">Reference :<strong> Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Security, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: Oracle <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4267&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/09/sql-server-fix-error-msg-9803-level-16-invalid-data-for-type-numeric-data-type-mapping-for-oracle-publishers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Maximum Columns per Primary Key &#8211; Fix : Error : Msg 1904, Level 16, The index on table has column names in index key list. The maximum limit for index or statistics key column list is 16</title>
		<link>http://blog.sqlauthority.com/2009/04/08/sql-server-maximum-columns-per-primary-key-fix-error-msg-1904-level-16-the-index-on-table-has-column-names-in-index-key-list-the-maximum-limit-for-index-or-statistics-key-column-list-is-16/</link>
		<comments>http://blog.sqlauthority.com/2009/04/08/sql-server-maximum-columns-per-primary-key-fix-error-msg-1904-level-16-the-index-on-table-has-column-names-in-index-key-list-the-maximum-limit-for-index-or-statistics-key-column-list-is-16/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 01:30:03 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Index]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4246</guid>
		<description><![CDATA[My present article covers two fundamental questions.
1) What is the maximum number of columns included in Primary Key Index/Constraint?
2) What is fix/solution for the following error:
Msg 1904, Level 16, State 1, Line 1
The index &#8221; on table &#8216;dbo.Table_2&#8242; has 17 column names in index key list. The maximum limit for index or statistics key column [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4246&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">My present article covers two fundamental questions.</p>
<p style="text-align:justify;"><strong>1) What is the maximum number of columns included in Primary Key Index/Constraint?<br />
2) What is fix/solution for the following error:</strong><br />
<span style="color:#ff0000;">Msg 1904, Level 16, State 1, Line 1<br />
The index &#8221; on table &#8216;dbo.Table_2&#8242; has 17 column names in index key list. The maximum limit for index or statistics key column list is 16.</span></p>
<p style="text-align:justify;">The same error surfaces when example is created using SSMS.<br />
<img class="alignnone" src="http://www.pinaldave.com/bimg/pk161.jpg" alt="" width="498" height="646" />
</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong>Fix/Solution/Workaround:</strong><br />
Maximum columns per Primary Key Index is 16. In fact, 16 is the limit for columns per Foreign Key and Index Key.<br />
You cannot have more than 16 columns per Index Key, Primary Key or Foreign Key. So, reduce the columns in those column to less than or equal to 16 columns.
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/pk16.jpg" alt="" width="355" height="431" /></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Error Messages, SQL Index, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQLServer, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4246&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/08/sql-server-maximum-columns-per-primary-key-fix-error-msg-1904-level-16-the-index-on-table-has-column-names-in-index-key-list-the-maximum-limit-for-index-or-statistics-key-column-list-is-16/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/pk161.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/pk16.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; 2008 &#8211; IntelliSense Does Not Work &#8211; Enable IntelliSense</title>
		<link>http://blog.sqlauthority.com/2009/03/31/sql-server-2008-intellisense-does-not-work-enable-intellisense/</link>
		<comments>http://blog.sqlauthority.com/2009/03/31/sql-server-2008-intellisense-does-not-work-enable-intellisense/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 01:30:04 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Add-On]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[IntelliSense]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4106</guid>
		<description><![CDATA[While I was working with SQL Server 2008 IntelliSense, I realized that it was not functioning as I expected. Even after I had enabled IntelliSense it was still not opening any suggestions at all. After a while, I figured out some vital information regarding how to make sure IntelliSense smoothly works all the time without [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4106&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">While I was working with SQL Server 2008 IntelliSense, I realized that it was not functioning as I expected. Even after I had enabled IntelliSense it was still not opening any suggestions at all. After a while, I figured out some vital information regarding how to make sure IntelliSense smoothly works all the time without you giving any trouble.</p>
<p>Given below are four different ways through which you can enable IntelliSense.</p>
<p style="text-align:justify;"><strong>1) Make sure you are connected to SQL Server 2008 Edition. </strong><br />
IntelliSense does not work with the previous versions of SQL Server.
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/int1.jpg" alt="" width="449" height="195" /></p>
<p style="text-align:justify;"><strong>2) IntelliSense should be enabled.<br />
</strong>There are two ways to verify whether IntelliSense is enabled or not.<br />
a) From Toolbar
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/int2b.jpg" alt="" width="500" height="242" /></p>
<p>b) Go to Tools &gt;&gt; Options &gt;&gt; Text Editor &gt;&gt; Transact-SQL &gt;&gt; IntelliSense</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/int2a.jpg" alt="" width="493" height="465" /></p>
<p style="text-align:justify;"><strong>3) IntelliSense should be refreshed with the latest changes in database. </strong><br />
a) Press CTRL+SHIFT+R<br />
b) Go to Edit &gt;&gt; IntelliSense &gt;&gt; Refresh Local Cache
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/int3.jpg" alt="" width="476" height="464" /></p>
<p style="text-align:justify;"><strong>4) Go to Tools &gt;&gt; Options &gt;&gt; Text Editor &gt;&gt; Transact-SQL &gt;&gt; General &gt;&gt; IntelliSense</strong><br />
Select Auto List Members and Check Parameter Information.
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/int4.jpg" alt="" width="500" height="289" /></p>
<p>Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Add-On, SQL Authority, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, SQL Utility, SQLServer, T SQL, Technology Tagged: IntelliSense <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4106&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/03/31/sql-server-2008-intellisense-does-not-work-enable-intellisense/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/int1.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/int2b.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/int2a.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/int3.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/int4.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Fix : Error : Msg 2714, Level 16, State 6 &#8211; There is already an object named &#8216;#temp&#8217; in the database</title>
		<link>http://blog.sqlauthority.com/2009/03/29/sql-server-fix-error-msg-2714-level-16-state-6-there-is-already-an-object-named-temp-in-the-database/</link>
		<comments>http://blog.sqlauthority.com/2009/03/29/sql-server-fix-error-msg-2714-level-16-state-6-there-is-already-an-object-named-temp-in-the-database/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 01:30:09 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL TempDB]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4070</guid>
		<description><![CDATA[Recently, one of my regular blog readers emailed me with a question concerning the following error:
Msg 2714, Level 16, State 6, Line 4
There is already an object named &#8216;#temp&#8217; in the database.

This reader has been encountering the above-mentioned error, and he is curious to know the reason behind this. Here’s Rakesh&#8217;s email.
Hi Pinal,
I&#8217;m a  regular [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4070&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Recently, one of my regular blog readers emailed me with a question concerning the following error:</p>
<p style="text-align:justify;"><span style="color:#ff6666;">Msg 2714, Level 16, State 6, Line 4</span><br />
<span style="color:#ff6666;">There is already an object named &#8216;#temp&#8217; in the database.</span>
</p>
<p style="text-align:justify;">This reader has been encountering the above-mentioned error, and he is curious to know the reason behind this. Here’s Rakesh&#8217;s email.</p>
<p style="padding-left:60px;text-align:justify;"><em>Hi Pinal,<br />
I&#8217;m a  regular visitor to your blog and I thoroughly enjoy your articles and especially the way you solve your readers’ queries. I work as a junior SQL developer in Austin. Today, when I started to create a TSQL application, I detected an interesting scenario.</em></p>
<p><em>It is a common practice for many of us to use the following statements to create a new object.</em><em>But when I used local temporary table, i.e.</em></p>
<p><em></em><code style="font-size:12px;"><span style="color:blue;">IF </span><span style="color:gray;">EXISTS (<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.tables<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">name</span><span style="color:blue;">=</span><span style="color:red;">'#temp'</span><span style="color:gray;">)<br />
</span><span style="color:blue;">DROP TABLE </span><span style="color:#434343;">#temp<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:#434343;">#temp</span><span style="color:gray;">(</span><span style="color:black;">id </span><span style="color:blue;">INT </span><span style="color:gray;">) </span></code><em></em>
</p>
<p style="padding-left:60px;text-align:justify;"><em>An error was displayed as:  <span style="color:#ff6666;">Msg 2714, Level 16, State 6, Line 4</span><br />
<span style="color:#ff6666;">There is already an object named &#8216;#temp&#8217; in the database.</span></em></p>
<p style="padding-left:60px;text-align:justify;"><span style="color:#330000;"><em>On running the statement </em></span><em><br />
</em><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:gray;">* </span><span style="color:blue;"><br />
FROM </span><span style="color:black;">sys.tables </span></code> <em><span style="color:#ff6666;"><br />
</span><br />
<span style="color:#ff6666;"><span style="color:#330000;">I see the object under name column in sys.tables as , </span><br />
<span style="color:#330000;">#temp_______________________________________________________________________________________________________________0000000002E1</span></span></em>
</p>
<p style="padding-left:60px;text-align:justify;"><span style="color:#330000;"><em>As far as I can discern, my SQL Server is writing the above entry instead of #temp. Therefore,  I&#8217;m getting the error as table already exists &#8211; There is already an object named &#8216;#temp&#8217; in the database. Can you please explain me why this happens to local temporary table?</em></span></p>
<p><em>Thanks and Sincerely Yours,<br />
Rakesh </em><em></em></p>
<p style="text-align:justify;">Rakesh, your question is noteworthy. Let’s look at the solution first and then we will look into the behavior.</p>
<p style="text-align:justify;"><strong>Fix/Workaround/Solution:</strong></p>
<p style="text-align:justify;">In case of Temporary tables, run following T-SQL. Please note do not run this for any physical tables. Additionally, please note to replace <code style="font-size:12px;"><span style="color:red;">#temp </span></code>with <strong>yourtemptable</strong> name.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">IF </span><span style="color:gray;">EXISTS (<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.tables<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">name</span><span style="color:blue;"> LIKE </span><span style="color:red;">'#temp%'</span><span style="color:gray;">)<br />
</span><span style="color:blue;">DROP TABLE </span><span style="color:#434343;">#temp<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:#434343;">#temp</span><span style="color:gray;">(</span><span style="color:black;">id </span><span style="color:blue;">INT </span><span style="color:gray;">) </span></code><em><br />
</em></p>
<p style="text-align:justify;">However, make sure not to run this for physical tables. Additionally, please note to replace #temp with yourtemptable name.<br />
Local temp tables can be created using hash (#) sign prior to table name. They are visible only in current connection.. When connection is dropped its scope ends as well. It is possible to create and use local temp table with the same name simultaneously in two different connections. In order to allow this behavior SQL Server suffixes name of the local temp table with incremental hex digit, which is reset when SQL Services are restarted. It is because of this reason that when looking into sys table it has to compared using LIKE and &#8216;%&#8217;.
</p>
<p style="text-align:justify;">Let me create few temporary tables, and then we will observe how hex numbers are suffixed to local temporary tables.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">BEGIN<br />
IF </span><span style="color:gray;">EXISTS (<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.tables<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">name </span><span style="color:gray;">LIKE </span><span style="color:red;">'#temp%'</span><span style="color:gray;">)<br />
</span><span style="color:blue;">DROP TABLE </span><span style="color:#434343;">#temp<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:#434343;">#temp</span><span style="color:gray;">(</span><span style="color:black;">id </span><span style="color:blue;">INT </span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">name<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.tables<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">name </span><span style="color:gray;">LIKE </span><span style="color:red;">'%#temp%'<br />
</span><span style="color:blue;">END<br />
</span><span style="color:black;">GO 10 </span></code>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/hextemp.jpg" alt="" width="500" height="864" /></p>
<p style="text-align:justify;">Rakesh and my other readers, I encourage all of you to send me interesting and challenging questions that intrigue you as well as observations that you would like to share. As always, I will try my best to answer all your questions. Also, do send me your valuable opinions regarding this article.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, Readers Question, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQLServer, T SQL, Technology Tagged: SQL TempDB <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4070/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4070&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/03/29/sql-server-fix-error-msg-2714-level-16-state-6-there-is-already-an-object-named-temp-in-the-database/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/hextemp.jpg" medium="image" />
	</item>
	</channel>
</rss>