<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblogcasts.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Madhivanan - All Comments</title><link>http://sqlblogcasts.com/blogs/madhivanan/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: Import/Export to Excel</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/import-export-to-excel.aspx#10410</link><pubDate>Mon, 19 May 2008 07:41:55 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:10410</guid><dc:creator>Madhivanan</dc:creator><description>&lt;p&gt;mquinn64,&lt;/p&gt;
&lt;p&gt;Make sure the number of columns in excel sheet is same as the table&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=10410" width="1" height="1"&gt;</description></item><item><title>re: Import/Export to Excel</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/import-export-to-excel.aspx#10409</link><pubDate>Mon, 19 May 2008 02:46:58 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:10409</guid><dc:creator>mquinn64</dc:creator><description>&lt;p&gt;in using the export to Excel script I get the following message&lt;/p&gt;
&lt;p&gt;insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0', &lt;/p&gt;
&lt;p&gt;'Excel 8.0;Database=C:\testing.xls;HDR=YES', &lt;/p&gt;
&lt;p&gt;'SELECT * FROM [Sheet1$]')&lt;/p&gt;
&lt;p&gt;select * from cdbLink&lt;/p&gt;
&lt;p&gt;WHERE (((cdbLink.extObjType)=11 Or (cdbLink.extObjType)=-1))&lt;/p&gt;
&lt;p&gt;error message&lt;/p&gt;
&lt;p&gt;Server: Msg 213, Level 16, State 5, Line 1&lt;/p&gt;
&lt;p&gt;Insert Error: Column name or number of supplied values does not match table definition.&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=10409" width="1" height="1"&gt;</description></item><item><title>Set based splitting of delimited strings to columns</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2008/03/15/splitting-csv-to-columns.aspx#10275</link><pubDate>Tue, 01 Apr 2008 12:23:29 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:10275</guid><dc:creator>SimonS Blog on SQL Server Stuff</dc:creator><description>&lt;p&gt;I recently presented on using CLR in SQL at DevWeek and commented on how TSQL Udfs just don&amp;amp;#39;t perform&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=10275" width="1" height="1"&gt;</description></item><item><title>re: Splitting csv to columns</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2008/03/15/splitting-csv-to-columns.aspx#9507</link><pubDate>Mon, 17 Mar 2008 14:31:07 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:9507</guid><dc:creator>Madhivanan</dc:creator><description>&lt;p&gt;Hi Hugo&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;I should have specified about SQL Injection &lt;img src="http://sqlblogcasts.com/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=9507" width="1" height="1"&gt;</description></item><item><title>re: Splitting csv to columns</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2008/03/15/splitting-csv-to-columns.aspx#9497</link><pubDate>Mon, 17 Mar 2008 08:47:04 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:9497</guid><dc:creator>Hugo Kornelis</dc:creator><description>&lt;p&gt;But remember that this is a VERY dangerous technique, since you're opening yourself wide to SQL injection. As this slightly modified version proves:&lt;/p&gt;
&lt;p&gt;declare @s varchar(2000),@data varchar(2000)&lt;/p&gt;
&lt;p&gt;select @s='this,is,SQL injection''; drop table HopeThisDoesntReallyExist; --'&lt;/p&gt;
&lt;p&gt;select @data=''''+replace(@s,',',''',''')+'''' &lt;/p&gt;
&lt;p&gt;exec('select '+@data)&lt;/p&gt;
&lt;p&gt;Best, Hugo&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=9497" width="1" height="1"&gt;</description></item><item><title>re: Find Nth Maximum value</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx#9379</link><pubDate>Sat, 15 Mar 2008 09:30:31 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:9379</guid><dc:creator>Madhivanan</dc:creator><description>&lt;p&gt;Muthukrishnan,&lt;/p&gt;
&lt;p&gt;What is the datatype of the column?&lt;/p&gt;
&lt;p&gt;Can you try the example I have given?&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=9379" width="1" height="1"&gt;</description></item><item><title>re: Find Nth Maximum value</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx#8511</link><pubDate>Mon, 03 Mar 2008 12:55:43 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:8511</guid><dc:creator>Muthukrishnan</dc:creator><description>&lt;p&gt;1)Use Inner Join &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this one is not working properly,I have checked it,but not working properly.if the value (salary) is same digits(100,200,300,400) of all rows &amp;nbsp;mean its working fine,other wise the value(salary) is &amp;nbsp;different digits(1000,200,30000,450) mean here not working fine.&lt;/p&gt;
&lt;p&gt;Can you please check it and reply me.&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Muthukrishnan.S&lt;/p&gt;&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=8511" width="1" height="1"&gt;</description></item><item><title>re: Find Nth Maximum value</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx#7934</link><pubDate>Wed, 27 Feb 2008 09:58:15 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:7934</guid><dc:creator>Madhivanan</dc:creator><description>&lt;p&gt;Hi Danasegarane&lt;/p&gt;
&lt;p&gt;It is the alias name for the derived table&lt;/p&gt;
&lt;p&gt;The query select top 5 num from number order by num desc is a derived table from which data is retreived using min function&lt;/p&gt;&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=7934" width="1" height="1"&gt;</description></item><item><title>re: Find Nth Maximum value</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx#7932</link><pubDate>Wed, 27 Feb 2008 09:49:55 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:7932</guid><dc:creator>Danasegarane</dc:creator><description>&lt;p&gt;Hi Madhivanan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for the excellent post.&lt;/p&gt;
&lt;p&gt;Can you pls explain the meaning of T in this query ?&lt;/p&gt;
&lt;p&gt;Select min(num) from (select top 5 num from number order by num desc) T&lt;/p&gt;&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=7932" width="1" height="1"&gt;</description></item><item><title>re: Extract only numbers from a String</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/12/18/extract-only-numbers-from-a-string.aspx#7925</link><pubDate>Wed, 27 Feb 2008 06:39:43 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:7925</guid><dc:creator>Madhivanan</dc:creator><description>&lt;p&gt;Hi Jeff&lt;/p&gt;
&lt;p&gt;Yes it matters if your DB is case sensitive &lt;img src="http://sqlblogcasts.com/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=7925" width="1" height="1"&gt;</description></item><item><title>re: Extract only numbers from a String</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/12/18/extract-only-numbers-from-a-string.aspx#7890</link><pubDate>Tue, 26 Feb 2008 19:37:15 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:7890</guid><dc:creator>Jeff M</dc:creator><description>&lt;p&gt;Thanks for pointing me at this method! &amp;nbsp;Btw, the master.dbo.spt_values.type on my system is actually 'P' ( uppercase P ).&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=7890" width="1" height="1"&gt;</description></item><item><title>re: Understanding Single quotes</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2008/02/19/understanding-single-quotes.aspx#7801</link><pubDate>Mon, 25 Feb 2008 12:33:46 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:7801</guid><dc:creator>Jayasimha M N</dc:creator><description>&lt;p&gt;nice article thank u Madhivanan&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=7801" width="1" height="1"&gt;</description></item><item><title>SQL SERVER - How to Escape Single Quotes - Fix: Error: 105 Unclosed quotation mark after the character string &amp;#8216; &amp;laquo; Journey to SQL Authority with Pinal Dave</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2008/02/19/understanding-single-quotes.aspx#7546</link><pubDate>Wed, 20 Feb 2008 06:50:06 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:7546</guid><dc:creator>SQL SERVER - How to Escape Single Quotes - Fix: Error: 105 Unclosed quotation mark after the character string ‘ « Journey to SQL Authority with Pinal Dave</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/"&gt;http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=7546" width="1" height="1"&gt;</description></item><item><title>re: Handle ISDATE() with care</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/09/24/handle-isdate-with-care.aspx#7515</link><pubDate>Tue, 19 Feb 2008 14:25:13 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:7515</guid><dc:creator>Madhivanan</dc:creator><description>&lt;p&gt;Harsh&lt;/p&gt;
&lt;p&gt;It depends on the format you stored&lt;/p&gt;
&lt;p&gt;Can you give me some examples?&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=7515" width="1" height="1"&gt;</description></item><item><title>re: Handle ISDATE() with care</title><link>http://sqlblogcasts.com/blogs/madhivanan/archive/2007/09/24/handle-isdate-with-care.aspx#7506</link><pubDate>Tue, 19 Feb 2008 11:14:16 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:7506</guid><dc:creator>Harsh Athalye</dc:creator><description>&lt;p&gt;What about the separator characters like '/'? &lt;/p&gt;
&lt;p&gt;In that case this validation wouldn't be sufficient.&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=7506" width="1" height="1"&gt;</description></item></channel></rss>