To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Miscellaneous > Ask an Expert

Ask an Expert Ask our SQL experts the tough questions that have you stumped. Members are limited to one question a week, so ask your questions wisely!

Reply Post New Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-13-2003, 01:26 PM
Tomfoolry Tomfoolry is offline
Junior Member
 
Join Date: Mar 2003
Posts: 3
Need help with Update Statement

FieldName, Type, Size

productid, Long Integer,
name, Text, 255
french_name, Text, 255
productcode, Text, 50
brief, Memo, 536870910
french_brief, Memo, 536870910
description, Memo, 536870910
french_description, Memo, 536870910
specs, Memo, 536870910
french_specs, Memo, 536870910
reviews, Memo, 536870910
french_reviews, Memo, 536870910
price, Curreny, 8
saleprice, Curreny, 8
rebateprice, Curreny, 8
deliveryprice, Curreny, 8
corporate, Curreny, 8
government, Curreny, 8
wholesale, Curreny, 8
VIP, Curreny, 8
employee, Curreny, 8
image, Text, 255
catcode, Integer, 4
type, Text, 10
notes, Memo, 536870910
french_notes, Memo, 536870910
featured, Boolean, 2
accessory, Boolean, 2
rates, Memo, 536870910
french_rates, Memo, 536870910
rebateinfo, Memo, 536870910
french_rebateinfo, Memo, 536870910

Qry = "Update products Set name='Cybiolink 2500',french_name='',productcode='',brief='The Cybiolink 2500 has all the great features of the Cybio 2000, with a new sleek look. It has a four-line display with Simultaneous Viewing of existing and incoming calls, One-touch Voice Mail and a 67-Name and 99-Number Memory, which makes keeping up-to-date and organized an easy chore. ',french_brief='',description='The Cybiolink 2500 has all the great features of the Cybio 2000, with a new sleek look. The Cybiolink 2500 has a four-line display with Simultaneous Viewing of existing and incoming calls, One-touch Voice Mail and a 67-Name and 99-Number Memory, which makes keeping up-to-date and organized an easy chore. ',french_description='',specs='more specs coming soon...',french_specs='',reviews='',french_reviews ='',price=80,saleprice=0,rebateprice=0,deliverypri ce=5,corporate=80,government=0,wholesale=80,VIP=80 ,employee=80,image='no_image',catcode=7,type='',no tes='dec6.02 - sale until dec 24',french_notes='',featured=0,accessory=0,rates=' ',french_rates='',rebateinfo='',french_rebateinfo= '' Where productid=493"

objRecConn.Execute(Qry)

-2147217900, Syntax error in UPDATE statement.

When this statement is cut and pasted into an update view in access it works fine, but not from ASP.

Can anyone tell me what the problem is.
Thanks, Lloyd Cormier

Last edited by Tomfoolry; 03-13-2003 at 01:46 PM.
Reply With Quote
  #2  
Old 03-13-2003, 03:07 PM
skhanal skhanal is offline
Experts
 
Join Date: Nov 2002
Location: New Jersey, USA
Posts: 3,644
I am not an expert in ASP, just throwing a dart, don't you need a ; at the end of the query?
__________________
http://gotodba.com
Reply With Quote
  #3  
Old 03-13-2003, 03:11 PM
Tomfoolry Tomfoolry is offline
Junior Member
 
Join Date: Mar 2003
Posts: 3
I have never needed one before
Reply With Quote
  #4  
Old 03-13-2003, 03:28 PM
Tomfoolry Tomfoolry is offline
Junior Member
 
Join Date: Mar 2003
Posts: 3
I figured it out, and have to say that this is pretty damn stupid on Microsofts part.

The datebase i was working with is only an access database(Hope nobody minds me posting this question in an SQL Server forum) and the connection string was the problem. I was using PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=datebase then switched to Driver={Microsoft Access Driver (*.mdb)};DSN=;DBQ=database and everything works fine now. What the heck was that about.

Anyhow if anyone ever has that problem, you now have a solution.

Thanks, Lloyd Cormier
Reply With Quote
Reply Post New Thread

Bookmarks

Thread Tools
Display Modes 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 Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:01 PM.


DatabaseJournal Recent Articles


 » A Guide to Microsoft SQL Server Replication

 » Introduction to SQL Server Proactive Caching

 » Redmond exploits MySQL uncertainty

 » Oracle Launches Oracle Global Trade Manage...

 » SQL Server 2008 RTM Support Ends April 13,...

Search Database Journal:
 







Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.