I understood the concept of Extended Events and SQL Server Profiler, I felt like both of them do the same work. I could not understand the major difference between them. Can anyone explain me the major difference between Extended Events and SQL Server Profiler? And when can we use in production environment? Is SQL Server Profiler preferable for production servers?
Extended Events and SQL Server Profiler
432 Views Asked by Rajesh At
1
There are 1 best solutions below
Related Questions in SQL-SERVER-2012
- Able to initially retrieve string from varbinary but not able to retrieve it again after setting it from ascii file?
- ASP.NET Core web application running slow & occasionally timing out while running large queries to database after updating to .NET 8
- Connecting to API via Microsoft SQL Server 2012
- SQL Substring from a column of strings
- Sum time of consecutive rows with condition of filed
- Trying to delete records from a table that has 20 million records
- CROSS JOIN and STDistance to find closest point
- Getting the Penultimate Record from a Table Sorted by Descending ID
- Make 1 row result from two result using SQL Server
- How can I reliably store an ID so that I can use it in another INSERT statement?
- How can I add a whole column of data as a row?
- SQL loop invalid because no scalar variable?
- Not understanding why this .bat file is only pulling some XML info and not all
- SQL Hierarchy Fill Down
- Row Number to give same value when same partition
Related Questions in SQL-SERVER-ADMINISTRATION
- SQL Server 2019 user is dropped from database but error log says couldn't remove
- Blocking access to specific tables
- Active list of users in SQL Server SQL Database
- Default dbo schema for user from ACL group
- There is any option to run sp_addmessage in Google Cloud SQL Server
- SQL Server Agent new Job dependency on existing Step of an existing Job
- How to security access onprem database from Azure AppService
- I have problem when I config a distributed always on availability group
- Can SQL Azure Globan Admin & created user passwords be reset/changed?
- Extended Events and SQL Server Profiler
- Detaching a database as a backup strategy
- SQL Server Connection error: Setting IsolationLevel to ReadCommitted is not supported
- The transaction log for database 'tempdb' is full
- Prevent user from set DB to a single user mode
- Error message from database execution: Access to the remote server is denied because no login-mapping exists
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Profiler uses under the hood an outdatated and already deprecated technology, called SQL Trace. It isn't updated anymore to be possible to monitor newer engine functionality, e.g. memory optimized tables. So Extended Events has many more events that it can monitor than SQL Profiler:
It also has much more flexible outputs (targets). In addition to "classic" targets like file and ring buffer (where full information about the events is saved in "tabular" format), there are also event counter and histogram targets. They can help you achieve even lower overhead, because they simply counts how many times particular event occurred, without the overhead of saving the collected data. There is also pair_matching target, which could help you relate events to each other, like start and end of transaction for example.
Another advantage of XE over Trace is that the definition of a trace is not human readable (at least not easily readable):
While XE definitions are more clear for normal people:
Trace still can be used, bu Extended events is the recommended way to monitor your production servers.