Your con.execute()
statement is not automatically picking the user_id
, Sreenname
and name
variables from Python; you need to pass those in explicitly, using bind parameters:
con.execute("exec sp_insertintoalltable ?, ?, ?", (user_id, Sreenname, name))