I am executing an Insert query through connection object:
set conn = server.CreateObject("ADODB.connection"
conn.Open constr
conn.execute "INSERT INTO table1(val) SELECT val FROM table2", recs, adAsyncExecute
I keep getting a -1 in recs. What am I doing wrong? RecordsAffected just doesn't seem to work.
Thanks for any input.
set conn = server.CreateObject("ADODB.connection"
conn.Open constr
conn.execute "INSERT INTO table1(val) SELECT val FROM table2", recs, adAsyncExecute
I keep getting a -1 in recs. What am I doing wrong? RecordsAffected just doesn't seem to work.
Thanks for any input.