ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

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 Dev Shed Forums Sponsor:
  #1  
Old January 23rd, 2005, 09:47 PM
Nakirema Nakirema is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 24 Nakirema User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 17 m 26 sec
Reputation Power: 0
Database Question?

I've got a basic database question. I'm currently using Access as my database (a nightmare) and I want to keep the size of my database low. I want to link tables from one database to another. Then using only one database to reference as my datasource. I think this is possible. I remember doing it once on a localhost site. Now that i'm running my page on an intranet server I tried linking the tables and it does not work.

Can anyone explain the process to make this work?

Nakirema

Reply With Quote
  #2  
Old January 24th, 2005, 11:55 AM
glively glively is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 17 glively User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 51 sec
Reputation Power: 0
Have you thought about using MSDE instead of Access? MSDE is free. You can't beat the price.

Reply With Quote
  #3  
Old January 24th, 2005, 12:14 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,681 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 22 m 41 sec
Reputation Power: 53
Access is definitely not ideal for the back end of a web site. I'd try to look into MySQL, or any of the commercial database servers.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #4  
Old January 24th, 2005, 12:21 PM
r937's Avatar
r937 r937 is offline
SQL Consultant
Click here for more information.
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 17,915 r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 12 h 27 m 59 sec
Reputation Power: 1018
linked tables in access on an intranet should be no problem

but if your database is greater than 500 megs you will have jet engine response time problems whether your databases are linked or not

i'm not sure about linking databases, but you can link tables simply by following the prompts after choosing File > Get External Data > Link Tables
__________________
r937.com | rudy.ca

Reply With Quote
  #5  
Old January 24th, 2005, 04:54 PM
Nakirema Nakirema is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 24 Nakirema User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 17 m 26 sec
Reputation Power: 0
Unhappy Clarification...?

No one has yet answered the question i'm asking. At the moment I must use Access. I'm currently looking into switching over to Microsoft SQL as my database. I do know how to link tables in Access.

The problem I'm having is that when i'm using Coldfusion to query tables in my database, i want to query table in another database as well. To do this I think I would need to link the tables then query the linked tables. However, I keep getting an error:

--------------------------------------------------------------------------------

Error Occurred While Processing Request
Error Diagnostic Information
ODBC Error Code = S1000 (General error)


[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '\\is-18lg1\18muns_data$\Muns_Data.mdb'. It is already opened exclusively by another user, or you need permission to view its data.


SQL = "SELECT tbl_USERDATA1.* FROM tbl_USERDATA1 WHERE ((tbl_USERDATA1.USERNAME) = 'name');"

Data Source = "MUNS"


The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (23:1) to (23:51) in the template file D:\InetPub\wwwroot\18muns\awc\user_log_page2.cfm.


Date/Time: 01/25/05 07:50:55
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Remote Address: 132.15.187.8

--------------------------------------------------------------------------------

I hope this is alittle more understandable.

Nakirema

Reply With Quote
  #6  
Old January 24th, 2005, 05:25 PM
r937's Avatar
r937 r937 is offline
SQL Consultant
Click here for more information.
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 17,915 r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 12 h 27 m 59 sec
Reputation Power: 1018
actually, for me that's worse, but that could just be me

any chance we could see the query? don't forget to indicate which ones are the linked tables

Reply With Quote
  #7  
Old January 24th, 2005, 05:35 PM
Nakirema Nakirema is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 24 Nakirema User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 17 m 26 sec
Reputation Power: 0
Cool

SQL = "SELECT tbl_USERDATA1.* FROM tbl_USERDATA1 WHERE ((tbl_USERDATA1.USERNAME) = 'name');"

Is the linked table..

The datasource for this query is Muns.mdb.

tbl_USERDATA1 is a table in Muns_Data.mdb.

Does this make sense?

Maybe my question is skewed.. This is a bad example for this question. If I have to databases and I must query something using information from them both.. Thats why I want to link the tables.

I came up with an idea that might work...

To query tbl_USERDATA1 using datasource Muns_Data.mdb.

Then to use this info I would query using datasource Muns.mdb and QofQ.

Ok i'm confussing myself...

Nakirema

Reply With Quote
  #8  
Old January 24th, 2005, 06:01 PM
r937's Avatar
r937 r937 is offline
SQL Consultant
Click here for more information.
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 17,915 r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 12 h 27 m 59 sec
Reputation Power: 1018
i have an idea

instead of QofQ (last resort), try creating and saving a query in Muns.mdb that performs the retrieval from the linked table in Muns_Data.mdb

after saving the query, then run your CF query as

select * from mysavedquery


Reply With Quote
  #9  
Old January 24th, 2005, 07:02 PM
Nakirema Nakirema is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 24 Nakirema User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 17 m 26 sec
Reputation Power: 0
Cool Good Idea...

Thats a good idea... I should have thought of that... I'll be sure to come to you when I need help..

Nakirema

This will work with other database programs as well? I definately trashing access. Most likely I will switch to Microsoft SQL. I haven't used it yet so I don't know its capability.

Reply With Quote
  #10  
Old January 24th, 2005, 07:18 PM
Nakirema Nakirema is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 24 Nakirema User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 17 m 26 sec
Reputation Power: 0
Cool Aahhh!!!!

I tried it and it does not work. Same ERROR

Nakirema

Reply With Quote
  #11  
Old February 10th, 2005, 08:36 PM
midimidi midimidi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 83 midimidi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 29 m
Reputation Power: 4
Not sure if anyone has answered this, but I have a similar issue.

I'm also forced into Coldfusion and Access. I have a database linking to a text file for simplifying end-user updating - i.e. all X-worker has to do is to rewrite the text file with a different text file that is sent from another database.

The problem is that Coldfusion is not seeing the table when I use the Application : Databases panel in Dreamweaver MX 2004. Is there any way to do this?

Reply With Quote
  #12  
Old February 10th, 2005, 08:49 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,681 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 22 m 41 sec
Reputation Power: 53
I don't use Dreamweaver (I hate it), so I won't be able to help on this one. If anyone knows, answer away. You might also try posting this on the Macromedia forums where you're more likely to find other Dreamweaver users.

Reply With Quote
  #13  
Old February 12th, 2005, 08:48 AM
Shane_Z Shane_Z is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: In denial
Posts: 22 Shane_Z User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 57 m 52 sec
Reputation Power: 0
Send a message via MSN to Shane_Z
well, i would not presume to know your network architecture, but i know i have had no success when it comes to linking to access dataabases that are not physically on the server. hmm.. on second thought, i have never had much success with access.

Reply With Quote
  #14  
Old February 16th, 2005, 08:43 AM
midimidi midimidi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 83 midimidi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 29 m
Reputation Power: 4
Quote:
Originally Posted by Shane_Z
well, i would not presume to know your network architecture, but i know i have had no success when it comes to linking to access dataabases that are not physically on the server. hmm.. on second thought, i have never had much success with access.


Thanks - actually, I moved the database and the txt file over to the server, in the same folder. It definitely was not properly linked so I relinked after it was on the server. I can open the database just fine in Access either on the server, or viewing from another computer. Dreamweaver sees the database, just not the table that is linked to the text file...just thought this was odd.

Reply With Quote
  #15  
Old February 16th, 2005, 07:28 PM
mikemac mikemac is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Greenville NC
Posts: 70 mikemac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 24 sec
Reputation Power: 5
Kiteless what do you use???

Quote:
Originally Posted by kiteless
I don't use Dreamweaver (I hate it), so I won't be able to help on this one. If anyone knows, answer away. You might also try posting this on the Macromedia forums where you're more likely to find other Dreamweaver users.



What do you use to code CFMX?? Studio,HomeSite or something else???

Reply With Quote