i have a piece of vb codes that i want to use it in vb.net
how do i do this using vb.net n ado.net? i'm kinda unfamiliar with that.
i'm writing a function that will retrieve a bulk of records from one database(in this example rs2) then inserting it into another new database(rs1). if i use sqlcommand to keep inserting a record one by one (this will use another sqlreader to read from another datasource), it would not be effective as we're dealing with alot of records here.
how do i do this in vb.net?
VB.NET:
//declare 2 recordset of different database
while rs1.eof
rs1.addnew
rs1.fields("id1") = rs2.fields("id2")
rs1.fields("abc1") = rs2.fields("abc2")
rs1.fields("type") = "abc"
rs2.movenext
end while
how do i do this using vb.net n ado.net? i'm kinda unfamiliar with that.
i'm writing a function that will retrieve a bulk of records from one database(in this example rs2) then inserting it into another new database(rs1). if i use sqlcommand to keep inserting a record one by one (this will use another sqlreader to read from another datasource), it would not be effective as we're dealing with alot of records here.
how do i do this in vb.net?