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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Regarding Insert script

Author  Topic 

bandi
Master Smack Fu Yak Hacker

2242 Posts

Posted - 2013-03-22 : 07:22:19
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

737 Posts

Posted - 2013-03-22 : 07:30:05
Can you try this:

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

Go to Top of Page

bandi
Master Smack Fu Yak Hacker

2242 Posts

Posted - 2013-03-22 : 07:50:40
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
Go to Top of Page
   

- Advertisement -