Gets or sets a string value that indicates the type system the application expects.
Assembly: System.Data (in System.Data.dll)
Property ValueType: System.String
The following table shows the possible values for the property:
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.
SQL Server 2008
Uses the SQL Server 2008 type system.
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.