engine = create_engine('mssql+mxodbc://@QRQBwhoimp')
>>> metadata = MetaData('mssql+mxodbc://@QRQBwhoimp')
>>> metadata.bind = engine
>>> connection = engine.connect()
I dont receive any error messages until I try and connect - then I get:
sqlalchemy.exc.NotSupportedError: (NotSupportedError) ('IM001', 0, '[Microsoft][ODBC Driver Manager] Driver does not sup
port this function', 12173) None None
Also, if I try to reflect a table, I get the same error message. I have tried a lot of different connection strings and this one seems to work without error messages that other ones generate.
Any ideas?
Thank you Michael,
I have the brand new eval version of Mxodbc because qbodbc has some kind of bug with pyodbc.
Qodbc tech support has added it to their bug list but I have no idea when it may be fixed.
Preliminary tests with mxodbc seemed promising as I can use their connect function and get access to the database which is more than I could do with pyodbc, but now I am having this problem with sqlAlchemy.
Is there any way to get around the connection string?
For example this works using mxodbc.
Example:
> qdb = mx.ODBC.Windows.DriverConnect('DSN=QRQBwhoimp')
That gives me a connection I can declare a cursor on and get data in and out.
Anyway to translate that into a viable sqlAlchemy connection?
How do you translate
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/JYGDp_bQSP8J.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
Windows.connect does not work for me.I get this
>>> conn = Windows.connect('QRQBwhoimp', user = '', password = '')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
mx.ODBC.Error.NotSupportedError: ('IM001', 0, '[Microsoft][ODBC Driver Manager] Driver does not support this function',
12173)