For SQL Server, use SQL Profiler to obtain the query execution plan. SQL Profiler can be configured to obtain the plan after a query is run from the FileNet P8 application through Content Platform Engine.