You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sql 2005, the system tables are hidden and cannot be directly queried,
so the INITIAL_SQL query throws:
Invalid object name 'information_schema.columns'.
Simple fix though - the data is available through built in views, the names
of which are upper case and case sensitive. Patch attached works on sql2000
and sql2005
Original issue reported on code.google.com by [email protected] on 9 Dec 2009 at 10:09
Hi, with the revision of albrecht.andi it didn't work for me.
I had to do it like this:
INITIAL_SQL = """SELECT t.TABLE_CATALOG as table_catalog,
t.TABLE_NAME as table_name, c.COLUMN_NAME as column_name, t.TABLE_TYPE as
table_type
FROM INFORMATION_SCHEMA.COLUMNS c,
INFORMATION_SCHEMA.TABLES t
WHERE t.TABLE_NAME = c.TABLE_NAME
AND t.TABLE_CATALOG = c.TABLE_CATALOG
ORDER BY c.TABLE_CATALOG,
c.TABLE_NAME,
c.ORDINAL_POSITION
"""
Original issue reported on code.google.com by
[email protected]
on 9 Dec 2009 at 10:09Attachments:
The text was updated successfully, but these errors were encountered: