I am trying to transfer data from an Access 2003 table into MSSql table using the this query:
SQLa = "Select F1, F13 from [abs fesa]"
Set rs = conn.Execute(SQLa, , adCmdText)
F1 = rs.Fields("F1"): F13 = rs.Fields("F13")
SQLc = "Insert into CoilSpec.dbo.schedule_final (F1, F13) values ('" & F1 & "','" & F13 & "');"
Set rcst = cn.Execute(SQLc, , adCmdText)
But I am only getting one record into SQL. Is it possible to select the entire amount of data and insert all 130 records at once without looping through all of them.
Thanks.
SQLa = "Select F1, F13 from [abs fesa]"
Set rs = conn.Execute(SQLa, , adCmdText)
F1 = rs.Fields("F1"): F13 = rs.Fields("F13")
SQLc = "Insert into CoilSpec.dbo.schedule_final (F1, F13) values ('" & F1 & "','" & F13 & "');"
Set rcst = cn.Execute(SQLc, , adCmdText)
But I am only getting one record into SQL. Is it possible to select the entire amount of data and insert all 130 records at once without looping through all of them.
Thanks.