Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 9th, 2006, 05:14 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Swaragh
Default ASP

Hi,

Error Type:
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/cms6/conn.asp, line 40


  <%

    dim oConnstring
    dim oConn
    dim objcmd

    oConnstring = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=c:\Inetpub\WWWroot\cms6\INCLUDES\DB\db1.mdb"
    Url="http://swaragh/cms6/"
    path="G:\cms"

        Set oConn = Server.Createobject("ADODB.Connection")
        oConn.Open oConnstring

        set objcmd=Server.CreateObject("ADODB.Command")
        objcmd.ActiveConnection=oConnstring

        objcmd.CommandText = "UPDATE Test SET Item_Name='Raghavendra' where Item_No=1"
        objcmd.CommandType = adCmdText
        objcmd.Execute

        'objcmd.CommandText = "Insert into Users(User_ID, J_Name, J_Password) values(9,'Rky','rky')"
        'objcmd.CommandType = adCmdText
        'objcmd.Execute


        Set objcmd = Nothing
        Set oConn = Nothing
%>


I had executed the above quires in MS ACCESS its working fine.

I am using MS ACCESS 2002.
OS-windows 2000 Professional.

I am not able to update and insert any records,
but I can retrive records.

Pls help me out.
Waiting for ur reply.

regards,
Raghavendra
 
Old January 9th, 2006, 06:18 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Have you tryed asking google? Always ask google first - your solution is everywhere on ther first result page.

Problem : You have not defined the constants adOpenForwardOnly, asLockOptimistic, and adCmdTable

Solution : You need to include the file adovbs.inc in your page. For more on this topic, see:
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=123

If you searched this forum your solution is also here:
http://p2p.wrox.com/topic.asp?TOPIC_ID=13349
(this post has been addressed by Mr ASP, lucky you...)

FYI : Make sure the IUSER has the proper permissions to the dir where your .mdb file sits within each of your web sites.


Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
send parameters from asp page to an asp.net form hastikeyvan ASP.NET 1.0 and 1.1 Basics 2 March 29th, 2008 01:32 AM
using asp.net web user control in asp 3.0 App i_shahid Classic ASP Professional 0 January 8th, 2008 07:32 AM
Custom HTTP 404 Problem w/ASP to ASP.NET kwilliams ASP.NET 2.0 Professional 7 November 26th, 2007 04:17 PM
Upgrading ASP w/ SQLserver 2000 to ASP.NET w/2005 cJeffreywang ASP.NET 2.0 Basics 1 April 5th, 2007 11:30 PM
Porting a sa,ple ASP CR viewer app to ASP.NET jhansen42 Crystal Reports 0 August 29th, 2003 10:26 AM





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