Supporting the Open Data Services ODBC Driver at the Server

At the server, the Open Data Services gateway application must be able to pass dynamic information about the back-end data source to the Open Data Services ODBC driver in an expected format. This type of information includes system catalog information (such as available tables and indexes) and result set information (such as column names and datatypes).

To return system catalog information, the Open Data Services gateway must adapt the catalog stored procedures that are defined for SQL Server. These catalog stored procedures are used in the same way that the SQL Server catalog stored procedures are used: They obtain schema information which can only be determined by interrogating the underlying system tables. To pass information back to the Open Data Services ODBC driver about the datatypes in the columns of a results set, the gateway can use a special encoding of the SQL Server user-defined datatype field.