Yesterday I posted a method to convert trace files from SQL Server 2012 to SQL Server 2008R2 using a trace table.
As already mentioned in that post, having to load the whole file into a trace table has many shortcomings:
- The trace file can be huge and loading it into a trace table could take forever
- The trace data will consume even more space when loaded into a SQL Server table
- The table has to be written back to disk in order to obtain the converted file
- You need to have Profiler 2008 in order to write a trace in the "old" format
- You need to have a SQL Server 2008 instance to dump the trace table back to the file, as Profiler 2008 won't connect to a SQL Server 2012
That said, it would really be useful if the file could be updated in place, changing just the version byte...
No worries: PowerShell to the rescue!
[Read More]