Checks the status of an option set by SqlSetOpt%.
SqlIsOpt% ( sqlconn%, opt%, optparam$ )
where
If an option does not take a parameter, optparam$ is ignored. If an option does take a parameter, optparam$ is ignored for all options except SQLOFFSET and SQLSTAT.
The SQLOFFSET and SQLSTAT options can have several settings, each with a different parameter. In these cases, SqlIsOpt% needs a valid optparam$ to determine which option parameter to check.
For a list of the options available in DB-Library for Visual Basic, see DB-Library for Visual Basic Options.
SUCCEED (1) or FAIL (0).
Although you can set and clear SQL Server query options directly through Transact-SQL, design your application to use SqlSetOpt% and SqlClrOpt% to set and clear options because these functions provide a uniform interface for setting both SQL Server and Visual Basic options. With these functions, your application can also use SqlIsOpt% to check the status of an option. For a list of each option in DB-Library for Visual Basic and its default status, see DB-Library for Visual Basic Options.
SqlClrOpt%, SqlSetOpt%; DB-Library for Visual Basic Options