django-pyodbc-azure icon indicating copy to clipboard operation
django-pyodbc-azure copied to clipboard

Calls to stored proceedures

Open nicomin opened this issue 8 years ago • 2 comments

Hi!

I have a problem calling stored procedures from this django module. Few days ago, I try with PYODBC directly on a Python code and the stored procedure call works fine according the documentation that they left. But the same implementation did not worked when I call a stored procedure with input parameters. I am getting the folling error:

TypeError at /spname not all arguments converted during string formatting

The documentation in PYODBC saids (according the follwing link: https://github.com/mkleehammer/pyodbc/issues/184) that implementation consists in the execution sentence (string) as a first argument and the parameters (tuple) as a second argument to the cursor.execute function

Can you help me with this please?

nicomin avatar Jan 30 '17 13:01 nicomin

Hi, @nicomin have you found some answer to this question. I am facing difficulties in using store procedure in my Django code.

AnkurBegining avatar Jun 17 '19 10:06 AnkurBegining

Hello, @AnkurBegining. I changed my mind about call SPs from Django, my friend ...

nicaballero avatar Jun 19 '19 13:06 nicaballero