--- /dev/null
+.. change::
+ :tags: bug, mssql, reflection
+ :tickets: 5921
+
+ Fixed issue regarding SQL Server reflection for older SQL Server 2005
+ version, a call to sp_columns would not proceed correctly without being
+ prefixed with the EXEC keyword. This method is not used in current 1.4
+ series.
+
In addition to the above DBAPI layers with native SQLAlchemy support, there
are third-party dialects for other DBAPI layers that are compatible
with SQL Server. See the "External Dialects" list on the
-:ref:`dialect_toplevel` page.
+:ref:`dialect_toplevel` page.
.. _mssql_identity:
# We also run an sp_columns to check for identity columns:
cursor = connection.execute(
sql.text(
- "sp_columns @table_name = :table_name, "
+ "EXEC sp_columns @table_name = :table_name, "
"@table_owner = :table_owner",
),
{"table_name": tablename, "table_owner": owner},