If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Access database connection ...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-04, 20:27
sinoliver sinoliver is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Access database connection ...

Hello all,

i have difficulties to access data, which is in my desktop, from my laptop
under is my code:

'adoCon.Open "Provider=SQLOLEDB; DRIVER={Microsoft Access Driver (*.mdb)}; Data Source=192.168.0.117; DBQ=" & Server.MapPath("Tables.mdb") & ";"

i got error like this:

error typeˇG
Microsoft OLE DB Provider for SQL Server (0x80004005)
invalid connection string

can any one give me some suggestion
Reply With Quote
  #2 (permalink)  
Old 01-12-04, 23:16
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Try something like:

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\iissamples\sdk\asp\database\Auth ors.mdb;Persist Security Info=False"

Your provider is referencing the sql server oledb provider not access.
Reply With Quote
  #3 (permalink)  
Old 01-13-04, 19:51
sinoliver sinoliver is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Thanx rnealejr,

i just succeed this morning, and here is my example, which can share with u guys as an example...^^

adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=\\IP_address\...file_path\Tables.mdb;" & _
"Jet OLEDBatabase Password=my_password;"

the other question is:

Is it possible to read mdb file while that file is openned...??
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On