ServerConnection Methods
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
BeginTransaction |
Starts a transaction on the referenced connection.
|
|
Cancel |
Cancels the connection.
|
|
ChangePassword | Overloaded.
Changes the logon password that is used with standard authentication.
|
|
CommitTransaction |
Commits the current transaction on the referenced connection.
|
|
Connect |
Connects to the instance of SQL Server.
(inherited from ConnectionManager ) |
|
Copy |
Returns a copy of the ServerConnection object.
|
|
Disconnect |
Disconnects from the instance of SQL Server.
(inherited from ConnectionManager ) |
|
Equals | Overloaded. (inherited from Object ) | |
ExecuteNonQuery | Overloaded.
Executes a statement that does not return a result set.
|
|
ExecuteReader |
Executes Transact-SQL statements that return one or multiple result sets.
|
|
ExecuteScalar | Overloaded.
Executes a Transact-SQL statement and returns the first column of the first row as a value type.
|
|
ExecuteWithResults | Overloaded.
Executes one or more Transact-SQL statements that return one or more result sets.
|
|
GetHashCode | (inherited from Object ) | |
GetType | (inherited from Object ) | |
IsInFixedServerRole |
Tests whether the logon associated with the referenced connection is a member of the specified fixed server role.
|
|
ReferenceEquals | (inherited from Object ) | |
RollBackTransaction |
Rolls back the current transaction.
|
|
ToString |
Returns the referenced object name as a string.
(inherited from ConnectionSettings ) |
Protected Methods
Name | Description | |
---|---|---|
CheckServerVersion | (inherited from ConnectionManager ) | |
Finalize | (inherited from Object ) | |
MemberwiseClone | (inherited from Object ) | |
ThrowIfPropertyNotSet | Overloaded. (inherited from ConnectionSettings ) |
See Also
Reference
ServerConnection Class
Microsoft.SqlServer.Management.Common Namespace
Other Resources
How to: Connect to the Local Instance of SQL Server by Using Windows Authentication in Visual Basic .NET
Connecting to an Instance of SQL Server