ASP and database connections

xiaoxiao2021-03-06  42

Previously developed the webpage is developed with Access, I know that this thing is not good, but there is no way, now this technology, so I have always upgraded my own things, maybe this is not a problem for others, but for me For it, I have learned a lot of things, hey, let's write the following, so as not to forget it later!

'MS Access

StrConn = "provider = microsoft.jet.Oledb.4.0; data source =" & server.mappath (mdbpath)

'MS SQL

'strconn = "provider = sqloledb; user ID = user ID; password = user password; initial catalog = database; data source = machineinename

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

New Post(0)