<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: SQL SERVER &#8211; TRIM() Function &#8211; UDF TRIM()</title>
	<atom:link href="http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ytterbius</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-57610</link>
		<dc:creator>Ytterbius</dc:creator>
		<pubDate>Sat, 14 Nov 2009 06:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-57610</guid>
		<description>Hi pinaldave , 

Just wanted to say that you&#039;ve got a great blog!  In my various searches for clear instruction on how to do the various things that I find myself needing to do in SQL Server, I&#039;ve found that it&#039;s very close to a sure bet that if I find it on your blog, it&#039;s going to be clear, and it&#039;s going to work.  Thanks!!!</description>
		<content:encoded><![CDATA[<p>Hi pinaldave , </p>
<p>Just wanted to say that you&#8217;ve got a great blog!  In my various searches for clear instruction on how to do the various things that I find myself needing to do in SQL Server, I&#8217;ve found that it&#8217;s very close to a sure bet that if I find it on your blog, it&#8217;s going to be clear, and it&#8217;s going to work.  Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaikh</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-57242</link>
		<dc:creator>Shaikh</dc:creator>
		<pubDate>Sun, 01 Nov 2009 10:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-57242</guid>
		<description>CREATE FUNCTION employees_in_project 
(@pr_number  varchar(20))
 RETURNS TABLE
   AS 
RETURN (SELECT Sum(Amount) as Amount
                  FROM MasterDetail
                  WHERE MasterDetail.code = @pr_number)
 GO


In Analizer

 SELECT *,  employees_in_project(master.code )  as  Amount FROM Master
 GO

it not work what is error in query</description>
		<content:encoded><![CDATA[<p>CREATE FUNCTION employees_in_project<br />
(@pr_number  varchar(20))<br />
 RETURNS TABLE<br />
   AS<br />
RETURN (SELECT Sum(Amount) as Amount<br />
                  FROM MasterDetail<br />
                  WHERE MasterDetail.code = @pr_number)<br />
 GO</p>
<p>In Analizer</p>
<p> SELECT *,  employees_in_project(master.code )  as  Amount FROM Master<br />
 GO</p>
<p>it not work what is error in query</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-56625</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Mon, 12 Oct 2009 18:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-56625</guid>
		<description>Pinal,

I am trying to find a way to seperate a column into multiple columns, using a space as a delimeter.  This would be similar to Excel&#039;s &#039;Text to Columns&#039; function.  I have a field that has information like &#039;FirstName LastName - Some Other Info&#039;.  What I need is just the first two bits of information as two seperate columns, so I can do some lookup and string functions against that data.</description>
		<content:encoded><![CDATA[<p>Pinal,</p>
<p>I am trying to find a way to seperate a column into multiple columns, using a space as a delimeter.  This would be similar to Excel&#8217;s &#8216;Text to Columns&#8217; function.  I have a field that has information like &#8216;FirstName LastName &#8211; Some Other Info&#8217;.  What I need is just the first two bits of information as two seperate columns, so I can do some lookup and string functions against that data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben G.</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-56133</link>
		<dc:creator>Ben G.</dc:creator>
		<pubDate>Thu, 24 Sep 2009 15:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-56133</guid>
		<description>@Erik,

Can your application call a SQL Server SP? If so, you could create an SP that calls the UDF.</description>
		<content:encoded><![CDATA[<p>@Erik,</p>
<p>Can your application call a SQL Server SP? If so, you could create an SP that calls the UDF.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tharindu Dhaneenja</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-55642</link>
		<dc:creator>Tharindu Dhaneenja</dc:creator>
		<pubDate>Sun, 06 Sep 2009 10:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-55642</guid>
		<description>HI Pinal,
	Is there has any performance gain apart from using “ltrim (rtrim(col))” to UDF. Normally UDF bit less performance comparing system function.

Thank you,
Tharindu</description>
		<content:encoded><![CDATA[<p>HI Pinal,<br />
	Is there has any performance gain apart from using “ltrim (rtrim(col))” to UDF. Normally UDF bit less performance comparing system function.</p>
<p>Thank you,<br />
Tharindu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tejas Shah</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-54310</link>
		<dc:creator>Tejas Shah</dc:creator>
		<pubDate>Fri, 31 Jul 2009 10:59:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-54310</guid>
		<description>Hi,

You can use:

UPDATE Table
SET Column = LTRIM(RTRIM(Column))

It will update all your rows and remove space before and after.

Let me know if it helps you.

Thanks,
Tejas</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You can use:</p>
<p>UPDATE Table<br />
SET Column = LTRIM(RTRIM(Column))</p>
<p>It will update all your rows and remove space before and after.</p>
<p>Let me know if it helps you.</p>
<p>Thanks,<br />
Tejas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satish</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-54307</link>
		<dc:creator>satish</dc:creator>
		<pubDate>Fri, 31 Jul 2009 08:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-54307</guid>
		<description>how to remove first &amp; last space in  fields without use of replace function just like trim in .net...?

plz. reply me..</description>
		<content:encoded><![CDATA[<p>how to remove first &amp; last space in  fields without use of replace function just like trim in .net&#8230;?</p>
<p>plz. reply me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priya</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52767</link>
		<dc:creator>Priya</dc:creator>
		<pubDate>Fri, 05 Jun 2009 10:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52767</guid>
		<description>Hi Raghuram,
you can use this STUFF function to remove those characters

select stuff(stuff(’(’13,14,15′)’,2,1,”),10,1,”)</description>
		<content:encoded><![CDATA[<p>Hi Raghuram,<br />
you can use this STUFF function to remove those characters</p>
<p>select stuff(stuff(’(’13,14,15′)’,2,1,”),10,1,”)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priya</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52766</link>
		<dc:creator>Priya</dc:creator>
		<pubDate>Fri, 05 Jun 2009 10:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52766</guid>
		<description>Hi Raghuram,
you can use this STUFF function to remove those characters

select stuff(stuff(&#039;(’13,14,15′)&#039;,2,1,&#039;&#039;),10,1,&#039;&#039;)</description>
		<content:encoded><![CDATA[<p>Hi Raghuram,<br />
you can use this STUFF function to remove those characters</p>
<p>select stuff(stuff(&#8216;(’13,14,15′)&#8217;,2,1,&#8221;),10,1,&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Connect Item – Vote for Feature Request Function TRIM Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52667</link>
		<dc:creator>SQL SERVER – Connect Item – Vote for Feature Request Function TRIM Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Wed, 03 Jun 2009 01:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52667</guid>
		<description>[...] SQL SERVER – TRIM() Function – UDF TRIM() [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – TRIM() Function – UDF TRIM() [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZeroGhost</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52508</link>
		<dc:creator>ZeroGhost</dc:creator>
		<pubDate>Thu, 28 May 2009 09:49:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52508</guid>
		<description>FOUND TO SOLUTION:


--
--


if exists (select top 1 1 from information_schema.routines where
specific_name = &#039;proc_DisplayHoursWorked&#039; and routine_type = &#039;PROCEDURE&#039;)
DROP PROCEDURE proc_DisplayHoursWorked
go
CREATE PROCEDURE [dbo].[proc_DisplayHoursWorked]
            
AS
SELECT rtrim(Employees.Name) + &#039; &#039; + 
ltrim(Employees.Surname) As [Emp Name]
FROM Timesheets INNER JOIN Employees
ON Timesheets.UserNumber = Employees.UserNumber</description>
		<content:encoded><![CDATA[<p>FOUND TO SOLUTION:</p>
<p>&#8211;<br />
&#8211;</p>
<p>if exists (select top 1 1 from information_schema.routines where<br />
specific_name = &#8216;proc_DisplayHoursWorked&#8217; and routine_type = &#8216;PROCEDURE&#8217;)<br />
DROP PROCEDURE proc_DisplayHoursWorked<br />
go<br />
CREATE PROCEDURE [dbo].[proc_DisplayHoursWorked]</p>
<p>AS<br />
SELECT rtrim(Employees.Name) + &#8216; &#8216; +<br />
ltrim(Employees.Surname) As [Emp Name]<br />
FROM Timesheets INNER JOIN Employees<br />
ON Timesheets.UserNumber = Employees.UserNumber</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZeroGhost</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52505</link>
		<dc:creator>ZeroGhost</dc:creator>
		<pubDate>Thu, 28 May 2009 09:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52505</guid>
		<description>How do I do away with the extra characters in the field, sy that the third field will be displayed without the spaces.

--
--

if exists (select top 1 1 from information_schema.routines where
specific_name = &#039;proc_DisplayHoursWorked&#039; and routine_type = &#039;PROCEDURE&#039;)
DROP PROCEDURE proc_DisplayHoursWorked
go
CREATE PROCEDURE [dbo].[proc_DisplayHoursWorked]
            
AS
SELECT Employees.Name,
Employees.Surname,
Employees.Name + &#039; &#039; + Employees.Surname As [EmpName]
FROM Timesheets INNER JOIN Employees
ON Timesheets.UserNumber = Employees.UserNumber</description>
		<content:encoded><![CDATA[<p>How do I do away with the extra characters in the field, sy that the third field will be displayed without the spaces.</p>
<p>&#8211;<br />
&#8211;</p>
<p>if exists (select top 1 1 from information_schema.routines where<br />
specific_name = &#8216;proc_DisplayHoursWorked&#8217; and routine_type = &#8216;PROCEDURE&#8217;)<br />
DROP PROCEDURE proc_DisplayHoursWorked<br />
go<br />
CREATE PROCEDURE [dbo].[proc_DisplayHoursWorked]</p>
<p>AS<br />
SELECT Employees.Name,<br />
Employees.Surname,<br />
Employees.Name + &#8216; &#8216; + Employees.Surname As [EmpName]<br />
FROM Timesheets INNER JOIN Employees<br />
ON Timesheets.UserNumber = Employees.UserNumber</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris von Nieda &#124; Vertical Measures</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52496</link>
		<dc:creator>Chris von Nieda &#124; Vertical Measures</dc:creator>
		<pubDate>Thu, 28 May 2009 00:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52496</guid>
		<description>Thanks for the tip, I didn&#039;t realize the Trim function didn&#039;t work on SQL Server 2005 either.  I used this to do the trick thanks to your tip: 

Select ltrim(rtrim(FIELD)) from TABLE</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, I didn&#8217;t realize the Trim function didn&#8217;t work on SQL Server 2005 either.  I used this to do the trick thanks to your tip: </p>
<p>Select ltrim(rtrim(FIELD)) from TABLE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linto</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52295</link>
		<dc:creator>Linto</dc:creator>
		<pubDate>Sun, 24 May 2009 05:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-52295</guid>
		<description>----URGENT-----

i have bulk inserted data in my sql 2005 server then i use trim (ltrim &amp; rtrim) function still SPACE IS NOT REMOVED.

my imported table is all fileds are nvcahractor (255)



could you please advice what is happening here ???....</description>
		<content:encoded><![CDATA[<p>&#8212;-URGENT&#8212;&#8211;</p>
<p>i have bulk inserted data in my sql 2005 server then i use trim (ltrim &amp; rtrim) function still SPACE IS NOT REMOVED.</p>
<p>my imported table is all fileds are nvcahractor (255)</p>
<p>could you please advice what is happening here ???&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raja</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-51147</link>
		<dc:creator>Raja</dc:creator>
		<pubDate>Tue, 21 Apr 2009 06:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-51147</guid>
		<description>Good Work pinaldave!!!</description>
		<content:encoded><![CDATA[<p>Good Work pinaldave!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram Mohan</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-49970</link>
		<dc:creator>Ram Mohan</dc:creator>
		<pubDate>Wed, 25 Mar 2009 20:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-49970</guid>
		<description>One thing is very clear. People like you make the world better place.</description>
		<content:encoded><![CDATA[<p>One thing is very clear. People like you make the world better place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hughie</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-47947</link>
		<dc:creator>hughie</dc:creator>
		<pubDate>Tue, 03 Mar 2009 14:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-47947</guid>
		<description>I&#039;m writing a batch job using .NET and want to compare a table in our data warehouse with a transactional table, These 2 tables reside on different servers and databases. I am creating a datahandler from .NET and have been told that creating 2 different data connections will not work ???

Any other ideas or will 2 different connections work with two seperate data adaptors?  Any ideas welcome or if there is a better idea please share.

thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m writing a batch job using .NET and want to compare a table in our data warehouse with a transactional table, These 2 tables reside on different servers and databases. I am creating a datahandler from .NET and have been told that creating 2 different data connections will not work ???</p>
<p>Any other ideas or will 2 different connections work with two seperate data adaptors?  Any ideas welcome or if there is a better idea please share.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Enhenced TRIM() Function - Remove Trailing Spaces, Leading Spaces, White Space, Tabs, Carriage Returns, Line Feeds Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-47511</link>
		<dc:creator>SQL SERVER - 2008 - Enhenced TRIM() Function - Remove Trailing Spaces, Leading Spaces, White Space, Tabs, Carriage Returns, Line Feeds Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-47511</guid>
		<description>[...] found following script posted by Russ and Erik. It is modified a bit from original [...]</description>
		<content:encoded><![CDATA[<p>[...] found following script posted by Russ and Erik. It is modified a bit from original [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-47200</link>
		<dc:creator>SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-47200</guid>
		<description>[...] SQL SERVER - TRIM() Function - UDF TRIM() [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; TRIM() Function &#8211; UDF TRIM() [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mujimu</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-45593</link>
		<dc:creator>mujimu</dc:creator>
		<pubDate>Tue, 13 Jan 2009 23:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-trim-function-udf-trim/#comment-45593</guid>
		<description>Laurie -

You are mixing and matching.  You cannot use _ as a delimiter and also have it recognize the double quotes as text qualifier.  Either one or the other, as you can&#039;t break up a column in the middle of your text qualifiers.

What I&#039;d do... is pull in the data in its existing format and manipulate it as needed afterwards.

1. Use the double quotes as text qualifier, and pull the string into one column on your import, say into column called import_str.

2. Then add two columns to the table created in the import process, and rip apart your string as needed.

Something like this...

ALTER TABLE importTable add rip_out_str1 varchar(255)
ALTER TABLE importTable add rip_out_str2 varchar(255)

-- extract first col and remove extracted str from raw data
UPDATE importTable 
SET rip_out_str1 = SUBSTRING(import_str,0,CHARINDEX(&#039;_&#039;, import_str)),
import_str = replace(import_str, rip_out_str1+&#039;_&#039;, &#039;&#039;)

-- extract second col and remove extracted str from raw data
UPDATE importTable
SET rip_out_str2 = SUBSTRING(import_str,0,CHARINDEX(&#039;_&#039;, import_str)),
import_str = replace(import_str, rip_out_str2+&#039;_&#039;, &#039;&#039;)

... etc as needed

2005DBA</description>
		<content:encoded><![CDATA[<p>Laurie -</p>
<p>You are mixing and matching.  You cannot use _ as a delimiter and also have it recognize the double quotes as text qualifier.  Either one or the other, as you can&#8217;t break up a column in the middle of your text qualifiers.</p>
<p>What I&#8217;d do&#8230; is pull in the data in its existing format and manipulate it as needed afterwards.</p>
<p>1. Use the double quotes as text qualifier, and pull the string into one column on your import, say into column called import_str.</p>
<p>2. Then add two columns to the table created in the import process, and rip apart your string as needed.</p>
<p>Something like this&#8230;</p>
<p>ALTER TABLE importTable add rip_out_str1 varchar(255)<br />
ALTER TABLE importTable add rip_out_str2 varchar(255)</p>
<p>&#8211; extract first col and remove extracted str from raw data<br />
UPDATE importTable<br />
SET rip_out_str1 = SUBSTRING(import_str,0,CHARINDEX(&#8216;_&#8217;, import_str)),<br />
import_str = replace(import_str, rip_out_str1+&#8217;_', &#8221;)</p>
<p>&#8211; extract second col and remove extracted str from raw data<br />
UPDATE importTable<br />
SET rip_out_str2 = SUBSTRING(import_str,0,CHARINDEX(&#8216;_&#8217;, import_str)),<br />
import_str = replace(import_str, rip_out_str2+&#8217;_', &#8221;)</p>
<p>&#8230; etc as needed</p>
<p>2005DBA</p>
]]></content:encoded>
	</item>
</channel>
</rss>
