Export (0) Print
Expand All

SqlConnectionStringBuilder.TypeSystemVersion Property

Gets or sets a string value that indicates the type system the application expects.

Namespace: System.Data.SqlClient
Assembly: System.Data (in system.data.dll)

public string TypeSystemVersion { get; set; }
/** @property */
public String get_TypeSystemVersion ()

/** @property */
public void set_TypeSystemVersion (String value)

public function get TypeSystemVersion () : String

public function set TypeSystemVersion (value : String)

Not applicable.

Property Value

The following table shows the possible values for the TypeSystemVersion property:

Value

Description

SQL Server 2000

Uses the SQL Server 2000 type system. The following comparisons will be performed when connecting to a SQL Server 2005 instance:

XML to NTEXT

UDT to VARBINARY

VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) to TEXT, NEXT and IMAGE respectively.

SQL Server 2005

Uses the SQL Server 2005 type-system. No conversions are made for the current version of ADO.NET.

Latest

Use the latest version than this client-server pair can handle. This will automatically move forward as the client and server components are upgraded.

The TypeSystemVersion property can be used to specify a down-level version of SQL Server for applications written against that version. This avoids possible problems with incompatible types in a newer version of SQL Server that may cause the application to break. For example, setting TypeSystemVersion property to "SQL Server 2000" when connecting to a SQL Server 2005 instance exposes the 2000 type system to the application.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft