﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / Pipes at the End / 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>Thu, 23 May 2013 07:00:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Pipes at the End</title><link>http://www.sqlservercentral.com/Forums/Topic1381732-392-1.aspx</link><description>Yes, thank youThat worked perfectlyThanks again for your assistanceAndrew SQLDBA</description><pubDate>Wed, 07 Nov 2012 08:12:02 GMT</pubDate><dc:creator>AndrewSQLDBA</dc:creator></item><item><title>RE: Pipes at the End</title><link>http://www.sqlservercentral.com/Forums/Topic1381732-392-1.aspx</link><description>I went back and revisited this.  The code below should work for you.  I created a Table with a Column in it.  Added text that ended with ' ||' and then ran this against it.[code="sql"]UPDATE [dbo].[Table1]   SET [Col3] = (SELECT SUBSTRING(Col3, 1, + CHARINDEX(' ||',Col3, -1)))GO[/code]Good luck.</description><pubDate>Wed, 07 Nov 2012 08:07:53 GMT</pubDate><dc:creator>kylesway</dc:creator></item><item><title>RE: Pipes at the End</title><link>http://www.sqlservercentral.com/Forums/Topic1381732-392-1.aspx</link><description>Hi,Can you not add a update statement at the end of the package, which update all that column and removes any pipeline characters?[code="other"]update yourtablenameset yourcolumnname = REPLACE(&amp;lt;columnname&amp;gt;,char(124),char(32))[/code]</description><pubDate>Tue, 06 Nov 2012 16:26:23 GMT</pubDate><dc:creator>SQL_Kills</dc:creator></item><item><title>RE: Pipes at the End</title><link>http://www.sqlservercentral.com/Forums/Topic1381732-392-1.aspx</link><description>You could try altering the 'raw' data.  If this is in txt form (or is you can get it there), you could use a Ctrl + H (Find and Replace).  Then try your import.  That may work.  Do you have that option?</description><pubDate>Tue, 06 Nov 2012 15:37:51 GMT</pubDate><dc:creator>kylesway</dc:creator></item><item><title>Pipes at the End</title><link>http://www.sqlservercentral.com/Forums/Topic1381732-392-1.aspx</link><description>Hello EveryoneI am loading some data, not clean and not from another SQL source. So there are all kinds of things mixed in the data.At the very end of each row in the table, in the very last column, I have a blank space followed by two pipes ( ||). I need to delete the blank space and the two pipe, but none of the data in front of that in the same column. Each row is different for that particular column. But this odd charachter mix is always at the very end.How can I most efficiently delete the blank space and the two pipesThank you in advance for you helpAndrew SQLDBA</description><pubDate>Tue, 06 Nov 2012 15:29:18 GMT</pubDate><dc:creator>AndrewSQLDBA</dc:creator></item></channel></rss>