Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Processing sql xevents in c#, missing an assembly

Tags:

c#

sql-server

I'm trying to process SQL XEvents from an .xel file in a c# console app. According to This Blog I need to add a reference to Microsoft.SqlServer.XEvent.Linq.dll but I haven't been able to find it. What am I missing?

like image 934
Darren Avatar asked Aug 22 '26 18:08

Darren


1 Answers

OK, so I wasn't able to get visual studio to list it as an available assembly. But I did find the DLL in C:\Program Files\Microsoft SQL Server\120\Shared and manually included it in my project, and so far that seems to be working.

As TyCobb suggested You might also need the SQL Server Management Objects.

Note: Microsoft.SqlServer.XE.Core.dll is also required

like image 187
Darren Avatar answered Aug 24 '26 10:08

Darren