The suggested change from
engine.execute(create_view_command)
to
with engine.begin() as connection:
connection.execute(create_view_command)
works. Thank you much, and have a nice day Michael!
On Tuesday, February 10, 2015 at 4:47:37 PM UTC-8, Michael Bayer wrote:
Mike Richards
to try next.
Thank you very much for your time and help,
Mike Richards
Details:
sqlalchemy: 0.9.8
python: 2.7.6
pyodbc: 3.0.6
MS SQL Server Enterprise 2014 64 bit
Code:
from sqlalchemy.ext.compiler import compiles
from sqlalchemy.sql.expression import ClauseElement
from