Hi all,I have a table, with a field type char(60) (and many more fields as well)That field is having some strange data, which drives me nuts.When I query the the table, in Query Analyzer it looks no different with the other data, when the results are shown in Grid. But when the results are shown as Text, some records are seperated by a blank line. I suspect that as a Carriage Return in the dataAm I correct or is there any other issueHow to find such records (if <CR> is the case) ?Here is a typical query & the O/P I getSelect [description] from p where F in( '2291', '64601', '007008','6122', '0235', '0223')The results asdescription ------------------------------------------------------------ AAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC DDDDDDDDDDDDDDD EEEEEEEEEE FFFFFFFFFFFFFFFFFFF GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG HHHHHHHHHHHHHHHHHHHHHHHHHHH (8 row(s) affected)
Any suggestions are welcomeThanksEdit:I tried SELECT * FROM p where CHARINDEX([F],CHAR(13)+CHAR(10)) > 0But no records returned-- OK I finally get hold of the guyWith the help of http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55855SELECT *FROM p where patindex('%'+CHAR(13)+CHAR(10)+'%',f) > 0ThanksSrinika