• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Error in Classic ASP

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
dotsandcoms
Asked:
dotsandcoms
1 Solution
 
David H.H.LeeCommented:
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
 
dotsandcomsAuthor Commented:
good one
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now