问题标签 [odbc-sql-server-driver]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
271 浏览

php - ODBC 查询不适用于 PHO

我正在使用 ODBC 连接而不是 MySQL。我有一个搜索功能,我或多或少地复制了它以应用于我的 ODBC 连接,但是它们不起作用。这是我的代码,除了连接:

由于我没有收到错误消息,我知道我的连接正常,但是目前,当我选择按钮时,数据没有按预期显示...请帮助!谢谢

0 投票
1 回答
4715 浏览

sql-server - 如何从 Ubuntu 调试 MSSQL 驱动程序问题

与我见过的另外几个问题类似,除了从 Django 连接到 MSSQL 之外,我别无选择。

我间歇性地(但大约 50% 的时间,其余的工作正常)得到错误;

django.db.utils.Error: ('[08S01] [Microsoft][ODBC Driver 13 for SQL Server]TCP 提供程序:错误代码 0x274c (10060) (SQLGetData)')

注意,我有时也会得到这个;

django.db.utils.Error: ('08S01', '[08S01] [Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error code 0x68 (104) (SQLGetData)')

我认为它与网络有关,我之前尝试过换出版本,在和 Microsoft 驱动程序 for unixpyodbc之间交换,并尝试和.FreeTDSpyodbcpyodbc-azure

有问题的机器是具有固定 IP(Ubuntu 16.04 和 Windows 8)的专用网络上的 Vagrant 机器,SQL Server 是 SQL Server Express 2016。

我什至无法弄清楚如何在 Windows 端找到更详细的日志来弄清楚它为什么/如何不断丢弃/关闭连接。注意 - 我查看了 SQL Server 和 Windows 事件日志,但它们似乎没有发现任何问题。

0 投票
0 回答
27 浏览

ibm-mobilefirst - IBM MobileFirst 7.1,com.microsoft.jdbc.sqlserver.SQLServerDriver 未找到

先安装mobile 7.1,成功推送适配器。但是在调用适配器时,在Work light或Project Work space中找不到com.microsoft.jdbc.sqlserver.SQLServerDriver错误。

经过搜索尝试了很多选项,在项目的server/lib文件夹中添加了sqljdbc4.jar文件,在JDK的lib中也添加了。还在系统变量中添加了 sqljdbc4.jar 的路径作为类路径。

PS-我的环境如下,IBM MobileFirst 7.1,jdk1.8.0_181,windows 10

0 投票
1 回答
743 浏览

python - 如何在创建 python api 时安装 sql server 驱动程序

我想创建一个 python api,以便我可以与托管在 sql server 上的数据库进行通信。我正在尝试在 og 谷歌云平台的帮助下创建它。但是当我这样做时,pyodbc 包没有被安装,因为它有 sql 驱动器要求。那么我应该如何在创建它时安装 sql server 驱动程序。

0 投票
0 回答
65 浏览

python - Question related to SQL Server Driver support for pyodbc's fast_executemany option

I am trying to improve insert performance to a SQL Server Database table using Python. (First step taken is instead of row by row insert, prepare a bulk statement.)

After going through driver support documentation ( https://github.com/mkleehammer/pyodbc/wiki/Driver-support-for-fast_executemany ), four of the below mentioned drivers deliver the same performance.

SQL Server Native Client 11.0 ODBC Driver 13 for SQL Server ODBC Driver 17 for SQL Server SQL Server

Could someone please clear my doubt - why it could be so?

Kind regards,

Manoj.