DSNless connection string



DSNless connection string for use with .mdb MS Access, etc.:

"DRIVER={Microsoft Access Driver (*.mdb)};
DBQ=C:\inetpub\vhosts\yourdomain.com\database.mdb"

Or

conn.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("./db/database.mdb")



Esta resposta lhe foi útil?

 Imprimir este Artigo

Veja também

What to use for MSSQL database connection string?

Please use following connection string syntax for connecting MSSQL DB from your ASP/.NET...

Custom error pages or 404's in Plesk

Setting Up Custom Error Documents on Plesk 11 Windows   In order to setup custom error...

Connecting to my database remotely?

Remote database connections to MySQL/MSSQL are not supported on our shared/reseller hosting...

How do I publish using Web Deploy?

For detailed instructions for publishing using Web Deploy:...

Plesk says ASP.NET 4.0, but I need 4.5

It's because 4.5 is simply an update of 4.0, therefore in Plesk the version appears as 4.0...