nSQLHandle = SQLconnect (cSQLDataSource, cSQLUserId, cSQLPassword) If nSQLHandle = -1 << your error handling routine >> endif cSQLString = "Select ... From ..." SQLexec (nSQLHandle, cSQLString, "ResultCursor") Select ResultCursor BrowseSee SQLconnect() and SQLexec() in the help file for details.