HELP! I'm trying to read an access DB.

Hi everyone,
I hope you can help me solve this problem:
I created the data source (SystemDSN) for my access DB called EMail, and now with this program I'm trying to read the information that I wrote in my DB. I don't know why I have the error NO DATA FOUND during the connection.
I have windows ME, JBuilder6, jdk1.3.1_02, MDAC2.7 RTM.
This is my program:
package jdbcconnect;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import java.io.*;
import java.lang.*;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
public class JdbcFrame extends JFrame {
JTable jRows = null;
Vector columnNames = null;
Vector rows = null;
public JdbcFrame() {
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
columnNames = new Vector();
columnNames.addElement("Email Address");
columnNames.addElement("First Name");
columnNames.addElement("Last Name");
// rows is a vector of vectors, it will maintain a vector
// for each row in the table, and each vector maintained by
// row is a vector of the columns.
rows = new Vector();
getData(rows);
setSize(400,400);
jRows = new JTable(rows, columnNames);
getContentPane().setLayout(new BorderLayout());
getContentPane().add(jRows, BorderLayout.CENTER);
getContentPane().add(jRows.getTableHeader(), BorderLayout.NORTH);
setTitle("JdbcFrame");
//pack();
setVisible(true);
private void getData(Vector v)
// here is the bulk of your database connectivity
// code.
Connection connection = null;
try
// instantiate the JdbcOdbc Driver
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("STEP 1");
// get a connection from the driver to the Email System DSN
connection = DriverManager.getConnection("jdbc:odbc:EMail"); // PROBLEM!!!!!!!!!!!!
System.out.println("STEP 2");
// prepare SQL command
String sql_command = new String("SELECT * FROM EMail");
System.out.println("STEP 3");
// prepare to submit SQL command by Statement object
Statement statement = connection.createStatement();
// retrieve a ResultSet (a logical db table) containing
// results of the query
ResultSet rs = statement.executeQuery(sql_command);
// next() moves to the first row and to subsequent rows
// in the table
while(rs.next())
// add the results to the associated vector
// of the JTable
Vector singleRow = new Vector();
singleRow.addElement(rs.getString("email_address"));
singleRow.addElement(rs.getString("f_name"));
singleRow.addElement(rs.getString("l_name"));
v.addElement(singleRow);
rs.close();
statement.close();
connection.close();
catch(SQLException e)
System.out.println(e);
catch(ClassNotFoundException g)
System.out.println(g);
public static void main(String[] args)
JdbcFrame jdbcFrame1 = new JdbcFrame();
}

Hi there,
Actually I tried to run the same program and test it, I found that the program is working perfectly fine!!!
I would like to ask you to check the following few things.
1. Please check that the DSN created i.e EMail is pointing to the right Database or not.
2. Is there any data in the Table or not???
3. The select statement you fired is "SELECT * FROM EMail". Please check the Table Name as its the same as the DSN. Might be a mistake bychance.
Otherwise your program is Perfect.
Do give me a shout if any other queries...
Thanks
II

Similar Messages

  • When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.

    When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I had my vaio serviced and now I have had to download itunes again. After having done so, I no longer am able to see my old playlists on itunes though they are there on my phone. How do i sync new music? Please help; I'm exhausted trying to read up online

    I had my vaio serviced and now I have had to download itunes again. After having done so, I no longer am able to see my old playlists on itunes though they are there on my phone.
    I would like to view my old playlists & add new music on them. I keep my phone pretty organised & now to not see the music & playlists I already have on there on itunes is irritating me.
    My first time here on the Support Communities.. I hope I am able to find my way around.
    Please help; I'm exhausted trying to read up online.

    I had my vaio serviced and now I have had to download itunes again. After having done so, I no longer am able to see my old playlists on itunes though they are there on my phone.
    I would like to view my old playlists & add new music on them. I keep my phone pretty organised & now to not see the music & playlists I already have on there on itunes is irritating me.
    My first time here on the Support Communities.. I hope I am able to find my way around.
    Please help; I'm exhausted trying to read up online.

  • Error:[The specified object was not found in the store] when trying to read another mail box using Delegate access

    Hi all,
    I need to create service to access all unread mails of  other mailbox's every time in Exchange server 2013, for that i trying to use Delegate access.
    but i am not succeed. I am getting Error Every time : [The specified object was not found in the store]
     error shows in FolderId in  
    var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
    List<DelegateUser> newDelegates = new List<DelegateUser>();
    DelegateUser emailDelegate = new DelegateUser("[email protected]");
    emailDelegate.Permissions.InboxFolderPermissionLevel = DelegateFolderPermissionLevel.Editor;
    newDelegates.Add(emailDelegate);
    Mailbox mailbox = new Mailbox("[email protected]");
    Collection<DelegateUserResponse> response = service.AddDelegates(mailbox, MeetingRequestsDeliveryScope.DelegatesAndSendInformationToMe, newDelegates);  var userMailbox = new Mailbox(useremail);
        var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
        var itemView = new ItemView(20);   
        var userItems = service.FindItems(folderId, itemView);
     i changed my code in many ways by adding new Delegate User with different folder permissions.
     but i am getting same Error, Please help me.

    That error means you don't have rights to the Mailbox your trying to access. In Exchange by default the only user that has access to mailbox is the owner of the Mailbox, Exchange Administration rights does not grant you access to another users mailbox. You
    need to either specifically grant rights to each mailbox using Add-MailboxPermissions or use EWS impersonation where you can impersonate the owner of the Mailbox see
    http://msdn.microsoft.com/en-us/library/bb204095(EXCHG.140).aspx and
    http://msdn.microsoft.com/en-us/library/office/dd633680(v=exchg.80).aspx
    Cheers
    Glen

  • Safari pop up a news webpage to App games every time I trying to read.I have a iPhone 6 iOS 8.1..3.  Thanks for your help.

    Safari pop up a news webpage to App games ( Oz, some Jelly Candy and a Panda. Those 3 only! Sorry I'm not a game person) every time I trying to read.I have a iPhone 6 iOS 8.1.3. Any help, Thanks!

    Thanks for your response, I did it but doesn't work. I try to catch the web direction from those  pages but they gone faster. Any idea?

  • I just put a DVD into my IMac 27" and it makes noise like it's trying to read the DVD but then ejects it. Can anyone help me? I just ran out of Apple Care.

    Can anyone help me? I just put a DVD into my IMAC 27". It sounds like it's trying to read but then it ejects it. I tried this DVD on another IMAC with not problems. My computer just ran out of Apple Care. Help!

    I took the steps that I read on this forum and now my DVD Player works!

  • Read only access to J2EE related tools

    Hello,
    I would like to help our auditors access everything they need to check in the Java systems, but I am not ready to give them ADMIN accounts. That`s why I need some kind of read only access for them.
    So I would like to ask you if there is a SAP Note about the read only access roles for J2EE/ Java AS?
    I am afraid there is no such note available, so can anybody share any experience with granting read only access to the Java system? I know how to grant access to the whole NWA, but what about the rest?
    Examples:
    - is there a way how to grant read only access only to the UME?
    - is there a role for read only access to the portal PCD?
    - is there something similar for KM access?
    Or has anybody ever tried to split the admin roles into smaller pieces? Is there a description/ document how to do such thing?
    Thank you for your time and effort,
    cheers Otto

    Hi,
    thanks for trying, but I can use help.sap.com and was on that page before.
    Maybe if there were any examples there or better: if the whole thing would be more granular (I see no point in using roles starting with SUPER, containing ADMIN or ending with ALL). I am looking for roles for surgery or for auditing. I don`t want to give anybody these super/admin/all roles just like that.
    If you can suggest how to use that page, that would be cool. Otherwise I see no use.
    By the way: another question of mine about surgery: How to restrict access to download/ upload UME configuration file
    I would like to know how to controla access to this specific feature, nothing else.
    Thanks for the time and effort,
    cheers Otto

  • How to assign read only access for a database to a single user?

    Hi All,
    I have created a login for one of the user , and i used deny view to deny that user access to any of the databases to be shown.Now, he cannot see any databases in the explorer window.
    My question is now i want to give this user permission ( read-only) to a single database. How can i do that? I have googled around and found some solutions but nothing is working.
    Can someone please help me with any suggestions.
    Thanks a lot for your time and suggestions in advance.
    Thanks

    Hi Bhanu,
    Thanks for your reply, I am not sure i got it. I have a user created with the name of 'msam_test' and if i login into management studio with this userid and password i dont see any databases showing up because i used the DENY View command to hide which is
    working fine.Now i just want to see only 1 database named 'suresh3_test' with a read only access to this database.
    I tried using your code in the below way
    USE [suresh3_test]
    CREATE USER [<msam_test>] FOR LOGIN [<msam_test>] WITH DEFAULT_SCHEMA=[dbo]
     exec SP_ADDROLEMEMBER 'DB_DATAREADER','<msam_test>'
    But i receive an error saying
    Msg 15007, Level 16, State 1, Line 3
    '<msam_test>' is not a valid login or you do not have permission.
    Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 75
    User or role '<msam_test>' does not exist in this database.
    Can you please help me on this.
    Thanks

  • Read only access to Admin Console in WL 6.1

    Hi,
    I've seen a couple of questions already posted about this... but so far no answers!
    Does anyone know how to grant read only access to the WL 6.1 Admin Console? The
    supplied user "guest" doesn't seem to have any access, so I was wondering what
    needs to be edited to enable this.... I've tried adding ACL's with "read" permission,
    but that doesn't seem ot help.
    Any thoughts would be most appreciated.
    Jim

    Brown,
    This functionality is not available in 6.1. The newest version of wls
    8.1 has this feature depending on the role that the user is in.
    ~satya
    Mr. Brown wrote:
    Is there a way to restrict a user to read-only priv. on the weblogic
    console? Either by using acl's or other means.
    Thanks in advance,
    Brown

  • How can I regain Full Read Write access on my BU Drive?

    Prior to Yosemite upgrade, I had Read Write access to my BU hard drive and now I don't !! I can't update files on my back up drive.  Help!  I tried looking through help files and I am listed as an administrator on my iMac.

    When you get info on the external drive, at the very bottom is a box you can check
    "Ignore ownership on this volume"...
    If you check that, then see if you can delete and move things around.
    If that doesn't work then try clicking on the + sign and adding you as an admin so you can Read & Write.

  • Destination u have specified does not have read/ write access- FCP 7 to Compressor problem!

    Hello everyone,
    I finally got a video finished in FCP 7, and sent it to Compressor.
    When I try to add a templete (any template, but particularly the Youtube), I get a red || Source    ! || message and when I hit the submit button I see: "The destination you have specified does not have read/ write access. Check to see if the folder is set to read-only, or check your write privileges."
    What the?
    I'm using Apple ProRes 422 files.
    I tried looking at the video files themselves, with Control + I. It looks like I have "Read & Write" access to me. I'm not sure what to do.
    I also tried looking in my preferences for Final Cut Pro stuff, and it was empty, so nothing to erase. I also repaired disk permissions with the Utility application.
    Well, thanks for any help.

    I haven't tried to save to any directory.
    As soon as I send the sequence from Final Cut to Compressor, I am prompted to drag the settings to the destination... but it won't let me submit it for the "read/ write" reasons above.
    So I never get the opportunity to save it, I just close out Compressor and go back to Final Cut Pro.
    I'm wondering if it has something to do with the scratch disk files. I converted the MOV files into ProRes files and keep them in my documents, then I just dragged and dropped them into the browser. I'm wondering if somehow this is affecting things, because I can't even find a scratch disk folder with files inside.
    I also tried to look at my Final Cut Pro preferences file, but I had no idea what I was looking at so I just left it alone.
    I really appreciate this by the way.

  • Read/write access when opening or saving file

    We keep getting the message "specified file not found,
    followed by the dreaded "read/write access denied" message when we
    try to open files (whether Freehand or Illustrator files) and
    sometimes when trying to save. We've tried to delete the prefs., as
    noted in other threads, but this hasn't worked for us. We are
    running Freehand MXa on PC's running Windows XP. We are trying to
    mostly open previously created Mac files.
    Can anyone help? Thanks very much!!!!

    I've not seen Word crash when selecting a smart folder - but it doesn't 'see' what's inside either. In other words when I select a smart folder in the file selector it appears to be an empty folder. And this isn't just a Word thing - lots of programs behave this way.
    I use smart folders from the desktop. I have a folder in my Dock which contains all my smart folders. I open a smart folder from there and then double-click the document I want to open. It is a work around obviously but it works

  • Please Help! I tried to upgrade Flash Player, but have older computer

    Please Help! -- I tried to upgrade FLASH PLAYER, but I have an older MAC laptop OS X 10.4 = Version 4.1.3 (4533.19.4). 
    I need to UPGRADE Flash Player; however it's not available -- Recently, I cannot watch some videos or access particular websites.
    I'm a teacher, and CAN'T AFFORD to buy  a new computer at this time.
    > Can Adobe Corp. please help by offering an expanded range of UPGRADE support ??

    Unfortunately, if you're running OS 10.4, odds are that your Mac is a PowerPC model (-About This Mac will let you know for certain), and the newest version that will run on your system is Flash Player 10.1.102.64 and 9.0.289.0 (126 MB)
    That's a direct link to the download, you can right click (or control+click) and save it to your downloads folder. Expand it with Stuffit Expander and run the 10.102.64 installer.
    That's the best that can be hoped for because if your Mac is PowerPC, and I suspect it is, even Apple no longer supports it since September of 2009. The next OS X version (10.5) won't run the latest Player either. You'd need an Intel Mac with 10.6.3 or newer to use Flash Player 11.8.800.94.
    PowerMax does have some really good deals on "pre owned" Macs. I've bought three from them myself over the years.

  • 1st Mac & post - Trying to read/write a NTFS Portable HD

    Hi All,
    I'm not a naturally literate type of bloke, having to learn this stuff later in life, but I love using computers. Anyway, I've just switched from a PC to a MacBook Pro 15" and now the steep learning curve begins.
    The basic setup of the Mac was easy but my first hurdle has been trying to get my MBP to read and write to a NTFS formatted portable HD. The problem is, I have a 2TB HD (also NTFS) full of movies and its connected to a WD TV live. These are all remnants from my PC laptop days but also, most of the people I share movies with have pc's. So I need to be able use my portable HD to move between copying and downloading movies between both formats.
    So I've spent hours researching and eventually I purchased some software because of the backup, called Paragon NTFS for Mac OS X 9.0.
    I have emailed them but haven't received a reply yet and because it isn't an Apple Software product, Apple Care can't help me.
    Well the software downloaded successfully and I have read their user manual but I must be missing something.
    For instance, the manual says 'Once the driver has been installed you obtain full read/write access to any type of NTFS as if it's Mac OS X-native.
    So why is it that when I connect the Portable HD, open it up and can see the movies, when clicking on a movie all that happens is I get a message "You may need to install additional software to open this type of file".
    MMM, I thought once the driver was installed, I got full read/write access.
    So I was wondering if anyone could help me sort this out. I'd much appreciate anyone's assistance cos I really was hoping I could move on to all the other tasks I need to do in this pc to mac transition phase.
    cheers
    stacka

    Ok, you got access to the drive, but don't have the codec's to read the file formats.
    1: Download and install the free Perian.
    http://perian.org/
    2: If that doesn't quite cut the mustard then there's Flip4Mac
    http://www.telestream.net/flip4mac-wmv/overview.htm
    3: Finally there is VLC, plays anything just about
    http://www.videolan.org/vlc/
    Later on, if you ever get the drive empty for some reason. Use OS X's Disk Utility to format the drive exFAT, this file format is completely interexchangable with modern Windows and OS X systems (Snow Leopard).
    You can also use just FAT (msdos) format, but it has a 4GB file size limit, which isn't good for video, but is compatible with older Windows XP and OS X 10.5 and below machines.
    Good Luck

  • Hi Guys,  I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out

    Hi Guys,
    I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out as this web-site has been payed for by my client.
    Alex

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

Maybe you are looking for

  • HT5372 How can I access iCloud tabs from a PC?

    I don't own any apple devices other than an iPad and I don't see anyway to back up open tabs on Safari other than iCloud. I can't figure out how to access these back ups on my PC laptop. I have lost all tabs from errors twice now and it really hurts

  • Too high bitrate (not as it looks)

    Hello, I have one huge problem with the latest DVD Studio Pro and I need your help. I have a 15 minute and 3 minute video and I need to build a simple DVD. Here's a scheme: http://mt11.quickshareit.com/share/picture5cff99.png 15 minute is "Final Comp

  • Peformance of setting JVM attribute or callback.

    I have a program that receives feeds in the native world and then calls the JVM through JNI with a callback like receivedFeed(attr1, attr2 ....attr20). There are a large number of attributes being passed back for each callback. The question I have ha

  • Exception: Unable to add security token for identity

    Hi Friends, I was trying to add SAML tokens(Sender-Voucher Profile) to my web services. I configured WLS and ALSB with all Authentication settings but I get a SOAPFaultException when i run the client. javax.xml.rpc.soap.SOAPFaultException: Unable to

  • Itunes crashes when microsoft visual studio 2012 is installed

    Hello everyone! Hope you all are ok ^^ As you see, I'm having a serious problem with iTunes and Microsoft Visual Studio 2012 . Since I've installed MVS2012 , iTunes crashes when I open it. I installed the latest version of both of them but no success