Hi All,
(Apologies if this is in the wrong place - it's not that easy to find/select a right one!!)
I'm using Performance Monitor to collect CPU usage stats from the server.
There's no issue writing to a csv file and I have a monitor running 24/7 doing that.
However, if I select SQL for the output I get "When attempting to start the Data Collector Set the following system error ocurred: Call to SQLExecDirect failed with %1".
I can see through SSMS and a profiler trace that it creates three tables in the target database - CounterData, CounterDetails and DisplayToID.
It then runs "exec sp_tableoption 'CounterData', 'table lock on bulk load', true" and "select GUID, RunID, NumberOfRecords from DisplayToID where DisplayString = 'DataCollector01'" before logging out.
All three tables are empty.
This is running (or trying to) on Server 2016 Datacenter (10.0.14393), SQL Server 2019 CU18, ODBC Driver 17 for SQL Server (2017.177.02.01)
Any help gratefully received.
Thanks,
Paul.