Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2005, 10:49 AM
Registered User
 
Join Date: Jul 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ODBC Problem?

I´m receiving this error
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

/backoffice/eng/SubCategory/SubCategories_Update.asp, line 65

I´m using Mysql and asp

This is my connection string
DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=base770;OPTION=3 ;UID=uid;PWD=pass;

The line 65 it´s
rs("Description") = Description

and i´ve opened the recordset as
rs.Open "select * from SubCategory where SubCategoryID=" &
SubCategoryID ,cn,2,2

Please! i don´t know what the problem could be!!!!
Thanks in advance. Guillermo

 
Old July 6th, 2005, 11:03 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Try this:

Description = rs("Description")

 
Old July 7th, 2005, 08:15 AM
Registered User
 
Join Date: Jul 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It´s resolved. It was that the Description was 253 chars length and rs("Description") 250

 
Old July 7th, 2005, 09:14 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Hi Polon,

Does this actually work for you?

rs("Description") = Description

I tried this in a test page and it actually produced the same error you reported. I resoloved it by changing it to:

Description = rs("Description")

Glad its resolved for you.

Richard






Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC problem martinrhague SQL Server 2000 3 November 17th, 2007 04:25 AM
ODBC Timeout Problem echovue Access VBA 3 February 2nd, 2007 08:27 AM
ODBC - insert on a linked field - [microsoft][ODBC chimp MySQL 0 April 7th, 2005 04:44 AM
some problem about ODBC connection ---hurry up stephenzhou ADO.NET 1 September 17th, 2003 05:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.