Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 如何在我的机器上找到odbc jar_Sql Server_Jar_Odbc - Fatal编程技术网

Sql server 如何在我的机器上找到odbc jar

Sql server 如何在我的机器上找到odbc jar,sql-server,jar,odbc,Sql Server,Jar,Odbc,我能够在我的Win10 m/c上使用下面的synatx连接到SQl server import pyodbc conn_str = ( r'Driver={ODBC Driver 17 for SQL Server};' # Just an Example (SQL2008-2018) r'Server=wvdbsp00937.bns.bns,5150;' # Here you insert you servername r'Database=test12;' # H

我能够在我的Win10 m/c上使用下面的synatx连接到SQl server

import pyodbc 
conn_str = (
    r'Driver={ODBC Driver 17 for SQL Server};'  # Just an Example (SQL2008-2018)
    r'Server=wvdbsp00937.bns.bns,5150;' # Here you insert you servername
    r'Database=test12;' # Here you insert your db Name
    r'Trusted_Connection=yes;' # This flag enables windows authentication
    )
conn = pyodbc.connect(conn_str)
cursor = conn.cursor()
cursor.tables()
rows = cursor.fetchall()
for row in rows:
    print(row.table_name)
conn.close()

这意味着我的机器上必须有odbc jar。但我一生都找不到它。它没有添加到我的路径中,所以我还应该去哪里查看呢?

我确实提到了win10。