sarah_anne
Registered User.
- Local time
- Today, 11:49
- Joined
- Jul 29, 2005
- Messages
- 17
I have a main data-filled database with a table called "aTable", as well as a secondary empty but structurally identical database.
On my ASP page (export.asp?ID=[id]) I can open a recordset containing all records from main db matching that URL parameter; let's call it rsData.
I would like to add every single record in rsData to the secondary database (in the identical but empty equivalent table "aTable").
I can open the recordset from main db and filter it, but how do I actually insert every record in rsData into the 2nd database?
There seems to be 2 ways of doing it - SQL (execute) and a method using recordsets, I assume it's the latter I'd want as it's for every record in rsData, but can't find any beginner examples of use on the net!
Thanks in advance for any help guys!

On my ASP page (export.asp?ID=[id]) I can open a recordset containing all records from main db matching that URL parameter; let's call it rsData.
I would like to add every single record in rsData to the secondary database (in the identical but empty equivalent table "aTable").
I can open the recordset from main db and filter it, but how do I actually insert every record in rsData into the 2nd database?
There seems to be 2 ways of doing it - SQL (execute) and a method using recordsets, I assume it's the latter I'd want as it's for every record in rsData, but can't find any beginner examples of use on the net!
Thanks in advance for any help guys!