BindSection()


" "

short BindSection(BSTR CollectionName, BSTR PackageName, short SectionNumber, BSTR SQLText)

Description

This function sets the SQL text to be used in the specified section number of the collection and package during binding.

Parameters


Name Description
CollectionName The collection ID of the package that you want to bind.
PackageName The name of the package that you want to bind.
SectionNumber The section number of the statement within the collection and package that you want to bind.
SQLText The SQL text for the statement that you want to bind.

Return Value

The return value will be zero if successful or non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.