Skip to content

Conversation

shueybubbles
Copy link
Collaborator

Fixes #189

@shueybubbles
Copy link
Collaborator Author

By updating to go-mssqldb v0.20.0 and adding app name to the connection string we will have both fields populated in sys.dm_exec_sessions

select program_name, client_interface_name from sys.dm_exec_sessions where session_id=62
program_name                   client_interface_name
------------------------------ ------------------------------
sqlcmd                         go-mssqldb

Copy link
Collaborator

@stuartpa stuartpa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@shueybubbles shueybubbles merged commit 578326e into main Jan 27, 2023
@shueybubbles shueybubbles deleted the shueybubbles/189 branch January 27, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "application_name" to connections made by go-sqlcmd
2 participants