How can I call stored procedures of sql server with sqlAlchemy?
See Question&Answers more detail:osEngines and Connections have an execute()
method you can use for arbitrary sql statements, and so do Sessions. For example:
results = sess.execute('myproc ?, ?', [param1, param2])
You can use outparam()
to create output parameters if you need to (or for bind parameters use bindparam()
with the isoutparam=True
option)