I am facing some performance problem of production SQL Server Express.
I would like to profile SQL Server using SQL Server profiler.
What I have done so far:
On production machine:
I turned on tracing according this answer:
CMD prompt as admin
net stop MSSQL$SQLEXPRESS
net start MSSQL$SQLEXPRESS /T4032
Now, using the SQL Server Management Studio run the following:
dbcc traceon(3605, -1)
After half day of profiling I downloaded trace file from production server from
C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Log\log.trc
I backuped database and downloaded the backup to developer machine.
On developer machine:
- I restored the backup
- I opened SQL Server 2014 Profiler
- From menu Tools -> Database Tunning advisor
- Connect to server localhost (restored backup)
- Choose workload log.trc (recorded trace from production machine)
- Choose database for workload analysis (restored backup)
- Select database and tables to tune (restored backup)
- menu Action Start Analysis (F5)
I got the following error:
The specified workload (file or table) has no tunable events. Events must be one of following types - SQL:BatchStarting, SQL:BatchCompleted, RPC:Starting, RPC:Completed, SP:StMtStarting, SP:StMtCompleted for workload trace file or table.
Configuration
Production SQL Server Configuration:
SQL Server Express with Advance Services 2012, x64, RTM 11.0.2218
Developer SQL Server configuration:
SQL Server Developer Edition 2012 2014, SP1, x64, 11.0.3156
What Am I doing wrong?