ASP.NET Connection Access

xiaoxiao2021-03-06  57

Connection method for Access database

String connectionstring = @ "provider = microsoft.jet.Oledb.4.0; data source = d: /test/aboutpool/mydb.mdb;"; oledbconnection conn = new oledbconnection (connectionString);

Use Access in the virtual host

// c # oledbconnection1.connectionstring = "provider = microsoft.jet.OleDb.4.0;" "data source =" server.mappath (configurationSettings.appsettings ");" DatabasePath "]);

转载请注明原文地址:https://www.9cbs.com/read-118037.html

New Post(0)