Advantage SQL Engine
All system procedures that have names prefixed with "sp_mg" can be used to access Advantage Database Server management information. They provide an alternative mechanism to retrieve the same information that the Advantage Management API provides (see the Advantage Client Engine API help file). These procedures provide a way for SQL-only clients to be able to retrieve management information. Because these procedures return information through static SQL cursors, there is more cost involved than if the equivalent API function is called. The management system procedures can be called from both free connections and data dictionary connections. Other system procedures are available to return information about the currently active queries running on the server.