r/SQLServer • • Apr 09 '26

Question SQL Server Profiler and Datetime parameters

It really bugs me when running the SQL Server Profiler with datetime type parameters. The captured SQL always has fraction milliseconds. ChatGTP says this is an issue because the datetime is sent as binary but the profiler has problems processing it. This is really a problem when you are troubleshooting SQL statements and the profiler shows your date range with fractional milliseconds. You have to know the profiler has issues and adjust the parameters when testing is SSMS. I am using the latest SSMS/Profiler.

Edit: as many people posted below, SQL Server Profile is deprecated - https://learn.microsoft.com/en-us/sql/tools/sql-server-profiler/sql-server-profiler?view=sql-server-ver17

4 Upvotes

16 comments sorted by

View all comments

Show parent comment

2

u/alinroc 4 Apr 09 '26

However, I would think things should work and be captured properly

Microsoft has been very public for over 15 years about Profiler being deprecated. There has been zero work put into it since 2008R2. Anything added to or fixed/changed in SQL Server or .NET since then will not be available in Profiler.