Ask a Question related to ASP Database, Design and Development.
-
Doug Parker #1
please help connecting to access database
i'm trying to connect to an access database on an asp ready server.
i know the ftp login information - does that apply to logging into the
database string as well?
will this work?
Provider=MSDASQL.1;Password=*****;PersistSecurityI nfo=True;UserID=username;
please help, i'm a php/mysql programmer and i don't understand why this is
so difficult. i'm think i'm losing my mind.
Doug Parker Guest
-
Connecting to MS Access Database
Hello, Do you know any free Director Xtra to connect to an access database? Thanx for help. -
Connecting to an MS Access Database
Hello, Do you know any free Director Xtra to connect to an access database? Thanx for help. -
Problem connecting to an access database from an asp
Stupid question: Does this page have a .asp extension? Ray at home "Kathryn" <andania1@hotmail.com> wrote in message... -
connecting access (*.mdb) database with PHP
how can I connect access database(*.mdb) with php? what is the code? I will be happy if you write php code. Thank you! ... -
connecting to access database
How can we connect microsoft access database(*.mdb) or excel(*.xls) with php? What are the codes which achieve this? ... -
Jeff Cochran #2
Re: please help connecting to access database
On Thu, 15 Apr 2004 13:26:27 -0400, "Doug Parker"
<drparker@phreshdesign.com> wrote:
Maybe. Maybe not. If the passwords and accounts are idnetical, yes.>i'm trying to connect to an access database on an asp ready server.
>i know the ftp login information - does that apply to logging into the
>database string as well?
Might look at some tutorials:>will this work?
>
>Provider=MSDASQL.1;Password=*****;PersistSecurity Info=True;UserID=username;
>
>
>please help, i'm a php/mysql programmer and i don't understand why this is
>so difficult. i'm think i'm losing my mind.
[url]http://www.able-consulting.com/ADO_Conn.htm[/url]
[url]http://www.tutorial-web.com/asp/database/[/url]
[url]http://www.vallin.com/pub/1/asp1.asp[/url]
And of course:
[url]http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=asp+database+tutorial[/url]
Jeff
Jeff Cochran Guest
-
Bob Barrows [MVP] #3
Re: please help connecting to access database
Doug Parker wrote:
Provider=MSDASQL.1;Password=*****;PersistSecurityI nfo=True;UserID=username;> i'm trying to connect to an access database on an asp ready server.
> i know the ftp login information - does that apply to logging into the
> database string as well?
>
> will this work?
>
>Go to [url]www.able-consulting.com/ado_conn.htm[/url] and look up the appropriate>
>
> please help, i'm a php/mysql programmer and i don't understand why
> this is so difficult. i'm think i'm losing my mind.
connection string that uses the native Jet OLEDB provider.
For a non-password-protected database, the string can be as simple as:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=p:\ath\to\database.mdb
The IUSR_machinename account on the machine needs to have Change
(read/write/delete) permissions on the p:\ath\to folder.
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
Doug Parker #4
Re: please help connecting to access database
i apologize in advance - i've read every tutorial i could find on the
subject, i just can't read another one. i'd really appreciate it if you
guys would continue to walk me through it.
did this:
set conn = Server.CreateObject("ADODB.Connection")
sConn = "Provider=MSDASQL;" & _
"Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=/db/boonton.mdb;"
conn.Open sConn
got this:
Microsoft][ODBC Microsoft Access Driver]General error Unable to open
registry key 'Temporary (volatile) Jet DSN for process 0x744 Thread 0x3f0
DBC 0x884b6e4 Jet'.
/calibration/config1.asp, line 14
"Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
news:4085c726.17207272@msnews.microsoft.com...is> On Thu, 15 Apr 2004 13:26:27 -0400, "Doug Parker"
> <drparker@phreshdesign.com> wrote:
>>> >i'm trying to connect to an access database on an asp ready server.
> >i know the ftp login information - does that apply to logging into the
> >database string as well?
> Maybe. Maybe not. If the passwords and accounts are idnetical, yes.
>>> >will this work?
> >
>Provider=MSDASQL.1;Password=*****;PersistSecurity Info=True;UserID=username;> >
> >
> >please help, i'm a php/mysql programmer and i don't understand why this[url]http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=asp+database+tutorial[/url]>> >so difficult. i'm think i'm losing my mind.
> Might look at some tutorials:
>
> [url]http://www.able-consulting.com/ADO_Conn.htm[/url]
> [url]http://www.tutorial-web.com/asp/database/[/url]
> [url]http://www.vallin.com/pub/1/asp1.asp[/url]
>
> And of course:
>
>>
> Jeff
Doug Parker Guest
-
Aaron Bertrand [MVP] #5
Re: please help connecting to access database
>i apologize in advance - i've read every tutorial i could find on the
Are you really that lazy? How do you expect to learn anything if all you do> subject, i just can't read another one. i'd really appreciate it if you
> guys would continue to walk me through it.
is expect people to hand you the answers? What are you going to do when you
get your connection string working and you don't know how to write a SELECT
statement? More handouts?
I'm all for helping people learn. I'm *NOT* very fond of being told that
rather than provide pointers I should write someone's code for them. Next
you'll be asking me to wash your dishes.
You've mixed up all kinds of garbage from all kinds of different places.> set conn = Server.CreateObject("ADODB.Connection")
> sConn = "Provider=MSDASQL;" & _
> "Driver={Microsoft Access Driver (*.mdb)};" & _
> "Dbq=/db/boonton.mdb;"
> conn.Open sConn
First off, decide whether you want to use Access or SQL Sevrer. Then, try
to make sure you use a JET OLEDB driver. Finally, keep in mind that the DBQ
value is expecting a *LOCAL* path. It has no idea what /db/ is.
Set conn = CreateObject("ADODB.Connection")
sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath("/db/boonton.mdb")
conn.open sConn
[url]http://www.aspfaq.com/2126[/url]
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand [MVP] Guest
-
Doug Parker #6
Re: please help connecting to access database
got it, thanks for your help.
solution:
set conn = Server.CreateObject("ADODB.Connection")
sConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
server.mappath("boonton.mdb")
conn.Open sConn
"Doug Parker" <drparker@phreshdesign.com> wrote in message
news:#U8UxKxIEHA.2480@tk2msftngp13.phx.gbl...[url]http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=asp+database+tutorial[/url]> i apologize in advance - i've read every tutorial i could find on the
> subject, i just can't read another one. i'd really appreciate it if you
> guys would continue to walk me through it.
>
> did this:
>
> set conn = Server.CreateObject("ADODB.Connection")
> sConn = "Provider=MSDASQL;" & _
> "Driver={Microsoft Access Driver (*.mdb)};" & _
> "Dbq=/db/boonton.mdb;"
> conn.Open sConn
>
> got this:
>
> Microsoft][ODBC Microsoft Access Driver]General error Unable to open
> registry key 'Temporary (volatile) Jet DSN for process 0x744 Thread 0x3f0
> DBC 0x884b6e4 Jet'.
> /calibration/config1.asp, line 14
>
>
>
> "Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
> news:4085c726.17207272@msnews.microsoft.com...>> > On Thu, 15 Apr 2004 13:26:27 -0400, "Doug Parker"
> > <drparker@phreshdesign.com> wrote:
> >> >> > >i'm trying to connect to an access database on an asp ready server.
> > >i know the ftp login information - does that apply to logging into the
> > >database string as well?
> > Maybe. Maybe not. If the passwords and accounts are idnetical, yes.
> >> >> > >will this work?
> > >
>Provider=MSDASQL.1;Password=*****;PersistSecurity Info=True;UserID=username;> is> > >
> > >
> > >please help, i'm a php/mysql programmer and i don't understand why this>> >> > >so difficult. i'm think i'm losing my mind.
> > Might look at some tutorials:
> >
> > [url]http://www.able-consulting.com/ADO_Conn.htm[/url]
> > [url]http://www.tutorial-web.com/asp/database/[/url]
> > [url]http://www.vallin.com/pub/1/asp1.asp[/url]
> >
> > And of course:
> >
> >>> >
> > Jeff
>
Doug Parker Guest
-
Aaron Bertrand [MVP] #7
Re: please help connecting to access database
Great, now please read [url]http://www.aspfaq.com/2126[/url] to see why you should
change from using the ODBC driver to the JET OLEDB driver.
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"Doug Parker" <drparker@phreshdesign.com> wrote in message
news:eQ9IRcxIEHA.2948@TK2MSFTNGP11.phx.gbl...> got it, thanks for your help.
>
> solution:
>
> set conn = Server.CreateObject("ADODB.Connection")
> sConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
> server.mappath("boonton.mdb")
> conn.Open sConn
Aaron Bertrand [MVP] Guest
-
Bob Barrows [MVP] #8
Re: please help connecting to access database
Doug Parker wrote:
This is the wrong solution. The correct solution is:> got it, thanks for your help.
>
> solution:
>
> set conn = Server.CreateObject("ADODB.Connection")
> sConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
> server.mappath("boonton.mdb")
> conn.Open sConn
>
sConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & server.mappath("boonton.mdb")
The ODBC provider has been deprecated. You should use the native OLEDB
provider when one exists.
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest



Reply With Quote

