title: SQL proc is not executing completely when I execute it using python
body: <p>I am trying to execute a sql proc using python and I notice that not the complete proc is getting executed. I am able to execute procs that contain only fewer lines of code without any issue but not lengthy procs (maybe 2/3rd of the proc gets executed).</p>
  
  <p>Thanks in advance for the help.</p>
  
  <pre><code>import glob
  import os
  import shutil
  import pandas as pd 
  import pypyodbc as pydb
  
  stmt = 'EXEC procname' 
  conn = pydb.connect(driver='{SQL Server}', server='servername', 
  database='dbname', trusted_connection='yes', autocommit=True)
  cursor=conn.cursor()
  a=cursor.execute(stmt)
  cursor.commit()
  conn.commit()
  #cursor.close()
  #conn.close()
  </code></pre>