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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limitation for length of insert statement?

Status
Not open for further replies.

jgoodman00

Programmer
Jan 23, 2001
1,510
I need to insert a very long string from a text area into an access table. The column is set as text datatype, & if I execute the sql which is generated by the asp page, from within access it executes perfectly. However, if I attempt the insert from an asp page, it fails with a multitude of errors from what looks like string truncation.

At the moment, I am dynamically creating a SQL string within my page & then using the Execute method of the Connection object to make the insert:
Code:
strSQL = "INSERT INTO SomeTable("TextColumn") VALUES ('" & Request.Form("TextArea") & "'"
objConn.Execute

Any suggestions?

James Goodman MCSE, MCDBA
[URL unfurl="true"]http://www.angelfire.com/sports/f1pictures[/URL]
 
set it to a memo data type and you will be allowed greater lengths

___________________________________________________________________

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
you'll more then likely have to split the data up then to not exceed the buffer limits if the values are that great

___________________________________________________________________

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top