Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-18-2004, 07:51 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Copy table from other db

In my db application I would like it to be able or users to import a table from another database to an existing database (acces)

Does anybody know how to do that with ado or sql?
Reply With Quote
  #2 (permalink)  
Old 08-19-2004, 02:38 AM
Junior Member
 
Join Date: Feb 2003
Posts: 12
Default Re:Copy table from other db

what type of database is the source?
Are you looking at imported a specific table structure.

I don't believe there is a magic sql statement that will allow access to import for external sources with solely sql.

One suggestion would be to create a comma or tab delimited text file from your source, then place this new source file in an expected location.
The expected location would be predefined by a link table pre-set in your access database. Once the file is in place, you can use regular sql statments to insert the records from the link table into your database.

I believe there are also ways to programatically create the link tables via ado, but I am personally unfamiliar with them.


found an article... Its for vb, but should help some
http://support.microsoft.com/default...NoWebContent=1
Reply With Quote
  #3 (permalink)  
Old 08-19-2004, 05:05 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Copy table from other db

There isn't a "one step" method.

1. Create the table in the destination

2. Use the "Select" clause to retrieve data from source

3. Use the "Insert" clause to add data to destination

If you can send us the two dbs, we will make a sample for you.
Reply With Quote
  #4 (permalink)  
Old 08-23-2004, 05:05 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:Copy table from other db

I've mailed you the database

Thanks for the offer
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:05 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.