Skip to content

Commit d505be0

Browse files
committed
Added application name to connection string. Solves #63
1 parent 7ccfaeb commit d505be0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dbt/adapters/sqlserver/connections.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ def open(cls, connection):
259259
if getattr(credentials, "trust_cert", False) is True:
260260
con_str.append(f"TrustServerCertificate=Yes")
261261

262+
application_name = f"dbt-{credentials.type}"
263+
con_str.append(f"APP={application_name}")
264+
262265
con_str_concat = ';'.join(con_str)
263266

264267
index = []

0 commit comments

Comments
 (0)