﻿<?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)  / SQL Server 2000 - Substring or replace  for a binary value / 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>Tue, 18 Jun 2013 16:40:27 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL Server 2000 - Substring or replace  for a binary value</title><link>http://www.sqlservercentral.com/Forums/Topic1367278-392-1.aspx</link><description>Thank you all for the responses. Substring and replace will not work on binary value unless we do the conversion to a string, did the conversion in the following way and it workedreplace(upper(master.dbo.fn_varbintohexstr('0xF60F9125DBA7E94012F55E2177C95C0E906862B1')),'0x','')</description><pubDate>Wed, 03 Oct 2012 07:59:38 GMT</pubDate><dc:creator>svakka</dc:creator></item><item><title>RE: SQL Server 2000 - Substring or replace  for a binary value</title><link>http://www.sqlservercentral.com/Forums/Topic1367278-392-1.aspx</link><description>You can use substring in SQL 2000Here is an example:declare @fg char(100)set @fg = '0xF60F9125DBA7E94012F55E2177C95C0E906862B1'select @fgselect substring(@fg, 3, 98)</description><pubDate>Tue, 02 Oct 2012 15:32:48 GMT</pubDate><dc:creator>piotrka</dc:creator></item><item><title>RE: SQL Server 2000 - Substring or replace  for a binary value</title><link>http://www.sqlservercentral.com/Forums/Topic1367278-392-1.aspx</link><description>your string = 0xF60F9125DBA7E94012F55E2177C95C0E906862B1try this in your SQL StatementREPLACE ( '0xF60F9125DBA7E94012F55E2177C95C0E906862B1' , '0x' , '' )Good Luck...</description><pubDate>Tue, 02 Oct 2012 15:19:40 GMT</pubDate><dc:creator>pchirags</dc:creator></item><item><title>SQL Server 2000 - Substring or replace  for a binary value</title><link>http://www.sqlservercentral.com/Forums/Topic1367278-392-1.aspx</link><description>How to substring or replace 0x from a binany value 0xF60F9125DBA7E94012F55E2177C95C0E906862B1in SQL Server 2000 using tsql. The output should be F60F9125DBA7E94012F55E2177C95C0E906862B1</description><pubDate>Tue, 02 Oct 2012 14:06:25 GMT</pubDate><dc:creator>svakka</dc:creator></item></channel></rss>