 |
| Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 20th, 2006, 05:37 AM
|
|
Authorized User
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Please Help Me Dear People.
Hie. I think I had posted to the wrong Forum. Ermm. But anyway, I have a very big doubt in my head that I cannot seem to decipher. Currently, I am under attachment & my project requires the person to be very well adaptable in ASP & Access Database. I am not really that good in programming but all along, I've passed all my modules. There's alot I wanted to ask but for now let me post this very big & important question to you. Let's say I have 2 database called Jan.mdb & Feb.mdb respectively. And in these 2 database I have a table called MyTable. Hence, in these two tables have exact replica of field names such as NumberID, CompanyName.. So, right now, I want to join these 2 tables into 1 major master database. Is that possible? I'm on the verge of quitting if not for my perseverence to continue in this project. Do help me please.
__________________
* Love me for a reason; Let the reason be love *
|
|

January 21st, 2006, 02:53 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
|
|
Yes you can.
Select everything from one table and insert it into the other.
Example:
INSERT INTO Jan.mdb (Column1, Column2, etc.) SELECT Column1, Column2, etc. FROM Feb.mdb
Hope this helps.
|
|

January 22nd, 2006, 02:44 AM
|
|
Authorized User
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hmm. Yes. I know that is possible only if you are in a database. But right now, I want to add these two tables called MyTable which are in both of the Jan.mdb & Feb.mdb. As in the example below:
Jan.mdbFeb.mdbI only know the method of joining from one table to the other table. I knew that. But, I just want to know if there is a method of joining two databases together? Thank you rsTelma for advising on the INSERT INTO method. But that is not exactly what I'm searching for. I'm really worried because my project is way past schedule. I'm afraid if I might combust in tomorrow's meeting & blast off at my Superiors for giving me such projects. Please people, I really need your opinions. Thank you once again rsTelma for enlightening me on that one. I would surely use that in my project. :)
|
|

January 22nd, 2006, 01:04 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
|

January 22nd, 2006, 09:43 PM
|
|
Authorized User
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you Lucian for that. But when I got to the link, there was only joining tables in the same or common database together. Now, I am thinking of creating manually a .mdb database & then collecting all the related MyTable from all databases & place it into that created database. And then from there I guess it would be much easier for me to join all the tables into 1 consolidated table. But, that would be no functionality in the table itself because each MyTable from each database has records of 32,000 rows with more than 20 field names. Is there any other way for me to solve this database design problem? I am using a scripting language; ASP. I welcome all opinions,questions & other possible ideas. Thanks alot.
* Love me for a reason; Let the reason be love *
|
|

January 23rd, 2006, 03:08 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Take a look at this article: http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=143
It describes how to create an Access database in an ASP page...
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

January 23rd, 2006, 05:42 AM
|
|
Authorized User
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Gee. Thanks Imar! I shall see & use the codes there. :)
* Love me for a reason; Let the reason be love *
|
|

January 24th, 2006, 12:09 AM
|
|
Authorized User
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have yet thought of another solution to this. I was thinking of using COPY statement to copy a table (together with its structure & data & field names) from a .mdb to another .mdb. Is that possible? I have never do this before & I thought of asking for your opinions. Thanks.
* Love me for a reason; Let the reason be love *
|
|

January 24th, 2006, 04:55 AM
|
|
Authorized User
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for all your help people. I've solved the problem. Thanks once again. :)
* Love me for a reason; Let the reason be love *
|
|

January 24th, 2006, 01:33 PM
|
|
Friend of Wrox
|
|
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
|
|
So, how did you actually solve your problem?
|
|
 |