数据库连接范例_PHP教程
程序员文章站
2024-04-04 16:07:23
...
OLE DB Method for SQL
set cnn = server.createobject("ADODB.Connection")
cnn.open "PROVIDER=SQLOLEDB;DATA SOURCE=sqlservername;UID=username;PWD=password;DATABASE=databasename "
%>
DSN Less connection for Access
set cnn = server.createobject("ADODB.Connection")
cnn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:anydatabase.mdb"
%>
OLE DB Method for Access
set cnn = server.createobject("ADODB.Connection")
cnn.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=c:anydatabase.mdb"
%>
File DSN Connection Method for Access
cnn.open "FILEDSN=AccessDSN"
%>
set cnn = server.createobject("ADODB.Connection")
cnn.open "PROVIDER=SQLOLEDB;DATA SOURCE=sqlservername;UID=username;PWD=password;DATABASE=databasename "
%>
DSN Less connection for Access
set cnn = server.createobject("ADODB.Connection")
cnn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:anydatabase.mdb"
%>
OLE DB Method for Access
set cnn = server.createobject("ADODB.Connection")
cnn.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=c:anydatabase.mdb"
%>
File DSN Connection Method for Access
cnn.open "FILEDSN=AccessDSN"
%>
推荐阅读
-
数据库连接范例_PHP教程
-
PHP ODBC连接ACCESS数据库失败
-
white PHP_MySQL教程-第二天while循环与数据库操作第1/2页
-
php无法连接mysql问题解决方法总结_PHP教程
-
Android通过webservice连接SQLServer 详细教程(数据库+服务器+
-
php使用sql数据库 获取字段问题介绍_PHP教程
-
PHP连接操作access数据库实例_PHP教程
-
PHP连接MSSQL2008/2005数据库(SQLSRV)配置实例
-
利用数据库日志恢复数据到点的操作_PHP教程
-
php 不能连接数据库 php error Can't connect to local_MySQL