We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe1b72 commit 51fab4bCopy full SHA for 51fab4b
1 file changed
jam/db/mssql_db2.py
@@ -9,7 +9,7 @@ def __init__(self):
9
#DRIVER={ODBC Driver 17 for SQL Server};SERVER=ANDREW-PC\SQLEXPRESS;DATABASE=demo;UID=sa;PWD=1111
10
#DSN=SQL Server;DATABASE=demo;UID=sa;PWD=1111
11
def connect(self, db_info):
12
- return pyodbc.connect(db_info.dns)
+ return pyodbc.connect(db_info.dsn)
13
14
def get_lastrowid(self, cursor):
15
cursor.execute('SELECT @@IDENTITY')
0 commit comments