Before optimizing your SQL queries, you need to find a query access point. You can usually use SQL Profiler to do this on SQL Server. There is no such tool for Express Edition. But you can go around several queries:
Returns the entire renct request:
SELECT * FROM sys.dm_exec_query_stats order by total_worker_time DESC;
Return only the longest queries:
SELECT total_worker_time, execution_count, last_worker_time, dest.TEXT FROM sys.dm_exec_query_stats AS deqs CROSS APPLY sys.dm_exec_sql_text(deqs.sql_handle) AS dest ORDER BY total_worker_time DESC;
Now you need to know which query needs to be optimized.
source share