반응형
[ODBC ]
Dim DBCon
Set DBCon= Server.CreateObject("ADODB.Connection")
DBCon.Open "DSN=aaa"
또는
DBCon.Open "DSN=aaa;uid=aa;pwd=aaa"
[OLE DB - Microsoft.jet.OLEDB]
Dim DBCon
Set DBCon= Server.CreateObject("ADODB.Connection")
DBCon.Open "Provider=Microsoft.jet.OLEDB.4.0;Data Source=D:\~~\aa.mdb"
[OLE DB - SQLOLEDB]
Dim DBCon
Set DBCon= Server.CreateObject("ADODB.Connection")
DBCon.Open "Provider=SQLOLEDB;Data Source=mysql;Initial Catalog=aa;user ID=aaa;password=aa"
반응형
'개발 > ASP' 카테고리의 다른 글
[asp] Set Dim (0) | 2014.01.14 |
---|---|
[asp] web.config (0) | 2014.01.13 |