I am looking for a better way of adding a large volume of rows to a table.
I am not concerned with syntax of executing the SQL statement from python as what I am using formats that differently then standard.
Is there a way I could run this solely in SQL Server without Python at all?
table1 colA, colB, colC, colD....
for i in range(1,10):
for x in range(10,30001):
query = "INSERT INTO table1 (colA, ColB) VALUES (%s,%s)"
val = (i,x)
Execute SQL statment with val parameters
I have tried the above example and just takes to long due to the number of entries.