Solved

Error in Classic ASP

Posted on 2009-04-15
2
184 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

861 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