xSQL.Schema.SqlServer Namespace > SqlServer Class > SqlServer Constructor : SqlServer Constructor(String,SqlAuthenticationTypeEnum,String,String) |
'Declaration Public Function New( _ ByVal serverName As System.String, _ ByVal authType As xSQL.Utils.SqlAuthenticationTypeEnum, _ ByVal username As System.String, _ ByVal password As System.String _ )
public SqlServer( System.string serverName, xSQL.Utils.SqlAuthenticationTypeEnum authType, System.string username, System.string password )
public: SqlServer( System.string* serverName, xSQL.Utils.SqlAuthenticationTypeEnum authType, System.string* username, System.string* password )
Exception | Description |
---|---|
System.ArgumentNullException | The serverName parameter is null or The username parameter is null and the authType is xSQL.Utils.SqlAuthenticationTypeEnum.SqlServerAuthentication or xSQL.Utils.SqlAuthenticationTypeEnum.ActiveDirectoryPasswordAuthentication. or The password parameter is null and the authType is xSQL.Utils.SqlAuthenticationTypeEnum.SqlServerAuthentication or xSQL.Utils.SqlAuthenticationTypeEnum.ActiveDirectoryPasswordAuthentication. |
System.ArgumentException | The serverName parameter is an empty string or The username parameter is an empty string and the authType is xSQL.Utils.SqlAuthenticationTypeEnum.SqlServerAuthentication or xSQL.Utils.SqlAuthenticationTypeEnum.ActiveDirectoryPasswordAuthentication. or The password parameter is an empty string and the authType is xSQL.Utils.SqlAuthenticationTypeEnum.SqlServerAuthentication or xSQL.Utils.SqlAuthenticationTypeEnum.ActiveDirectoryPasswordAuthentication. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2