Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - C and C++ Programming » UltraLite C/C++ Common API Reference

ULEnableTlsSynchronization function Next Page

ULEnableUserAuthentication function (deprecated)


Enable user authentication in the UltraLite application.

Deprecated function

In versions of UltraLite prior to 10, applications could invoke this function to enable user authentication. Beginning with version 10 of UltraLite, user authentication is enabled by default and cannot be disabled.

Syntax

void ULEnableUserAuthentication( SQLCA * sqlca );

Parameters

sqlca    A pointer to the SQLCA.

In the C++ API use the Sqlca.GetCA method.

Remarks

If this function is not called, you do not need your user to supply a user ID or password to access an UltraLite database. Once this function is called your application must instead supply a valid user ID and password directly. UltraLite databases are created with a single authenticated user ID DBA which has initial password sql (lowercase).

This function can be used in C++ API applications as well as embedded SQL applications. You must call it before a connection is opened.