Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Lines as Value Parameter

Status
Not open for further replies.

gbl0815

Programmer
Joined
Aug 3, 2002
Messages
2
Location
AT
I have to process a Text Database an copy that Data into a SQL Database (MS SQL 2000). I process this Data with Delphi.
Now, some Textfields contains CRLR and my Insert command fails. That Field is a Decription Field of my Customers Table. So that Field can contain multiple Lines.

Sample:
create table adr (description vchar(4096));
insert into adr values ('Line1'#13#10'Line2)';
-> Fail

What is the correct Syntax of the SQL Statement that can contain text values with multiple lines?
 
insert into adr values ('Line1'+char(13)+'Line2')

you don't need the char(10).


 
[thumbsup]
Thank you. It´s so simple
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top