Accessing and Changing Relational Data

Moving Data to Program Variables

Applications accessing Microsoft® SQL Server™ 2000 databases through a database application programming interface (API) must move data between application variables and:

Many database APIs use the concept of binding to specify how the data is to be moved between an application variable and the SQL Server object. Database APIs provide functions that an application can call to:

Data movement typically occurs:

The bound application variables are not required to have the same data type as the SQL Server object to which they are bound. If the data types are different, the OLE DB provider or ODBC driver converts the data when it is moved. The set of conversions supported by each OLE DB provider and ODBC driver are specified in the documentation for the provider or driver.

See Also

Using Variables and Parameters