Contains the methods and properties used by SMO connections.
The following tables list the members exposed by the SMOServerConn type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| SMOServerConn | Overloaded. Initializes a new instance of the SMOServerConn class. | 
顶部
Public Properties
| 名称 | Description | |
|---|---|---|
| .gif) .gif) | ConnectionDescription | Gets the description of the connection manager for the SMO connection. | 
| .gif) .gif) | ConnectionDisplayName | Returns the localized display name of the connection. | 
| .gif) | ConnectionString | Overridden. Gets or sets the connection string for the SMO connection. | 
| .gif) | Password | Sets the password for the connection, if you do not use Windows Authentication. | 
| .gif) | ProtectionLevel | Gets or sets a value, by using the DTSProtectionLevel enumeration, that enforces how the connection controls sensitive information. (inherited from ConnectionManagerBase) | 
| .gif) | SqlServerName | Gets or sets a String that contains the name of the SQL Server to which you want to make the SMO connection. | 
| .gif) | SupportsDTCTransactions | Returns a Boolean that indicates if the connection supports Microsoft Distributed Transaction Coordinator (MS DTC) transactions. (inherited from ConnectionManagerBase) | 
| .gif) | UserName | Gets or sets the user name for the connection, if you do not use Windows Authentication. | 
| .gif) | UseWindowsAuthentication | Gets or sets a Boolean that indicates if Windows Authentication is used for the connection. | 
| .gif) | Version | Returns the version of this connection manager. (inherited from ConnectionManagerBase) | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | Description | |
|---|---|---|
| .gif) | AcquireConnection | Overridden. Establishes the SMO connection and returns a connection object. | 
| .gif) | CanUpdate | (inherited from ConnectionManagerBase ) | 
| .gif) | Equals | Overloaded. (inherited from DtsObject ) | 
| .gif) | GetHashCode | Returns the hash code for this instance. (inherited from DtsObject) | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) | LoadFromXML | This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method. | 
| .gif) .gif) | op_Equality | (inherited from DtsObject ) | 
| .gif) .gif) | op_Inequality | (inherited from DtsObject ) | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | ReleaseConnection | (inherited from ConnectionManagerBase ) | 
| .gif) | SaveToXML | This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method. | 
| .gif) | SetQualifier | (inherited from ConnectionManagerBase ) | 
| .gif) | ToString | (inherited from Object ) | 
| .gif) | Update | (inherited from ConnectionManagerBase ) | 
| .gif) | Validate | (inherited from ConnectionManagerBase ) | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | Finalize | (inherited from Object ) | 
| .gif) | MemberwiseClone | (inherited from Object ) | 
顶部
请参阅
参考
SMOServerConn Class
Microsoft.SqlServer.Dts.ManagedConnections Namespace