Quantcast
Channel: BlogoSfera » session
Viewing all articles
Browse latest Browse all 21

SqlAlchemy python script hangs while executing SQL Server Stored procedure

$
0
0

I am working on a Python script that makes use of SqlAlchemy library to execute Stored Procedure on SQL Server. I am passing XML contents to the stored procedure. xml_text = "<root><element>some xml contents</element></root>" query = PROCS['myStoreProc'] session = session and session or get_session() result = session.execute(text(query, bindparams=[bindparam('xmlContent', value=xml_text)])).fetchall() session.commit() return result I am able […]

The post SqlAlchemy python script hangs while executing SQL Server Stored procedure appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 21

Trending Articles