<% Set Conn = Server.Createobject("ADODB.Connection") Conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("database.mdb"),"user" , "password" %>
<% Set Conn = Server.Createobject("ADODB.Connection") Conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("database.mdb"),"user" , "password" %>
<% Set Conn = Server.Createobject("ADODB.Connection") Conn.Open "DSNname (ODBC)","user" , "password" %>
<% Set Conn = Server.Createobject("ADODB.Connection") Conn.Open "DRIVER={MySQL ODBC 5.1 Driver}; SERVER=host;UID=user; " & _ "pwd=password;database=database;option=16384;" %>
<% Set Conn = Server.Createobject("ADODB.Connection") Conn.Open "Driver={SQL Server};Server=host;Database=database;UID=user;PWD=password;" %>
<% Set Conn = Server.CreateObject("ADODB.Connection") Conn.open "DSN=DSNname;UID=user;PWD=password;DATABASE=database" %>
<% Set Conn = Server.CreateObject("ADODB.Connection") Conn.open "PROVIDER=SQLOLEDB;DATA SOURCE=host;UID=user;PWD=password;DATABASE=database" %>
<% Set Conn = Server.Createobject("ADODB.Connection") Conn.Open "Driver={Oracle in OraHome92};DBQ=TNS-NAME;UID=user;PWD=password;" %>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท