pymssql

pymssql windows authentication

跟風遠走 提交于 2019-12-03 11:52:44
问题 The pymssql module used to support windows authentication. Now it seems it does not. Though in some places it still shows that it should work. I have been unable to find a definitive answer to this problem, nor a solution. Most relevant link: https://groups.google.com/forum/#!topic/pymssql/QDMLTGBNeU0 pymssql 1.0 supported it because it made use of and depended on the MS-provided DLL which was part of the SQL Server client stack. This stack was in charge of handling all of the NTLM

Why can I connect to Azure MS SQL with tsql but not pymssql?

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Where I am today: TDSVER=7.3 tsql -H example.database.windows.net -U me -D ExampleDB -p 1433 -P notreallymypassword This does not: >>> import pymssql >>> pymssql.connect('example.database.windows.net', user='me', password='notreallymypassword', database='ExampleDB', tds_version='7.3') It fails with Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pymssql.pyx", line 635, in pymssql.connect (pymssql.c:10734) File "_mssql.pyx", line 1902, in _mssql.connect (_mssql.c:21821) File "_mssql.pyx", line 577, in _mssql

Error installing pymssql on Mac OS X Lion

大憨熊 提交于 2019-12-03 08:55:30
I have XCode installed and also FreeTDS. I tried to connect to my SQL Server and it works perfect. Now I have to develop an aplication on python that works with this SQL Server and I´m trying to install pymsql, but I got this error when I launche sudo python setup.py command: ==> sudo python setup.py install running install running bdist_egg running egg_info writing pymssql.egg-info/PKG-INFO writing top-level names to pymssql.egg-info/top_level.txt writing dependency_links to pymssql.egg-info/dependency_links.txt reading manifest file 'pymssql.egg-info/SOURCES.txt' reading manifest template

pymssql: How to use windows authentication when running on a non-windows box

巧了我就是萌 提交于 2019-12-03 07:05:16
Is there a way for python to connect to MS SQL Server using Windows Authentication , even when not running the python app on a windows box ? I'm trying to do this with pymssql, but the examples mostly seem to assume that you're running on windows. If there is a way to make this connection using some other library, please feel free to suggest, but I do like how pymssql is simple to install and deploy via pip. I want to connect to 2005/2008 databases, and I'm running Ubuntu 13.04 (but I can upgrade to a later Ubuntu if it makes a difference) SOLUTION: It turns out that pymssql can connect to my

linux python 安装 pymssql

此生再无相见时 提交于 2019-12-03 02:58:44
其实也不是很完整的。 我主要在dockers中的alpine linux 下进行开发。 这里主要说的就是如何在alpine下安装pymssql 多级依赖 pymssq 依赖 Cython , Cython 依赖 python3-dev libc-dev apk add python3-dev libc-dev pip install Cython pymssql 来源: https://www.cnblogs.com/jackadam/p/11774839.html

Error installing pymssql on Mac OS X Lion

匿名 (未验证) 提交于 2019-12-03 02:53:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have XCode installed and also FreeTDS. I tried to connect to my SQL Server and it works perfect. ==> sudo python setup.py install running install running bdist_egg running egg_info writing pymssql.egg-info/PKG-INFO writing top-level names to pymssql.egg-info/top_level.txt writing dependency_links to pymssql.egg-info/dependency_links.txt reading manifest file 'pymssql.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pymssql.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.7-intel/egg

Error When Running pip install pymssql

匿名 (未验证) 提交于 2019-12-03 01:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to install the pymssql module in the Command Prompt for VS 2017 Command line and when I type pip install pymssql I get this error cl: error: no such option: -I Here is the more defined error code: cl: error: no such option: -I error: command 'C:\Users\blake\AppData\Local\Programs\Python\Python37-32\Scripts\cl.exe' failed with exit status 2 回答1: On Windows, please follow the instructions on https://docs.microsoft.com/en-us/sql/connect/python/pymssql/step-1-configure-development-environment-for-pymssql-python-development?view=sql

Unable to connect using pymssql with windows authentication

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: While trying to connect to MSSQL Server 2012 using pymssql, I get the following error. My server name in Windows Authentication is SARATH,User Name is Sarath\SarathShanker and I did not set a password. Code: mssql_conn=pymssql.connect(host='SARATH',user='Sarath\SarathShanker',password='',database='matrix') Error: Traceback (most recent call last): File "", line 1, in File "pymssql.pyx", line 556, in pymssql.connect (pymssql.c:7990) pymssql.OperationalError: (18452, 'Login failed. The login is from an untrusted domain and cannot be used with

django连接sqlserver

匿名 (未验证) 提交于 2019-12-02 22:56:40
方法一: 1、需要安装pymssql   pip install pymssql 2、使用方法: import pymssql conn=pymssql.connect(host='127.0.0.1',user='user',password='password',database='MyDB') cur=conn.cursor() cur.execute('select * from table1')#如果是插入、删除、更新语句切记要写提交命令con.commit() print (cur.fetchall()) cur.close() conn.close() 方法二: 1、安装必要的组件: 2、修改settings.py的DATABASES: DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), # } 'default': { 'ENGINE': 'sqlserver', 'NAME': 'MyDB', 'HOST': '127.0.0.1', 'PORT': '1433', 'USER': 'user', 'PASSWORD': 'password, 'OPTIONS': {

Python入门--导入包Pymssql出错

匿名 (未验证) 提交于 2019-12-02 22:54:36
为了使Python连接我的数据 库,我在网上看到了导包的 方法pip install pymssql,然后我出现了类似这种的错误提示, error: Microsoft Visual C++ 14.0 is required…” 然后网上告诉了是因为版本不一样。具体解决办法如下: 第一步: 到( https://www.lfd.uci.edu/~gohlke/pythonlibs/ )这个网站下载适合你版本的包 由于包很多,所以找的时候建议用快捷方式Ctrl+F,将你要的包输入进去,我的是python是3.6.5,电脑64位 ,所以选择的是pymssql-2.1.4.dev5-cp36-cp36m-win_amd64.whl 大意是我的路径有问题,找不到这个包 文章来源: Python入门--导入包Pymssql出错