Connecting to a Microsoft Access database with ASP.NET

by RameshKumar 2008-07-16 16:24:14


To use a Microsoft Access Database (.mdf file), you will need to create a folder in your web space (inside the httpdocs folder) and give this folder full write permissions using the file manager in your Plesk control panel (click the padlock icon next to the folder you have created to set the permissions).

There is a tutorial to show you how to use the file manager here.

Once the database has been uploaded, you may wish to setup an ODBC connection to the database for easier connection.

If you want to connect to the database using your scripts, you can use:

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Inetpubvhostsyourdomain.comhttpdocsfolderyourcreateddatabase.mdf" '## MS Access 2000

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingConnectionToAccessDatabase.asp

http://www.basic-ultradev.com/articles/ADOConnections




http://www.aspfree.com/c/a/Microsoft-Access/Connecting-to-a-Microsoft-Access-database-with-ASPNET/2/

Tagged in:

2141
like
0
dislike
0
mail
flag

You must LOGIN to add comments