PC Review


Reply
Thread Tools Rate Thread

How do I upload files to a database?

 
 
=?Utf-8?B?Z2xlbg==?=
Guest
Posts: n/a
 
      13th May 2006
I am using FP2003 and am tring to use the Form Upload File box to upload
files to a database. I was referred by MS Article ID: 288328 to a MS White
Paper Written by Jerry Bryant Published on 7-21-2001 entittled "How to Send
Form Results to a Database and an E-mail Address and Use the File Upload
Component simultaneously"
All was going well until creating the Process2.asp page on step 5 where I
insert the Custom Query INSERT INTO Results (Name, Email, Comments, File)
VALUES (‘::Name::’, ‘::Email::’, ‘::Comments::’, ‘::File::’) I get a
message saying "The Custom Query Contains Errors" I have no clue as to how
to resolve this error!


 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      13th May 2006
Not sure if it is your newsreader encoding or pasting (for the delimiters)
but that query needs to be all on 1 line as
INSERT INTO Results (Name, Email, Comments, File) VALUES (‘::Name::’, ‘::Email::’, ‘::Comments::’, ‘::File::’)
and not
INSERT INTO Results (Name, Email, Comments, File) VALUES (‘::Name::’, ‘::Email::’, ‘::Comments::’, ‘::File::’)

FYI
Uploading a binary (your file) to a DB is not a recommended practice

You would be better of checking if your host support ASPupload and
- just saving the uploaded file name (and or path) to your DB
- and w/ ASPupload uploading the file to a folder on your site
See http://www.aspupload.com/
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPa...3/Default.aspx
_____________________________________________


"glen" <(E-Mail Removed)> wrote in message news:4E190E2B-04C9-47E2-A1F5-(E-Mail Removed)...
|I am using FP2003 and am tring to use the Form Upload File box to upload
| files to a database. I was referred by MS Article ID: 288328 to a MS White
| Paper Written by Jerry Bryant Published on 7-21-2001 entittled "How to Send
| Form Results to a Database and an E-mail Address and Use the File Upload
| Component simultaneously"
| All was going well until creating the Process2.asp page on step 5 where I
| insert the Custom Query INSERT INTO Results (Name, Email, Comments, File)
| VALUES (‘::Name::’, ‘::Email::’, ‘::Comments::’, ‘::File::’) I get a
| message saying "The Custom Query Contains Errors" I have no clue as to how
| to resolve this error!
|
|


 
Reply With Quote
 
=?Utf-8?B?Z2xlbg==?=
Guest
Posts: n/a
 
      13th May 2006
Thanks for the reply.

The code is on one line it just dosen't appear correctly here. I noticed
someone else had trouble with this white paper - perhaps it has to do with
version 2003 of FP as the article was written pre 2003?

Why is uploading a file to a database not recommended? Does it cause
security problems? hangs up? ?

"Stefan B Rusynko" wrote:

> Not sure if it is your newsreader encoding or pasting (for the delimiters)
> but that query needs to be all on 1 line as
> INSERT INTO Results (Name, Email, Comments, File) VALUES (‘::Name::’, ‘::Email::’, ‘::Comments::’, ‘::File::’)
> and not
> INSERT INTO Results (Name, Email, Comments, File) VALUES (‘::Name::’, ‘::Email::’, ‘::Comments::’, ‘::File::’)
>
> FYI
> Uploading a binary (your file) to a DB is not a recommended practice
>
> You would be better of checking if your host support ASPupload and
> - just saving the uploaded file name (and or path) to your DB
> - and w/ ASPupload uploading the file to a folder on your site
> See http://www.aspupload.com/
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.frontpagemvps.com/FrontPa...3/Default.aspx
> _____________________________________________
>
>
> "glen" <(E-Mail Removed)> wrote in message news:4E190E2B-04C9-47E2-A1F5-(E-Mail Removed)...
> |I am using FP2003 and am tring to use the Form Upload File box to upload
> | files to a database. I was referred by MS Article ID: 288328 to a MS White
> | Paper Written by Jerry Bryant Published on 7-21-2001 entittled "How to Send
> | Form Results to a Database and an E-mail Address and Use the File Upload
> | Component simultaneously"
> | All was going well until creating the Process2.asp page on step 5 where I
> | insert the Custom Query INSERT INTO Results (Name, Email, Comments, File)
> | VALUES (‘::Name::’, ‘::Email::’, ‘::Comments::’, ‘::File::’) I get a
> | message saying "The Custom Query Contains Errors" I have no clue as to how
> | to resolve this error!
> |
> |
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't upload a database rwg Microsoft Access Queries 0 21st Sep 2006 01:12 AM
upload into database =?Utf-8?B?UmF5bW9uZG8=?= Microsoft Frontpage 1 14th Nov 2005 01:51 PM
upload large files using Frontpage upload form field =?Utf-8?B?SG9sbHl5bGxvSA==?= Microsoft Windows 2000 Registry 6 27th Oct 2005 12:28 AM
Upload a database =?Utf-8?B?RHIgQWxvayBNb2RpIE1E?= Microsoft Access 1 23rd May 2005 02:45 AM
How do I upload files into my Access database =?Utf-8?B?U2hhbmUgRG9oZXJ0eQ==?= Microsoft Access External Data 1 8th Apr 2005 07:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 PM.