C# Class Microsoft.SqlServer.TDS.TDSVersion

TDS version routines
显示文件 Open project: dotnet/corefx

Public Properties

Property Type Description
SqlServer2005 System.Version
SqlServer2008 System.Version
SqlServer2010 System.Version

Public Methods

Method Description
GetTDSVersion ( System.Version buildVersion ) : System.Version

Map SQL Server build version to TDS version

IsSupported ( System.Version tdsVersion ) : bool

Check whether TDS version is supported by server

Resolve ( System.Version tdsServer, System.Version tdsClient ) : System.Version

Resolve conflicts between client and server TDS version

Method Details

GetTDSVersion() public static method

Map SQL Server build version to TDS version
public static GetTDSVersion ( System.Version buildVersion ) : System.Version
buildVersion System.Version Build version to analyze
return System.Version

IsSupported() public static method

Check whether TDS version is supported by server
public static IsSupported ( System.Version tdsVersion ) : bool
tdsVersion System.Version
return bool

Resolve() public static method

Resolve conflicts between client and server TDS version
public static Resolve ( System.Version tdsServer, System.Version tdsClient ) : System.Version
tdsServer System.Version Version of the server
tdsClient System.Version Version of the client
return System.Version

Property Details

SqlServer2005 public_oe static_oe property

Yukon TDS version
public static Version,System SqlServer2005
return System.Version

SqlServer2008 public_oe static_oe property

Katmai TDS version
public static Version,System SqlServer2008
return System.Version

SqlServer2010 public_oe static_oe property

Denali TDS version
public static Version,System SqlServer2010
return System.Version