ASP copy code for different tables of the two Access reservoirs, using Adodb.command

xiaoxiao2021-03-06  40

<% 'Related instructions' -----------------' Features: Copy the data of table TABLE1 in the database TEST1.MDB to the database Table2 in Test2.mdb [Field3], [Field4] '------------------- Dim Conn, cmdset conn = server.createObject ("AdoDb.Connection" ) conn.open "provider = microsoft.jet.Oledb.4.0; data source =" & server.mappath ("test2.mdb")

Set cmd = server.createObject ("adoDb.command") cmd.activeconnection = conncmd.commandtext = "Insert Into Table2 ([Field3], [Field4]) SELECT [Field1], [Field2] from table1 in" "f: / Test / tset1.mdb "" "cmd.executeresponse.write" is ok! "set cmd = nothingconn.closset conn = Nothing%>

转载请注明原文地址:https://www.9cbs.com/read-72533.html

New Post(0)