Executes a Transact-SQL statement on a database. Returns results in a QueryResults object.
QueryResults = Database.ExecuteWithResults ( [Command :=] strSQLStatement )
HRESULT pDatabase->ExecuteWithResults (
SQLOLE_LPCSTR strSQLStatement,
LPSQLOLEQUERYRESULTS* ppQueryResults );
Element | Type | Description |
---|
QueryResults | QueryResults | Returned QueryResults object |
strSQLStatement | String | SQL statement |
The contents of the QueryResults object depend on the Transact-SQL statement.
EXECUTE