Python: Execute Stored Procedure with Parameters

后端 未结 3 1313
悲&欢浪女
悲&欢浪女 2020-12-21 15:01

I\'m working on a Python script that writes records from a stored procedure to a text file. I\'m having issues executing the stored procedure with parameters.

I\'m n

3条回答
  •  感动是毒
    2020-12-21 15:22

    This worked for me

    query = "EXEC [store_proc_name] @param1='param1', @param2= 'param2'"
    cursor.execute(query)
    

提交回复
热议问题