Creates a handle of a request, which can then be executed using DatabaseRead().
[in] Database handle received in DatabaseOpen().
[in] SQL request that may contain automatically substituted parameters named ?1,?2,...
[in] Automatically substituted request parameters.
If successful, the function returns a handle for the SQL request. Otherwise, it returns INVALID_HANDLE. To get the error code, use GetLastError(), the possible responses are:
The DatabasePrepare() function does not perform a request to a database. Its purpose is to verify the request parameters and return the handle for executing the SQL request based on the verification results. The request itself is set during the DatabaseRead() first call.