Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access over UNC

Status
Not open for further replies.

skiflyer

Programmer
Joined
Sep 24, 2002
Messages
2,213
Location
US
I'm trying to connect to an access database over a UNC path (windows)... I can run an is_file, so I'm certain I'm seeing the file... but I can't seem to open the db...

Here's my connection string
Code:
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=".DATABASE.";Mode=ReadWrite;Persist Security Info=False") or die("Could not connect to ".DATABASE);

Where DATABASE is just a constant defining my UNC path to the .mdb file.

Thanks,
Rob
 
Here's the answer to my own question... there's something funky in the ADODB COM connection in that the above always returns false, thereby triggering the die call, but in reality it succeeds and works just fine. So you need to use another form of error checking.... fun.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top