Solved

Error in Classic ASP

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Dynamic? Dropdown Box 29 70
Syntax Help on SP 4 52
JSON error 4 38
Summernote required 3 57
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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 …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now