Results Processing

When dbsqlexec or dbsqlok returns SUCCEED, it indicates that Microsoft® SQL Server™ has successfully executed a command batch. At that point, the application must process any results. The SELECT statement and EXECUTE statements that contain SELECT statements both return result rows. INSERT statements and most other Transact-SQL statements also return data needed by DB-Library.

The following list describes the two types of result rows:

Because these two types of rows contain different data, the application must process them separately.

The result for each statement in a batch is returned to the application separately. Within each statement’s set of results, the result rows are processed one at a time.

The results for each statement in the batch must be set up separately with dbresults.

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.