Solved

How to connect to an Access data source

Posted on 2000-04-27
7
1,928 Views
Last Modified: 2010-03-17
I've a MSaccess97 database with a single table.
How do I go about writing the connection string.  I have no idea about odbc drivers, I've tried following the online help.
I'm on win98
Through the control panel OBBC datasources I have gone to System DSN, then added Microsoft Access driver (*.mdb) and made up a name 'msaa', then selected a specific database.

Then in Flash under set enviroment I put this:-

msaa:///?driver=obdcjt.dll&url=antennas.mdb&userid=&password=SELECT%20%20FROM%20antennatest

suprisingly (!) it does not work, there are so many things I don't understand I am looking for any help or advice.
0
Comment
Question by:susannahbond
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 

Expert Comment

by:ranjit021100
ID: 2776248
hI,

Following set of code may help u.

String strAccConnUrl="jdbc:odbc:msaa";

Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver");                         
connDB = DriverManager.getConnection(strAccConnUrl);       

Regds
Ranjith
0
 

Accepted Solution

by:
huijkman earned 100 total points
ID: 2786204
Hi Susanna,
It seems like the URL you put under Set Environment is incomplete. You put the query part directly after the password without calling it first, and you left out an essential *, in the end it should ressemble something like this: (after the password part) &query=SELECT%20*%20FROM%20antennatest.
Apart from that you put your DSN at the beginnig of the URL. the first part contains info about the ODBC driver so your DSN should not be there, it is called in another part of the URL. Try the following URL:
fgjdbc:///?driver=sun.jdbc.odbc.JdbcOdbcDriver&url=jdbc:odbc:msaa&userid=&password=&query=SELECT%20*%20FROM%20antennatest
I got this from the Generator manual and completed it with your specific data
Good Luck
Huijkman
0
 
LVL 1

Author Comment

by:susannahbond
ID: 2955152
the comment below is more helpful
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 1

Author Comment

by:susannahbond
ID: 2955154
Comment accepted as answer
0
 

Expert Comment

by:john_
ID: 4604978
hi Susannahbond,

Please pardon for posting my question here.  I really cant find anymore help from other people.  I think you might have better picture of how to drive the database from MS Access to Macromedia Generator.  I am really a newbie in drivig the database from one source to another source.  Hence can you please help me to overcome my problem. (I have been assigned this task but I really have zero knowledge on it)  I do try many methods of driving the data either from Macromedia help file or online solutions.  Please let me know if you are willing to help me.  Thus i will send you my problem. (this is to show my respcet to you)

from John
s9813119@mmu.edu.my
0
 

Expert Comment

by:huijkman
ID: 4619759
Hi John,

Maybe I can help you. I have worked with Generator and MS Access for several months. So send me your problem and I will have a look at it. I also know how hard it is to get specific information about the subject. (I've been there).

huijkman@hotmail.com

0
 

Expert Comment

by:john_
ID: 4632941
Hi huijkman,

I am so glad that for your feedback.  In fact i wish to let you solve my problems here but I couldnt attach my relevant problem and error messages from my work.  Hence I wish to send you my questions from your personal hotmail address.  Please concern about my situation.  

Thanks Huijkman.  

from John
s9813119@mmu.edu.my
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question