cablecar
10-22-2009, 10:56 PM
Hi folks,
Is anyone using MS Access database for their apps? I'm wondering how do I connect to an access database? I get the ff error:
Unable to connect to database. Not a valid file name. Please also: Search online help for Configure an application with Microsoft Access database for IIS 7.
This is the connection string I used:
<add name="MyDatabase.mdb1" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=http:\\www.domain.net\_database\mydatabase. mdb;Jet OLEDB:Database Password=mypassword;Jet OLEDB:Database Locking Mode=1;Mode=16" providerName="System.Data.OleDb" />
At my local machine, I just gave full permission to Network Service and provided the Data Source's physical path (e.g. 'E:\mydatabase.mdb' unlike my connection string above.) and everything works fine.
It's a small application for a non profit association, so a free database such as MS Access is very appropriate.
I was advised that I would need to have a SQL Database to use the MDF tool or connect to it programmatically...but how to?
Thanks in advance for the help!:D
Is anyone using MS Access database for their apps? I'm wondering how do I connect to an access database? I get the ff error:
Unable to connect to database. Not a valid file name. Please also: Search online help for Configure an application with Microsoft Access database for IIS 7.
This is the connection string I used:
<add name="MyDatabase.mdb1" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=http:\\www.domain.net\_database\mydatabase. mdb;Jet OLEDB:Database Password=mypassword;Jet OLEDB:Database Locking Mode=1;Mode=16" providerName="System.Data.OleDb" />
At my local machine, I just gave full permission to Network Service and provided the Data Source's physical path (e.g. 'E:\mydatabase.mdb' unlike my connection string above.) and everything works fine.
It's a small application for a non profit association, so a free database such as MS Access is very appropriate.
I was advised that I would need to have a SQL Database to use the MDF tool or connect to it programmatically...but how to?
Thanks in advance for the help!:D