다음을 통해 공유


CreateSqlConnection 메서드

Creates a connection to the server.

네임스페이스:  Microsoft.SqlServer.Management.MultiServerConnection
어셈블리:  Microsoft.SqlServer.Management.MultiServerConnection(Microsoft.SqlServer.Management.MultiServerConnection.dll)

구문

‘선언
Public Function CreateSqlConnection As SqlConnection
‘사용 방법
Dim instance As MultiServerSqlConnectionInfo
Dim returnValue As SqlConnection

returnValue = instance.CreateSqlConnection()
public SqlConnection CreateSqlConnection()
public:
SqlConnection^ CreateSqlConnection()
member CreateSqlConnection : unit -> SqlConnection 
public function CreateSqlConnection() : SqlConnection

반환 값

유형: System.Data.SqlClient. . :: . .SqlConnection
A SqlConnection which represents a connection to the server..