DBGate Sample 13 - Data Types

This example allows you to test supported data types across various data providers.
Behavior may vary; for instance, ODBC drivers might not support datetime2 or spatial data types.

The datatypes table includes fields for the tested data types. You can access the table data through any provider.
The usp_datatypes procedure retrieves data as-is. Note that ODBC and OLEDB providers may not support some types.
The usp_odbc_datatypes procedure selects data with necessary casts to ensure compatibility with ODBC and OLEDB.
You can view the source code for the tables and procedures using the provided links.

OLEDB providers are supported in the .NET Framework but not in .NET Core.

You can open data in the editor. Select your language below and click the links to view JSON data.

SQL Server

System.Data.SqlClientdatatypesusp_datatypesusp_odbc_datatypes$metadata
Microsoft.Data.SqlClientdatatypesusp_datatypesusp_odbc_datatypes$metadata
ODBC Driver 17datatypesusp_datatypesusp_odbc_datatypes$metadata
Source codedatatypesusp_datatypesusp_odbc_datatypes

PostgreSQL

Npgsqldatatypesusp_datatypesusp_odbc_datatypes$metadata
ODBC Driverdatatypesusp_datatypesusp_odbc_datatypes$metadata
Source codedatatypesusp_datatypesusp_odbc_datatypes

MySQL

MySqlConnectordatatypesusp_datatypesusp_odbc_datatypes$metadata
MySql.Data.MySqlClientdatatypesusp_datatypesusp_odbc_datatypes$metadata
ODBC Driverdatatypesusp_datatypesusp_odbc_datatypes$metadata
Source codedatatypesusp_datatypesusp_odbc_datatypes

Conclusion

DBGate supports nearly all data types via ODBC, OLEDB, and .NET data providers.

You can download samples for any supported database platform using the SaveToDB SDK.