This sample demonstrates how easy it is to create a dynamic SQL processor using the ODBC Broker. The function is capable of processing any SQL statement in Data Definition Language (DDL), Data Manipulation Language (DML) and Data Control Language (DCL) if supported by the ODBC driver. /* the ExecuteSQL function is a dynamic SQL processor. It requires two arguments: an ODBC data source name (DSN) and an SQL statement. The DSN can also be a connect string in a format of DSN=DataSourceName;UID=YourUserId;PWD=YourPassword*/ long ExecuteSQL(const char * szDataSource, const char * szSQL) |
Send mail to info2-at-sqldata-dot-com with questions or comments about
this web site.
|