ODBC guide

Read first N messages for a specified user


Gets the first N messages for a user. Supply UserID and PageSize in the WITH clause.

SELECT * FROM get_messages
WITH (UserID='firstname.lastname@domainname.com', PageSize='5')