<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Guganeshan Thambiraja&#039;s blog &#187; Troubleshooting</title>
	<atom:link href="http://guganeshan.com/blog/category/troubleshooting/feed" rel="self" type="application/rss+xml" />
	<link>http://guganeshan.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 29 Jan 2012 19:42:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Strange characters in Visual Studio code editor</title>
		<link>http://guganeshan.com/blog/strange-characters-in-visual-studio-code-editor.html</link>
		<comments>http://guganeshan.com/blog/strange-characters-in-visual-studio-code-editor.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 07:33:44 +0000</pubDate>
		<dc:creator>Guganeshan.T</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://guganeshan.com/blog/?p=75</guid>
		<description><![CDATA[Do you see any strange dots and/or arrows in the Visual Studio code editor and have no idea how you turned them on? (check the screen-shot) These represent the &#8220;white space&#8221; characters such as the space, tab, carriage return etc. How to turn it on or off: You can press the key combination CTRL+E, S [...]]]></description>
			<content:encoded><![CDATA[<p>Do you see any strange <strong>dots and/or arrows</strong> in the Visual Studio code editor and have no idea how you turned them on? (check the screen-shot)</p>
<p><span id="more-75"></span></p>
<p><img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" src="http://guganeshan.com/blog/wp-content/uploads/2009/12/whitespace-characters-in-visual-studio-code-editor.png" border="0" alt="whitespace characters in visual studio code editor" /></p>
<p>These represent the &#8220;<strong>white space</strong>&#8221; characters such as the space, tab, carriage return etc.</p>
<p><strong>How to turn it on or off:</strong></p>
<ol>
<li>You can press the key combination <strong><span style="color: #800000;">CTRL+E, S</span></strong> (can be different if you have modified). OR</li>
<li>Select: <strong><span style="color: #800000;">Edit » Advanced » View White Space</span></strong></li>
</ol>
<p>It&#8217;s actually a helpful feature to examine a code file to see what the white space consists of (tabs or spaces). But it can be annoying to keep the feature always turned on.</p>
<p>It has happened at least 5 or more times for me and I always forget what I did the last time to turn it off <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif" alt="Happy" /></p>
<p>I decided to post about it so that someone (including me!) can find this and remember what to do to turn it off (or on).</p>
<p>Hope this helps</p>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://guganeshan.com/blog/strange-characters-in-visual-studio-code-editor.html' addthis:title='Strange characters in Visual Studio code editor '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://guganeshan.com/blog/strange-characters-in-visual-studio-code-editor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scripts generated from SQL Server 2005 Management Studio are incompatible with SQL Server 2000</title>
		<link>http://guganeshan.com/blog/scripts-generated-from-sql-server-2005-management-studio-are-incompatible-with-sql-server-2000.html</link>
		<comments>http://guganeshan.com/blog/scripts-generated-from-sql-server-2005-management-studio-are-incompatible-with-sql-server-2000.html#comments</comments>
		<pubDate>Wed, 27 May 2009 07:53:00 +0000</pubDate>
		<dc:creator>Guganeshan.T</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Sql Server]]></category>

		<guid isPermaLink="false">http://guganeshan.com/blog/?p=15</guid>
		<description><![CDATA[If you ever generated scripts using SQL Server 2005 using Management Studio by right-clicking on table names, and tried executing it in SQL Server 2000 (using Query Analyzer), you would have encountered this problem&#8230; The Query Analyzer would report syntax errors. Reproducing the problem: Right-click on a table and generate a CREATE TABLE script from [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever generated scripts using SQL Server 2005 using Management Studio by right-clicking on table names, and tried executing it in SQL Server 2000 (using Query Analyzer), you would have encountered this problem&#8230; The Query Analyzer would report syntax errors.<span id="more-15"></span></p>
<p align="center"><strong><span style="text-decoration: underline;"><span style="color:#000000;">Reproducing the problem:</span></span></strong></p>
<p><strong>Right-click on a table and generate a CREATE TABLE script from SQL Server 2005 Management Studio:</strong></p>
<p><a href="http://lh6.ggpht.com/_UWvYGQG7P2Y/Sh03iHy4u1I/AAAAAAAAAHU/geW9V34Ewts/s1600-h/createscriptsqlms14.png"><img style="border-width: 0px;" src="http://lh3.ggpht.com/_UWvYGQG7P2Y/Sh03kGx1CyI/AAAAAAAAAHY/to0aX6QJBPo/createscriptsqlms_thumb10.png?imgmax=800" border="0" alt="create script sqlms" width="522" height="252" /></a></p>
<p><strong>Paste the generated script in SQL Server 2000, Query Analyzer and verify the syntax by clicking on the &#8220;Parse Query&#8221; tool button or press CTRL + F5:</strong></p>
<p><a href="http://lh5.ggpht.com/_UWvYGQG7P2Y/Sh03lBI7uFI/AAAAAAAAAHc/jE4V80kvl7k/s1600-h/verifysyntax5.png"><img style="border-width: 0px;" src="http://lh5.ggpht.com/_UWvYGQG7P2Y/Sh03maI-5dI/AAAAAAAAAHg/ah087QwYTIU/verifysyntax_thumb3.png?imgmax=800" border="0" alt="verify syntax" width="183" height="49" /></a></p>
<p><strong>Query Analyzer would report syntax errors:</strong></p>
<p>You will get a load of &#8220;Incorrect syntax near &#8216;(&#8216; &#8221; or similar errors depending on the number of table queries you generated.</p>
<p><a href="http://lh3.ggpht.com/_UWvYGQG7P2Y/Sh03nXIMcvI/AAAAAAAAAHk/6JxCFzBMFJs/s1600-h/QueryAnalyzerSynaxErrors5.png"><img style="border-width: 0px;" src="http://lh6.ggpht.com/_UWvYGQG7P2Y/Sh03okSCWQI/AAAAAAAAAHo/idpmKz7w8SI/QueryAnalyzerSynaxErrors_thumb3.png?imgmax=800" border="0" alt="QueryAnalyzerSynaxErrors" width="372" height="103" /></a></p>
<p align="center"><strong><span style="color:#000000;"> </span></strong></p>
<p align="center"><strong><span style="color:#000000;"><span style="text-decoration: underline;">Solution for people who manage the target SQL Server 2000 database using SQL Server 2005 Management Studio</span></span></strong></p>
<p>I found this solution when I Googled: <a title="http://www.waynejohn.com/post/2008/03/21/Scripting-a-SQL-2000-Database-from-SQL-2005.aspx" href="http://www.waynejohn.com/post/2008/03/21/Scripting-a-SQL-2000-Database-from-SQL-2005.aspx">http://www.waynejohn.com/post/2008/03/21/Scripting-a-SQL-2000-Database-from-SQL-2005.aspx</a></p>
<p>But note that Wayne John, the author of the blog says he couldn&#8217;t find the &#8220;Scripting&#8221; section in the &#8220;<strong>Tools &#8211;&gt; Options</strong>&#8221; dialog box in one of his systems, where he had only SQL 2005 installed!</p>
<p align="center"><strong><span style="text-decoration: underline;"><span style="color:#000000;">The solution for people who don&#8217;t have SQL Server Management Studio installed at the target to manage the SQL Server 2000</span></span></strong></p>
<p>So If you are like me&#8230; using SQL Server 2000 + Query Analyzer at the target server while the source is a SQL Server 2005 + Management Studio, you can use the good old <a href="http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&amp;displaylang=en" target="_blank"><strong>SQL Server Database Publishing Wizard</strong></a><strong> </strong>to export schema.</p>
<p>The queries generated using the SQL Server Database Publishing Wizard worked perfectly with SQL Server 2000&#8242;s Query Analyzer (though a query for even a single table would look scary!).</p>
<p>But make sure you select &#8220;SQL Server 2000&#8243; as the value for the &#8220;Script for target database&#8221; property in the &#8220;Select Publishing Options&#8221; in the wizard.</p>
<p><a href="http://lh5.ggpht.com/_UWvYGQG7P2Y/Sh03p_G08iI/AAAAAAAAAHs/m-6Q3_Z86EU/s1600-h/scriptfortargetdatabase5.png"><img style="border-width: 0px;" src="http://lh3.ggpht.com/_UWvYGQG7P2Y/Sh03rY8g_6I/AAAAAAAAAHw/QDvvPxrQGa0/scriptfortargetdatabase_thumb3.png?imgmax=800" border="0" alt="script for target database" width="354" height="295" /></a></p>
<p><span style="color:#ff0000;">NOTE: Double-check the &#8220;Drop existing objects in script&#8221; option to make sure it has &#8220;false&#8221; (unless you really want to drop objects)</span></p>
<p>There are plenty of other tools out there too, for example from <a href="http://www.red-gate.com/" target="_blank">Red Gate Software</a>. But as a free piece software <a href="http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&amp;displaylang=en" target="_blank">SQL Server Database Publishing Wizard</a> offers enough for my needs of exporting schema and data from/to SQL Server 2005 and SQL Server 2000 databases.</p>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://guganeshan.com/blog/scripts-generated-from-sql-server-2005-management-studio-are-incompatible-with-sql-server-2000.html' addthis:title='Scripts generated from SQL Server 2005 Management Studio are incompatible with SQL Server 2000 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://guganeshan.com/blog/scripts-generated-from-sql-server-2005-management-studio-are-incompatible-with-sql-server-2000.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resetting asp.net membership password when the user has forgotton the answer for the security question!</title>
		<link>http://guganeshan.com/blog/resetting-asp-net-membership-password-when-the-user-has-forgotton-the-answer-for-the-security-question.html</link>
		<comments>http://guganeshan.com/blog/resetting-asp-net-membership-password-when-the-user-has-forgotton-the-answer-for-the-security-question.html#comments</comments>
		<pubDate>Fri, 16 May 2008 03:41:00 +0000</pubDate>
		<dc:creator>Guganeshan.T</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://guganeshan.com/blog/?p=7</guid>
		<description><![CDATA[Here is the scenario&#8230; a web application has been implemented with the standard user management features&#8230; can create new users, the admin approves the users, can recover passwords and change security question + answer bla bla bla What happens if a user forgets the password?&#8230; simple, just goto the password recovery page and answer the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the scenario&#8230; a web application has been implemented with the standard user management features&#8230; can create new users, the admin approves the users, can recover passwords and change security question + answer bla bla bla</p>
<p>What happens if a user forgets the password?&#8230; simple, just goto the password recovery page and answer the security question and get the new password in the email.</p>
<p>But what if he/she doesn&#8217;t remember the answer for the security question???<span id="more-7"></span></p>
<p>Well, this is what happened exactly today. Although there were some solutions on the net, they required you to create a temporary Membership provider in the config etc.. which I didn&#8217;t like doing.</p>
<p>But for my joy, I found <a href="http://geekswithblogs.net/TimH/archive/2005/09/28/55414.aspx">this post</a> that gave me the idea. Although it is not a clean solution to the problem, it was what I wanted for the urgent need of resetting the password (since this won&#8217;t happen too often)</p>
<p>The <a href="http://geekswithblogs.net/TimH/archive/2005/09/28/55414.aspx">post</a> says that you have to replace the password hash and salt with the password hash and salt of a user whose password you know! What a simple idea. Well, whose password do I know?? mine of course!</p>
<p>So this is what I did:</p>
<ol>
<li>Changed my password to something like password_999</li>
<li>Replaced the user&#8217;s (who doesn&#8217;t remember the security answer) password hash and salt with my hash and salt</li>
<li>Changed my password back</li>
<li>Gave him &#8216;password_999&#8242; as the password, which he obviously will have to change once he logged in</li>
</ol>
<p>A more hassle-free solution would be to always have a dummy user account in the Membership database, which we can keep locked or as unapproved. And to make things even simpler, we can deploy an admin&#8217;s page that can accept the user name and replace the password hash and salt (copied from the dummy user account)&#8230;  thanks to <a href="http://geekswithblogs.net/TimH/Default.aspx">Tim Huffam</a></p>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://guganeshan.com/blog/resetting-asp-net-membership-password-when-the-user-has-forgotton-the-answer-for-the-security-question.html' addthis:title='Resetting asp.net membership password when the user has forgotton the answer for the security question! '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://guganeshan.com/blog/resetting-asp-net-membership-password-when-the-user-has-forgotton-the-answer-for-the-security-question.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error message doesn&#8217;t make sense? check the service packs</title>
		<link>http://guganeshan.com/blog/error-message-doesnt-make-sense-check-the-service-packs.html</link>
		<comments>http://guganeshan.com/blog/error-message-doesnt-make-sense-check-the-service-packs.html#comments</comments>
		<pubDate>Wed, 14 May 2008 01:29:00 +0000</pubDate>
		<dc:creator>Guganeshan.T</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://guganeshan.com/blog/?p=6</guid>
		<description><![CDATA[Just the other day, the guys told me &#8220;This is weird, the same form works in one PC and throws an exception in another&#8221;. We thought it is something to do with the default culture set in the PC (it was dutch). But the culprit seemed to be the SQL query used. But how come [...]]]></description>
			<content:encoded><![CDATA[<p>Just the other day, the guys told me &#8220;This is weird, the same form works in one PC and throws an exception in another&#8221;.</p>
<p>We thought it is something to do with the default culture set in the PC (it was dutch). But the culprit seemed to be the SQL query used. But how come the same SQL query with the same database works in one PC + SQL server and throws an exception in another PC + SQL server? (the databases are identical)<span id="more-6"></span></p>
<p>Since there was no difference in the application, query, and database the only thing that was different is the SQL server. I tried the query in query analyzer and saw that the following exception was thrown against only one SQL server:<br />
<span id="ctl00_ContentPlaceHolder1_MicrosoftKBArticle"> </span></p>
<blockquote><p>Server: Msg 8623, Level 16, State 1, Line 1 Internal Query Processor Error:<br />
The query processor could not produce a query plan. Contact your primary     support provider for more information.</p></blockquote>
<p>Even though I found some Microsoft knowledge base results when Googled, unfortunately the KB articles are not showing up in either Firefox or IE (its like that recently, didn&#8217;t check on it yet). Finally found <a href="http://kbalertz.com/816440/Error-Raised-Server-Compiles-Complex-Query.aspx">this article</a> in KBAlerts.com that shed some light on the problem&#8230; missing service pack!</p>
<p>Moral of the experience? Google it first!  <img src='http://guganeshan.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://guganeshan.com/blog/error-message-doesnt-make-sense-check-the-service-packs.html' addthis:title='Error message doesn&#8217;t make sense? check the service packs '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://guganeshan.com/blog/error-message-doesnt-make-sense-check-the-service-packs.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

