Solved

Error in Classic ASP

Posted on 2009-04-15
2
181 Views
Last Modified: 2012-05-06
Hi,

I am getting the below 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.

I am using the DSN connection.

Can any one tell me why i am getting this type of error?

Regards

Glenn


set rs=Server.CreateObject("ADODB.Recordset")
	rs.open "Member",conn,3,2
	rs.addnew
			rs("uname") = username
			rs("password") = password
			rs("sq") = sq
			rs("sa") = sa
			rs("title") = title
			rs("fname") = firstname
			rs("lname") = lastname
			rs("gender") = gen
			rs("dob") = dob
			rs("address") = address
			rs("city") = city
			rs("zip") = zip
			rs("state") = state
			rs("country") = country
			rs("phone") = phone
			rs("mobile") = mobile
			rs("email") = email
			rs("tc") = tc
			rs("mdate") = date
			rs("approve") = 1
 
	rs.update
	rs.close
	set rs=nothing

Open in new window

0
Comment
Question by:dotsandcoms
2 Comments
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 500 total points
ID: 24146601
Hi dotsandcoms,
This is common datatype problem.
Make sure you are passing valid datatypes to whatever is going on in the database. For example, check that you are not passing a NULL or empty string value to a column that doesn't accept them (either manually defined or, say, a DATETIME column). Make sure that all VARCHAR lengths and numeric bounds are adhered to.

Please check this for further details:
http://databases.aspfaq.com/database/what-is-this-multiple-step-ole-db-error.html
0
 

Author Closing Comment

by:dotsandcoms
ID: 31570359
good one
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question