擅长:python、mysql、java
<p>非常感谢大家的评论。最后,在@GordThompson的一个快速评论中,我应用了下面的更改,并且成功了。在</p>
<p>导入pyodbc</p>
<pre><code>conn = pyodbc.connect( 'DRIVER={SQL Server};'
'SERVER=XXXX;'
'DATABASE=XX;UID=XXXX;'
'PWD=XXXX')
cursor = conn.cursor()
cmd_prod_executesp = """EXEC DC_SAS_EvaluationUpdate """
conn.autocommit = True
cursor.execute(cmd_prod_executesp)
conn.close()
</code></pre>