jsp+mysql
<%
// FileName="mysql_jdbc_conn.htm"
// Type="JDBC" ""
// DesigntimeType="JDBC"
// HTTP="true"
// Catalog=""
// Schema=""
String MM_intershopcon_DRIVER = "org.gjt.mm.mysql.Driver";
String MM_intershopcon_USERNAME = "数据库用户";
String MM_intershopcon_PASSWORD = "密码";
String MM_intershopcon_STRING = "jdbc:mysql://localhost/intershop?useUnicode=true&characterEncoding=gbk";
%>
asp+access
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_guest_link_STRING
MM_guest_link_STRING = "dsn=guest_data;"
%>
ConnStr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " & Server.MapPath("数据库路径")
On Error Resume Next
Set conn = Server.CreateObject("ADODB.Connection")
conn.open ConnStr