Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
jlopez
Starting Member
2 Posts |
Posted - 2012-11-23 : 23:42:34
|
Hi, i need your help how to display the original text in my select statement. when i used select *, it shows binary text not the readable text.SELECT *FROM dbo.ttttxt010400where t_ctxt between 1 and 2table : tttxt010400 fields and data type1. ctxt long 42. clan str 13. seqe long 44. text str 240 result1 2 1 0x4165726174696F6E2050726F6A6563740A20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020 0 02 2 1 0x39313020636F6D70616E79206D617070696E6720646F6E6520666F7220666577207472616E73616374696F6E730D0A20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020 0 0desired output1 2 1 Aeration Project2 2 1 910 company mapping done for few transactions |
|
waterduck
Aged Yak Warrior
982 Posts |
Posted - 2012-11-24 : 01:36:51
|
doesn't looks like mssql... |
|
|
jlopez
Starting Member
2 Posts |
Posted - 2012-11-24 : 03:11:51
|
i got the solution now.SELECT *,convert(VARCHAR(2000),t_text)FROM dbo.ttttxt010400where t_ctxt between 1 and 2extending the convert to more chars. Thanks. |
|
|
|
|
|