title: I am getting this error after executing the python and sql code to send variable to database
body: <p><strong>Code</strong> :</p>
  
  <pre><code>cursor.execute("""INSERT INTO [MAaaS_db].[dbo].[LIVE_ALARMS]([SITEID] ,[ALARMTYPE] ,[ALARMCODE]  ,[ALARMNAME] ,[REMARK]) VALUES(?,?,?,?,?)""",('sr', 'sendernumber', 'sendernumber', 'cutsubject','cutsubject'))
                      cnxn.autocommit()
  </code></pre>
  
  <p><strong>Error</strong>: </p>
  
  <blockquote>
    <p>('22018', u'[22018] [Microsoft][ODBC SQL Server Driver]Invalid
    character value for cast specification (0) (SQLExecDirectW)')</p>
  </blockquote>