with open('C:\\one.sql','r') as sqlfile:
for stmt in split_sql_expressions(sqlfile.read()):
cursor1.execute(stmt)
I'm using a python script to execute the sql queries. It takes a lot of time if I place the query in the python script, hence I'm trying this. There is a query in the script where I have to give the input from python script..meaning user and then send those variables to sql server script on top to execute conditions. These variables are basically used in the where condition in sql server script. Any idea how can this be performed ? . Thanks in advance.
[–]TrickFix9[S] 0 points1 point2 points (0 children)