CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Location
    USA
    Posts
    101

    copy contents from database

    I need to copy contents from one database to another (both Access) and I am using the following statement-

    Insert into db1.table1 select * from db2.table2

    But my code does'nt work. How do I specify db1 and db2. I tried mentioning the path and also used a cn.open statement (for ADO's), but that does'nt work.

    Thanks


  2. #2
    Join Date
    Oct 1999
    Posts
    25

    Re: copy contents from database

    I believe you need to open a connection and recordset for each database, then transfer the data between the two recordsets, rsdB1 and rsdB2, for example.

    Sky1000


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured