Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from 3.0.7 to 3.0.9, fails SQL Server connection #40

Closed
AdamPoolman opened this issue Apr 28, 2015 · 3 comments
Closed

Update from 3.0.7 to 3.0.9, fails SQL Server connection #40

AdamPoolman opened this issue Apr 28, 2015 · 3 comments

Comments

@AdamPoolman
Copy link

I've recently upgraded from using 3.0.7 of this library to 3.0.9 and get the following error when it tries to connect to Microsoft SQL Server.

Traceback (most recent call last):
File "test_query_guide.py", line 71, in
spec_cursor.execute("SELECT * FROM [SQL API]")
pyodbc.ProgrammingError: ('42000', "[42000] [FreeTDS][SQL Server]Could not find stored procedure 'S'. (2812) (SQLExecDirectW)")

For now, I've rolled back to 3.0.7.

@mkleehammer
Copy link
Owner

What version of Python are you using? This looks like a Unicode vs ANSI string issue.

I've been trying to get some free time for v3.1 which will let you set the encoding to UTF-8, ANSI, or UTF16. The actual ODBC specification requires either ANSI or UTF16 and pyodbc switches between them based on the ansi parameter to connect. I'm going to replace that with an encoding.

@AdamPoolman
Copy link
Author

Using Python 3.4.0

@mkleehammer
Copy link
Owner

I'm going to close this as a duplicate of #41. This should be fixed on the master branch. I'll make an official release once I fix a couple of other bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants