TLowder
Programmer
- Mar 20, 2002
- 224
Hello,
I'm trying to find the best way to insert data from one MySQL database to another. The structure is identical. I would like to do this in one sql statement as opposed to looping through each record, movenext etc, but I'm not sure how. I've seen examples such as -
I'm unsure on how the connection to Db2.TableName is created. I've always used ADODB.Connection then with that connection .execute sql or open recordsets etc. How do I create the Db2.tablename. Is this an ODBC connection or can I create this using ADO? I think my problem is that I'm ignorant to other database connections as I've only done it the one way, that I can recall.
Thanks,
Tom
I'm trying to find the best way to insert data from one MySQL database to another. The structure is identical. I would like to do this in one sql statement as opposed to looping through each record, movenext etc, but I'm not sure how. I've seen examples such as -
Code:
"Insert into " & Db2.TableName & " select * from TableName"
I'm unsure on how the connection to Db2.TableName is created. I've always used ADODB.Connection then with that connection .execute sql or open recordsets etc. How do I create the Db2.tablename. Is this an ODBC connection or can I create this using ADO? I think my problem is that I'm ignorant to other database connections as I've only done it the one way, that I can recall.
Thanks,
Tom