dbTalk Databases Forums  

hex values somewhere in database... help!

microsoft.public.sqlserver.programming microsoft.public.sqlserver.programming


Discuss hex values somewhere in database... help! in the microsoft.public.sqlserver.programming forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Random
 
Posts: n/a

Default hex values somewhere in database... help! - 12-21-2004 , 05:25 PM






I am running some FOR XML EXPLICIT queries off my database to use in my web
page, but I am getting a "hexadecimal value 0x0B, is an invalid character"
error on some of my queries.

That hex value is the vertical tab. I imported the data I am using into the
database. How do I find these hex values so I can get them out??



Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: hex values somewhere in database... help! - 12-22-2004 , 06:01 AM






Hi

Something like:

SELECT * FROM test where charindex(char(11),col1) > 0

will return all rows where 0x0B is in col1. If you want to search all
character columns try
http://www.users.drew.edu/skass/sql/...Tables.sql.txt

John

"Random" <cipherlad (AT) hotmail (DOT) com> wrote

Quote:
I am running some FOR XML EXPLICIT queries off my database to use in my web
page, but I am getting a "hexadecimal value 0x0B, is an invalid character"
error on some of my queries.

That hex value is the vertical tab. I imported the data I am using into
the database. How do I find these hex values so I can get them out??




Reply With Quote
  #3  
Old   
Random
 
Posts: n/a

Default Re: hex values somewhere in database... help! - 12-22-2004 , 10:13 AM



Perfect! It was just a handful of rows, so I was able to do manual updates
to fix the problem. Thanks!

"John Bell" <jbellnewsposts (AT) hotmail (DOT) com> wrote

Quote:
Hi

Something like:

SELECT * FROM test where charindex(char(11),col1) > 0

will return all rows where 0x0B is in col1. If you want to search all
character columns try
http://www.users.drew.edu/skass/sql/...Tables.sql.txt

John

"Random" <cipherlad (AT) hotmail (DOT) com> wrote in message
news:OLV5ZR75EHA.1404 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
I am running some FOR XML EXPLICIT queries off my database to use in my
web page, but I am getting a "hexadecimal value 0x0B, is an invalid
character" error on some of my queries.

That hex value is the vertical tab. I imported the data I am using into
the database. How do I find these hex values so I can get them out??






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.