﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by bitbucket  / PARSENAME / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 15:39:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>[quote][b]marlon.seton (11/19/2012)[/b][hr]Now is somebody going to tell me function a exists with this capability?  If so, I suggest PARSENAME is redundant as its functionality is already present.  If not, why make something as restricted as PARSENAME?[/quote]There is no such function. The limited functionality of PARSENAME is because it is actually intended for a very specific use: to parse tablenames. Since they can use one, two, three or four parts (**), divided by dots, that's what PARSENAME supports.(**) In case you're not aware: just the tablename, prefixed by schema (schema.table), in another database on the same instance (database.schema.table), or on another instance using a linked server (server.database.schema.table).</description><pubDate>Mon, 19 Nov 2012 10:23:06 GMT</pubDate><dc:creator>Hugo Kornelis</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>[quote][b]Michael Riemer (10/25/2012)[/b][hr]Another great question to learn from - thanks. I had heard of the function, but never knew what it did.[/quote]I hadn't heard of it (so naturally didn't know what it did).  Now I've heard of it and know what it does but I'm struggling to think of a situation where I'd need to use it.  If it was a general parser that took a string as a parameter and parsed it by a character that was also a parameter, e.g.SELECT PARSESTRING('Mary had a little lamb', 4, ' ')returns 'little' as the fourth value from the start delimited by ' ' with PARSESTRING being the name of this (as far as I know) fictitious function,I could see a use for that.  Now is somebody going to tell me function a exists with this capability?  If so, I suggest PARSENAME is redundant as its functionality is already present.  If not, why make something as restricted as PARSENAME?Edited for grammar</description><pubDate>Mon, 19 Nov 2012 09:15:15 GMT</pubDate><dc:creator>marlon.seton</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Good question. We have used the function in proc but I always face issue about what would be the order - left to right or right to left.. :(</description><pubDate>Mon, 05 Nov 2012 23:55:35 GMT</pubDate><dc:creator>Hardy21</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Good Function Related Question!Thanks</description><pubDate>Mon, 29 Oct 2012 14:17:55 GMT</pubDate><dc:creator>asifkareem</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Awsome question!  Learned something new and that always brightens my day!</description><pubDate>Mon, 29 Oct 2012 10:57:50 GMT</pubDate><dc:creator>Kenneth.Fisher</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thanks.</description><pubDate>Mon, 29 Oct 2012 08:48:53 GMT</pubDate><dc:creator>KarenM</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>[quote][b]Hugo Kornelis (10/27/2012)[/b][hr]... to access the elements of a dot-seperated string. ...[/quote]ahhh..... now I am relieved...Thank you Hugo. :cool:</description><pubDate>Sun, 28 Oct 2012 02:40:02 GMT</pubDate><dc:creator>Raghavendra Mudugal</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Definitely a good question.I regularly use PARSENAME to access the elements of a dot-seperated string. And yet, I still always have to check the documentation to recall which part each number refes to; I keep getting confused about counting from the left or the right, and counting from 1 or 0.</description><pubDate>Sat, 27 Oct 2012 05:07:38 GMT</pubDate><dc:creator>Hugo Kornelis</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Nice easy question.  Thanks, Ron.</description><pubDate>Fri, 26 Oct 2012 07:39:37 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thanks Ron.</description><pubDate>Thu, 25 Oct 2012 21:13:21 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>[quote][b]Revenant (10/25/2012)[/b][hr]Thanks for a nice question. BTW, reversal of the order is a frequent pitfall for people who are parsing IPs and do not read the doc carefully enough.[/quote]Yes, it is a nice question.Not realising that 1 delivers the LS portion (ie right hand end) is maybe something that intelites suffer from?  The way I always, in the days when reading core dumps was a common passtime, had to remind my brain to work upside down when looking at an x86 core dump?  I always found it hard to remember that hex 00FF meant not 255 but 65280, so of course I have no difficulty at all in understanding the order in this function!</description><pubDate>Thu, 25 Oct 2012 20:51:34 GMT</pubDate><dc:creator>L' Eomot Inversé</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Seems like a nearly useless function, but at least I know about it now. It seems amazing to me that they can put this stuff in but leave out common functions like SPLIT, LPAD, and RPAD.</description><pubDate>Thu, 25 Oct 2012 12:26:31 GMT</pubDate><dc:creator>Meow Now</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Interesting function. Not sure when I would use it but good to know anyways. Thanks for the question!</description><pubDate>Thu, 25 Oct 2012 11:43:53 GMT</pubDate><dc:creator>KWymore</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thanks for a nice question. BTW, reversal of the order is a frequent pitfall for people who are parsing IPs and do not read the doc carefully enough.</description><pubDate>Thu, 25 Oct 2012 10:44:51 GMT</pubDate><dc:creator>Revenant</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>[quote][b]Koen Verbeeck (10/25/2012)[/b][hr]Great question about a function I didn't even know it existed :-D[/quote]I knew it existed, but never had much use for it.  A guy who I help with SQL problems on occasion was using it to split a manager heirarchy string I had built.Still personally don't have much use for it.  And one day I'll get him to use Jeff's Delimited8k split function I have available instead, but at least I knew what this was.</description><pubDate>Thu, 25 Oct 2012 08:00:02 GMT</pubDate><dc:creator>mtassin</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Interesting question.  I did run into this function once before when looking for a simple way to parse a short delimited string.  Unfortunately my string had five elements.  :(</description><pubDate>Thu, 25 Oct 2012 07:24:57 GMT</pubDate><dc:creator>sestell1</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thank you for the great question. I learned something new today and I already can think of a few applications I can use it with. :-)</description><pubDate>Thu, 25 Oct 2012 06:31:58 GMT</pubDate><dc:creator>Dana Medley</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thank you for the great question.  Enjoyed an easy one.</description><pubDate>Thu, 25 Oct 2012 04:57:31 GMT</pubDate><dc:creator>(Bob Brown)  </dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Interesting question, thanks Ron</description><pubDate>Thu, 25 Oct 2012 04:32:41 GMT</pubDate><dc:creator>Stewart "Arturius" Campbell</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Learned something new today, not sure I'll ever need to use it, but you never know.Thanks for the good question. :-D</description><pubDate>Thu, 25 Oct 2012 04:09:54 GMT</pubDate><dc:creator>DugyC</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>A new one on me too, I would probably have ended up with really messy instr and substr or perhaps xpath functions to achieve the same.There is an interesting example of use of PARSENAME with IP addresses which shows a practical application: http://www.sql-server-helper.com/tips/sort-ip-address.aspx</description><pubDate>Thu, 25 Oct 2012 02:54:27 GMT</pubDate><dc:creator>matthew.flower</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Another great question to learn from - thanks. I had heard of the function, but never knew what it did.</description><pubDate>Thu, 25 Oct 2012 02:31:32 GMT</pubDate><dc:creator>Michael Riemer</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thanks for the question ... also didn't know it existed</description><pubDate>Thu, 25 Oct 2012 01:21:59 GMT</pubDate><dc:creator>mickyT</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>[quote][b]Lokesh Vij (10/25/2012)[/b][hr]I think PARSENAME result will remain same for SS2005, SS2008, SS2008 R2 and SS2012![/quote]Indeed it does.</description><pubDate>Thu, 25 Oct 2012 01:20:07 GMT</pubDate><dc:creator>BrainDonor</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thanks for the question. I did not knew it exist.Iulian</description><pubDate>Thu, 25 Oct 2012 01:17:19 GMT</pubDate><dc:creator>Iulian -207023</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Nice question, new function for me :) It might be very useful. Thx</description><pubDate>Thu, 25 Oct 2012 01:10:23 GMT</pubDate><dc:creator>sule99</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>[quote][b]Jamsheer (10/24/2012)[/b][hr]Thanks for Good question.."Eid Mubarak" to all my SQL Friends.. :)[/quote]"Eid Mubarak" Jamsheer :-)</description><pubDate>Thu, 25 Oct 2012 00:37:37 GMT</pubDate><dc:creator>Lokesh Vij</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thanks for this question Ron. I was little confused when I saw this phrase "USING SQL SERVER 2012" :-)I think PARSENAME result will remain same for SS2005, SS2008, SS2008 R2 and SS2012!</description><pubDate>Thu, 25 Oct 2012 00:36:43 GMT</pubDate><dc:creator>Lokesh Vij</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>new for me..Leant n got +1:)</description><pubDate>Thu, 25 Oct 2012 00:32:12 GMT</pubDate><dc:creator>kalyani.k478</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Great question about a function I didn't even know it existed :-D</description><pubDate>Thu, 25 Oct 2012 00:22:06 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>[quote][b]Jamsheer (10/24/2012)[/b][hr]Thanks for Good question.."Eid Mubarak" to all my SQL Friends.. :)[/quote]Eid mubara Jamsheer..I knew of the PARSENAME ..there is a wonderful use of this for taking out the dot separated values, although with limits..good question..thanks</description><pubDate>Wed, 24 Oct 2012 23:52:23 GMT</pubDate><dc:creator>demonfox</dc:creator></item><item><title>RE: PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Thanks for Good question.."Eid Mubarak" to all my SQL Friends.. :)</description><pubDate>Wed, 24 Oct 2012 22:26:41 GMT</pubDate><dc:creator>Jamsheer</dc:creator></item><item><title>PARSENAME</title><link>http://www.sqlservercentral.com/Forums/Topic1376754-1222-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/PARSENAME/93804/"&gt;PARSENAME&lt;/A&gt;[/B]</description><pubDate>Wed, 24 Oct 2012 20:47:26 GMT</pubDate><dc:creator>bitbucket-25253</dc:creator></item></channel></rss>