Ask a Question related to Dreamweaver AppDev, Design and Development.
-
GavW #1
ASP Access Database Connection Problem
Hey all!
I'm relatively new to using ASP and i am having difficulty connecting my
Access Database using the application window in Dreamweaver MX 2004.
Here is my connection code:
/connections/tm.asp
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
MM_con_tm_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath("tastymaths.mdb")
%>
I am receiving the following error when attempting to submit a form:
ADODB.Command error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
/reg.asp, line 114
Line 114 of my reg.asp file is as follows:
If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command")
MM_editCmd.ActiveConnection = MM_editConnection (THIS IS LINE 114)
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
does anybody know where i am going wrong?
Thanks
Gavin
GavW Guest
-
Help using Access database connection
I am using access, but when it connects using the supplied driver in CF MX7 suddenly I can see the full path name under for instance my tables in... -
DW8 connection to MS Access database
I'm new to database design and I've been trying to connect to an MS Database on my local computer. I've been going round in circles trying asp,... -
Access DataBase Connection Problem
There is something I don't do right. When setting up the Microsoft Jet Driver for my Access 2000 database connection, I clicked the test button and... -
Access Database connection is not working! Help!
Hi Guys, i had installed the new fix for Dreamweaver MX 2004 for the Windows XP SP2 but i still cannot connect with an Access database on a ASP.NET... -
Access and database connection
I get the following error when I try to run my web page in asp.net. The Microsoft Jet database engine cannot open the file... -
twocans #2
Re: ASP Access Database Connection Problem
Hi yea,
I see your path to your database is incorrect.
to create a dsnless connection you need to have the absolute address to your
database as in
Data Source=C:\Inetpub\wwwroot\FabioDB\fabio.mdb;".
note how my database above is in my c drive etc etc.... and look at where
yours is
tastymaths.mdb in the middle of no where really. so create the correct path
to your db and I think you should be ok. if your using MX2004 the extension
from tom muck below is brilliant. I use it often to get my full path. see it
on the bottom of the page , it is called "Get Database Path"
[url]http://www.basic-ultradev.com/extensions/index.asp?tfm_order=DESC&tfm_orderby=ProductName&o ffset=20[/url]
to use it is simple. first load the extension into dreamweaver and reboot
it. then open dreamweaver create a new page, apply this extension it will
ask you for the name of your database, type in tastymaths.mdb then save the
page and view it in a browser. it will give you the full path to your
database. cut and paste it insidethis is worth a read too> Server.MapPath("tastymaths.mdb").
[url]http://www.webthang.co.uk/tuts/tuts_dmx/gk_cons/cons.asp[/url]
regards
twocans
"GavW" <webforumsuser@macromedia.com> wrote in message
news:d0pk13$l2j$1@forums.macromedia.com...> Hey all!
>
> I'm relatively new to using ASP and i am having difficulty connecting my
> Access Database using the application window in Dreamweaver MX 2004.
>
> Here is my connection code:
>
> /connections/tm.asp
>
> <%
> ' FileName="Connection_odbc_conn_dsn.htm"
> ' Type="ADO"
> ' HTTP="false"
> ' Catalog=""
> ' Schema=""
> MM_con_tm_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> Server.MapPath("tastymaths.mdb")
> %>
>
> I am receiving the following error when attempting to submit a form:
>
> ADODB.Command error '800a0bb9'
>
> Arguments are of the wrong type, are out of acceptable range, or are in
> conflict with one another.
>
> /reg.asp, line 114
>
>
> Line 114 of my reg.asp file is as follows:
>
>
> If (Not MM_abortEdit) Then
> ' execute the insert
> Set MM_editCmd = Server.CreateObject("ADODB.Command")
> MM_editCmd.ActiveConnection = MM_editConnection (THIS IS LINE 114)
> MM_editCmd.CommandText = MM_editQuery
> MM_editCmd.Execute
> MM_editCmd.ActiveConnection.Close
>
>
> does anybody know where i am going wrong?
> Thanks
>
>
> Gavin
>
twocans Guest
-
Gubbins #3
Re: ASP Access Database Connection Problem
hi i agree with twocans but then i use the same conection script oyu do and the
first time i did i got the same error message. i am assuming that you have
created a folder in the wwwroot folder to test you app? if so have you put your
database in the root folder of the site? or in a folder called database? i use
the following MM_connSTS_STRING = 'Provider=Microsoft.Jet.OLEDB.4.0; Data
Source= ' & Server.MapPath('/mainsitefolder/database/sitedatabase.mdb')
this works fine for me when i am testing plus when i upload the site it works
on my remote service provider hope this helps Gubs
Gubbins Guest
-
twocans #4
Re: ASP Access Database Connection Problem
did you try out the tom muck extension, it is really very good for getting
the path.
just out of interest lol
twocans
"Gubbins" <webforumsuser@macromedia.com> wrote in message
news:d0q3v2$j1r$1@forums.macromedia.com...> hi i agree with twocans but then i use the same conection script oyu do
> and the
> first time i did i got the same error message. i am assuming that you have
> created a folder in the wwwroot folder to test you app? if so have you put
> your
> database in the root folder of the site? or in a folder called database? i
> use
> the following MM_connSTS_STRING = 'Provider=Microsoft.Jet.OLEDB.4.0; Data
> Source= ' &
> Server.MapPath('/mainsitefolder/database/sitedatabase.mdb')
> this works fine for me when i am testing plus when i upload the site it
> works
> on my remote service provider hope this helps Gubs
>
twocans Guest
-
BillB #5
Re: ASP Access Database Connection Problem
twocans forgot the link
[url]http://www.tom-muck.com/extensions/help/oledbconnectionString/[/url]
Bill
BillB Guest
-
twocans #6
Re: ASP Access Database Connection Problem
OOpps thanks Bill
"BillB @gmail.com>" <bill.betournay<"spamTrap"> wrote in message
news:d0qt72$qv1$1@forums.macromedia.com...> twocans forgot the link
> [url]http://www.tom-muck.com/extensions/help/oledbconnectionString/[/url]
>
> Bill
>
twocans Guest



Reply With Quote

