GoEddie / SQLCover

Apache License 2.0
61 stars 53 forks source link

xp_readerrorlog in SqlTraceController.Start() fails in SqlLocalDb #42

Closed AAATechGuy closed 4 years ago

AAATechGuy commented 4 years ago

For SqlLocalDb, Start() fails with following exception, while running xp_readerrorlog.

EXEC xp_readerrorlog 0, 1, N'Logging SQL Server messages in file'
Msg 22004, Level 16, State 1, Line 3
Failed to open loopback connection. Please see event log for more information.
Msg 22004, Level 16, State 1, Line 3
Error log location not found.

This could easily be avoided by providing a default location that SqlServer can write trace/logs to.

GoEddie commented 4 years ago

pr merged - thanks :)