How? insert data with SQL Insert statement 
Author Message
 How? insert data with SQL Insert statement

I've fallen over a potential problem. So far my app uses SQL statements to
do all record insertion and updating of data, but I now find that I need to
store large amounts of text. I've added a "longtext" field to my database
table, but when I came to code the INSERT INTO statement, I found that I did
not know how to code it!

Assuming that the data I want to store is large-ish (say 200K of RTF text),
how do I code the INSERT statement... Can I just treat it like a very long
string of text an put quotes around it, or is there some restriction on the
amount of data going through an INSERT statement?  Similarly, if this was
binary data, how would I go about inserting it into a database?

I may be worrying without reason, but would appreciate some reassurance.

Thanks
Steve



Sat, 03 Aug 2002 03:00:00 GMT  
 How? insert data with SQL Insert statement
Steve what database are you using access?


Quote:
> I've fallen over a potential problem. So far my app uses SQL statements to
> do all record insertion and updating of data, but I now find that I need
to
> store large amounts of text. I've added a "longtext" field to my database
> table, but when I came to code the INSERT INTO statement, I found that I
did
> not know how to code it!

> Assuming that the data I want to store is large-ish (say 200K of RTF
text),
> how do I code the INSERT statement... Can I just treat it like a very long
> string of text an put quotes around it, or is there some restriction on
the
> amount of data going through an INSERT statement?  Similarly, if this was
> binary data, how would I go about inserting it into a database?

> I may be worrying without reason, but would appreciate some reassurance.

> Thanks
> Steve



Sat, 03 Aug 2002 03:00:00 GMT  
 How? insert data with SQL Insert statement
I'm using DAO 3.6 to an Access MDB file.
Steve


Quote:
> Steve what database are you using access?



> > I've fallen over a potential problem. So far my app uses SQL statements
to
> > do all record insertion and updating of data, but I now find that I need
> to
> > store large amounts of text. I've added a "longtext" field to my
database
> > table, but when I came to code the INSERT INTO statement, I found that I
> did
> > not know how to code it!

> > Assuming that the data I want to store is large-ish (say 200K of RTF
> text),
> > how do I code the INSERT statement... Can I just treat it like a very
long
> > string of text an put quotes around it, or is there some restriction on
> the
> > amount of data going through an INSERT statement?  Similarly, if this
was
> > binary data, how would I go about inserting it into a database?

> > I may be worrying without reason, but would appreciate some reassurance.

> > Thanks
> > Steve



Sat, 03 Aug 2002 03:00:00 GMT  
 How? insert data with SQL Insert statement
Steve,

The only trick I've heard about this one so far is that you have to place
are your longtext fields as the last fields in your insert statement.


Quote:
> I've fallen over a potential problem. So far my app uses SQL statements to
> do all record insertion and updating of data, but I now find that I need
to
> store large amounts of text. I've added a "longtext" field to my database
> table, but when I came to code the INSERT INTO statement, I found that I
did
> not know how to code it!

> Assuming that the data I want to store is large-ish (say 200K of RTF
text),
> how do I code the INSERT statement... Can I just treat it like a very long
> string of text an put quotes around it, or is there some restriction on
the
> amount of data going through an INSERT statement?  Similarly, if this was
> binary data, how would I go about inserting it into a database?

> I may be worrying without reason, but would appreciate some reassurance.

> Thanks
> Steve



Mon, 05 Aug 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Inserting data into mutliple tables using SQL Insert Command

2. Insert Data Into Access Database From SQL Server ADO Insert

3. Help with SQL Insert Statement of Binary Formatted data

4. Problem Inserting batch insert statement

5. need ID from newly inserted record (altered by insert trigger on SQL server)

6. Problem with SQL Statement (INSERT)

7. SQL INSERT INTO Statement

8. putting sql insert statement in a loop

9. Update Database - SQL Insert Statement

10. SQL - INSERT statement problem

11. SQL Insert Statement

12. Insert SQL Statement and Variables

 

 
Powered by phpBB® Forum Software