For SQL Server ODBC Driver
' VB.NET
Imports System.Data.Odbc
...
Dim oODBCConnection As OdbcConnection
Dim sConnString As String = _
"Driver={SQL Server};" & _
"Server=MySQLServerName;" & _
"Database=MyDatabaseName;" & _
"Uid=MyUsername;" & _
"Pwd=MyPassword"
oODBCConnection = New Odbc.OdbcConnection(sConnString)
oODBCConnection.Open()
For Oracle ODBC Driver
' VB.NET
Imports System.Data.Odbc
...
Dim oODBCConnection As OdbcConnection
Dim sConnString As String = _
"Driver={Microsoft ODBC for Oracle};" & _
"Server=OracleServer.world;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
oODBCConnection = New Odbc.OdbcConnection(sConnString)
oODBCConnection.Open()
For Access (JET) ODBC Driver
' VB.NET
Imports System.Data.Odbc
...
Dim oODBCConnection As OdbcConnection
Dim sConnString As String = _
"Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=c:\somepath\mydb.mdb;" & _
"Uid=Admin;" & _
"Pwd="
oODBCConnection = New Odbc.OdbcConnection(sConnString)
oODBCConnection.Open()
For Sybase System 11 ODBC Driver
' VB.NET
Imports System.Data.Odbc
...
Dim oODBCConnection As OdbcConnection
Dim sConnString As String = _
"Driver={Sybase System 11};" & _
"SRVR=mySybaseServerName;" & _
"DB=myDatabaseName;" & _
"UID=myUsername;" & _
"PWD=myPassword"
oODBCConnection = New OdbcConnection(sConnString)
oODBCConnection.Open()
For all other ODBC Drivers
' VB.NET
Imports System.Data.Odbc
...
Dim oODBCConnection As OdbcConnection
Dim sConnString As String = "Dsn=myDsn;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
oODBCConnection = New Odbc.OdbcConnection(sConnString)
oODBCConnection.Open()
2004/12/21
ADO.NET DB연결 문자열 - System.Data.ODBC
가장 많이 본 글
-
이벤트 형식: 경고 이벤트 원본: LSASRV 이벤트 범주: SPNEGO (Negotiator) 이벤트 ID: 40961 날짜: 2010-07-17 시간: 오후 9:41:32 사용자: N/A 컴퓨터: ACTIVEJH 설명: 보안 시스템에서 DNS...
-
IIS 5/6 에서는 사이트 수준 또는 특정 경로 수준에서의 "실행 권한" 설정이 가능합니다. 주로 실행 권한이 필요없는 업로드 자료실 같은 경우 입니다. Metabase 에서는 AccessFlags Property 입니다. htt...
-
원격 데스크톱 연결의 취약점으로 인한 원격 코드 실행 문제점(970927) http://www.microsoft.com/korea/technet/security/bulletin/ms09-044.mspx 이 보안 업데이트는 Microsoft 원격 데스크...
댓글 없음:
댓글 쓰기