Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 16th, 2003, 08:54 AM
mliungman mliungman is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Sweden
Posts: 22 mliungman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 34 m 15 sec
Reputation Power: 0
Adding multiple data to large DB on server

Hi!

I want to add quite a large amount of data (~5MB) from an Access DB on my computer to an existing Access DB (~50MB) on a web server. What would be the most appropriate way of doing this without having to download/upload the entire original DB? I was hoping it would be possible to transfer the "update" DB to my server and then make the transfer on the server.

When I use the SELECT INTO statement the error message says that "Case" is expected where I define my source (my update table).

Thanks, Martin

Last edited by mliungman : November 16th, 2003 at 09:48 AM.

Reply With Quote
  #2  
Old November 16th, 2003, 08:48 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
The easiest way would be to link the Web Server DB to the 5MB DB on your Desktop. Then copy and paste. between tables. The most efficient way, after linking the DB's together, would be to write an Insert statemtn which won't give you the same problems, because the 5 mb DB will think that both DB are together (becuase they are)

To help you with the way you started, You would need to post more info. SQL Statement, connection type, etc

S-

Reply With Quote
  #3  
Old November 19th, 2003, 02:41 PM
mliungman mliungman is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Sweden
Posts: 22 mliungman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 34 m 15 sec
Reputation Power: 0
I followed sbaxter's advice and linked the two tables. I then only have to make one connection to move the new data to the existing database. Quite neat!

The whole code:

set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("myPath\myDB.mdb"))

SQL = "INSERT INTO myTable SELECT * FROM updateDBTable"
conn.execute(SQL)


Just use the original database as a template when creating the update database, so that all the new data is formatted the same way as the old, with column names, data format etc.

Thanks for the help!

Martin

Last edited by mliungman : December 1st, 2003 at 11:09 AM.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Adding multiple data to large DB on server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT