hi All,
I am writing a program to save sales from a table to a database table. Rather than writing row by row to the database i thought that the following would be quicker.
command.CommandText="Drop Table If Exists TemporaryTable"
Command.ExecuteNonQuery
SQLConn.CreateSQLTable("StblOrders","TemporaryTable")
Command.CommandText = "INSERT INTO Sales SELECT * from TemporaryTable"
Command.ExecuteNonQuery
Can anyone advise if there is a faster way?
Thanks
I am writing a program to save sales from a table to a database table. Rather than writing row by row to the database i thought that the following would be quicker.
command.CommandText="Drop Table If Exists TemporaryTable"
Command.ExecuteNonQuery
SQLConn.CreateSQLTable("StblOrders","TemporaryTable")
Command.CommandText = "INSERT INTO Sales SELECT * from TemporaryTable"
Command.ExecuteNonQuery
Can anyone advise if there is a faster way?
Thanks