SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Regarding Insert script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bandi
Flowing Fount of Yak Knowledge

India
2202 Posts

Posted - 03/22/2013 :  07:22:19  Show Profile  Reply with Quote
Hi all,

I had one Insert Script generated from database...
One of my table data have "multiplt lines of data"
Eg:
afbjakfbkajfkajfhkla (nextLine)
afbakfvnklfvnslaf

After generation of the script, the above data is changed to
afbjakfbkajfkajfhkla SomeBoxSymbol
afbakfvnklfvnslaf

The problem is with that BoxSymbol..
How to get Line break for data in the script instead of those symbol?

--
Chandu

ahmeds08
Aged Yak Warrior

India
573 Posts

Posted - 03/22/2013 :  07:30:05  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
Can you try this:

select
your_Column,
convert(varbinary(40), your_Column)
from your_Table

Go to Top of Page

bandi
Flowing Fount of Yak Knowledge

India
2202 Posts

Posted - 03/22/2013 :  07:50:40  Show Profile  Reply with Quote
Problem is not with the SELECT statement....
While taking Insert script from database NextLine is treated as unreadable character (symbol) in the case of multiple lines data. because of that symbol application throwing some error in front-end..

EDIT:
My column type is VARCHAR only... By casting that to VARBINARY application won't allow binary data
--
Chandu

Edited by - bandi on 03/22/2013 07:52:58
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000