title: correct syntax for SQL calls in python with pyodbc
body: <p>I need help to write the SQL calls from my python scripts in a proper way.
  what I my script currently looks like is :</p>
  <pre><code>import pyodbc
  cnx = pyodbc.connect(**connection details**)
  c = cnx.cursor()
  results = c.execute(&quot;select * .....&quot;)
  final_result= results.fetchall()
  </code></pre>
  <p>issue is sometimes result value is <strong>NONE</strong> type object and sometimes I get a return values.</p>
  <p>I want to know if the below way is a correct way to call  , because it seems to work everytime for all the queries</p>
  <pre><code>import pyodbc
  
  cnx = pyodbc.connect(**connection details**)
  
  c = cnx.cursor()
  
  c.execute(&quot;select * .....&quot;)
  final_result= c.fetchall()
  </code></pre>