Solved

How to connect to an Access data source

Posted on 2000-04-27
7
1,924 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows server 2008, 2012 4 381
Using BigFix Actions 7 115
IBM WAS 8.0 to 8.5.5 migration 2 96
SSRS Problems 9 71
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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