Skip to content

Commit be4c980

Browse files
committed
UID needs to be set in connection string, so set default
1 parent 0b7b5c8 commit be4c980

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql_server/pyodbc/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def get_new_connection(self, conn_params):
300300
if auth:
301301
cstr_parts['Authentication'] = auth
302302
if auth == 'ActiveDirectoryInteractive':
303+
cstr_parts.setdefault('UID', '')
303304
cstr_parts.pop('PWD', '')
304305
cstr_parts['Trusted_Connection'] = 'no'
305306

0 commit comments

Comments
 (0)