'application("oracleCon"
="Provider=OraOLEDB.Oracle.1;Password=cnown;Persist Security Info=True;User ID=cnown;Data Source=tsdb"
application("msSqlCon"
="Provider=SQLOLEDB.1;Password=dbojfyes0;Persist Security Info=True;User ID=jfyes;Initial Catalog=WEB;Data Source=TS002/TEST"
'Set application("cnn"
= Server.CreateObject("ADODB.Connection"
Set application("cn"
= Server.CreateObject("ADODB.Connection"
Set application("rst1"
= Server.CreateObject("ADODB.Recordset"
Set application("rst2"
= Server.CreateObject("ADODB.Recordset"
tb1sql = "select * from tb1"
tb2sql = "select * from tb2"
application("rst1"
.ActiveConnection = application("cn"
application("rst2"
.ActiveConnection = application("cn"
application("rst1"
.Open tb1sql
application("rst2"
.Open tb2sql
Cols = CInt(application("rst1"
.Fields.count);
do while not application("rst1"
.Eof
application("rst2"
.addNew
for i = 0 to Cols - 1
application("rst2"
.Fields(i) = application("rst1"
.Fields(i)
application("rst2"
.Update
application("rst1"
.MoveNext
Loop