Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 6th, 2005, 10:49 AM
Registered User
 
Join Date: Jul 2005
Location: , , Argentina.
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

Reply With Quote
  #2 (permalink)  
Old July 6th, 2005, 11:03 AM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Try this:

Description = rs("Description")

Reply With Quote
  #3 (permalink)  
Old July 7th, 2005, 08:15 AM
Registered User
 
Join Date: Jul 2005
Location: , , Argentina.
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

Reply With Quote
  #4 (permalink)  
Old July 7th, 2005, 09:14 AM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:53 PM.


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