I want to get all the user name form LOGIN table ... how help me ?

hi all
I have table in MS Access databse called Login with two coulmn (User, Password),
I want to get all the User Name in a string[] called USER,
(LIKE USER = {"AA","BB","CC",........"zz"};)
can anybody send me the code to get the USERNAMES form Login Table, i tried lots of way but bad luck
so plz someone send me a code.
Thanx
Regards
Satinder

I made something like this as He pasted the the code above and u know this works for me atleast thanx
kind regards
satinderjit
String User[] = new String[1000];
try
//Load Driver
Class.forName(driver);
// Make Connection
connection=DriverManager.getConnection(url,user,password);
// Create Statement
statement = connection.createStatement();
sql = "SELECT User FROM Login" ;
// Create Resultset
rs = statement.executeQuery(sql);
int j=0;
while(rs.next())
User[j]= rs.getString("User");
j=j+1;
for(int i=0 ;i<J;i++)
Form.C_Manager.addItem(User);
statement.close();
//rs.close();
connection.close();
catch(ClassNotFoundException cnfex) {
//show message
JOptionPane.showMessageDialog((Component) null,
"Failed to load driver..."+
"\n"+cnfex.getMessage(),
"Error...",
JOptionPane.ERROR_MESSAGE);
catch(SQLException sqlex){
//show message
JOptionPane.showMessageDialog((Component) null,
"Unable to connect to Database..."+
"\n"+sqlex.getMessage(),
"Error...",
JOptionPane.ERROR_MESSAGE);
catch(ArrayIndexOutOfBoundsException e){
//show message
JOptionPane.showMessageDialog((Component) null,
"Unable to Load User Name..."+
"\n"+e.getMessage(),
"Error...",
JOptionPane.ERROR_MESSAGE);

Similar Messages

  • I want to get all the User Name in a string[ ], but How..... don't know

    hi all
    I have table in MS Access databse called Login with two coulmn (User, Password),
    I want to get all the User Name in a string[] called USER,
    (LIKE USER = {"AA","BB","CC",........"zz"};)
    can anybody send me the code to get the USERNAMES form Login Table, i tried lots of way but bad luck
    so plz someone send me a code.
    Thanx
    Regards
    Satinder

    Well, the biggest problem is that you don't know (probably) a head of time how many names are in the table.
    So i'd first stuff them into a managed array such as ArrayList
    So you'd
    (1) Iterate over the resultset
    (1.1) for each row call getString() on the user field
    (1.1) call add on the ArrayList to add the string
    (2) Call toArray on the ArrayList to convert it to a plain array
    (NOTE: you will have to pass a String[] {""} arg as a parm to
    toArray() to get the right type of array.)

  • How can I get ALL the user info from WWW_FLOW_FND_USER -table?

    Hi.
    I use HTML DB authentication and therefore all my user information is stored in HTML DB tables. I can use :APP_USER to get USER_NAME, but in my application I need to have also USER_ID, FIRST_NAME, LAST_NAME and EMAIL_ADDRESS fields from database. I don't want to change any database/schema security level so I cannot read directly from WWW_FLOW_FND_USER -table when I am inside in SCOTT -schema/sec.level.
    How to read all the information?

    Thank you for your help, but I cannot find any information about backage wwv_flow_user_api on OTN or in HTML DB documentation.
    Where to start?

  • I have a old firefox data file from a computer transfer i did and i want to get all the bookmarked sites i had orginized how can i do this?

    so a while back i transfered my old computer files to my new computer and when i did that i tried getting my firefox books marks added when i did it it just made a file old firefox data. i went into it it has the books marks but the problem is it isnt really readable kinda jumbled up and i wanna know if i can import it to my current one or somehow get it organized so i can at least see them apart or on a note pad just each bookmark on its own line? i added a picture of what it looks like

    Backing up and restoring your Profile should have included your bookmarks.
    https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile
    That looks like a JSON bookmarks backup file, from 11-01-2012. Did you try '''restoring''' that file?
    https://support.mozilla.org/en-US/kb/restore-bookmarks-from-backup-or-move-them#w_using-a-bookmark-backup-file
    Never messed with JSON files other than viewing them on a few occasions out of curiosity. There are no line breaks which make them very difficult to read.
    As far as working with that file in {like} NotePad goes:
    A. use Find / Search for each indecent of a '''"uri"''' string, then "copy and paste" the uri into another text file, and then move on to the next "uri" string.
    B. use a text program where a filter can be set for the "uri" field in the JSON file for a line break or to "scrape out" the "uri"s only for display or export to a list of uri's.
    Or try using an online JSON editor like this, to try to display only the "uri" field.
    https://www.jsoneditoronline.org/

  • TS3899 Cannot get mail  the user name or password for Suddenlink is incorrect

    I have not once had an issue with this. I have not changed my password or anything. I have the iPhone 4. All of a sudden, the message error pops up that says " Cannot get Mail"  The User name or Password for Suddenlink is incorrect. Please help!!!!!!

    All customers should now have the ability to send and receive email through Suddenlink’s email service, and the vast majority should have full service, including access to all mail, folders, contacts, and settings. We will continue working until the remainder of customers have full email service restored. I'm very sorry for the inconvenience and thank you for your patience as we continue to work to restore full email service for all customers.

  • Script to get all the Server Names on Central Site in the SCCM 2007 Hierarchy

    I want a script which will run on Central Site, and give all the SCCM server names in the hierarchy.
    Thanks and Regards, Mohd Zaid www.techforcast.com

    Duplicated post of
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/97910cd5-8f8b-46a7-86fa-c00932571d0d/script-to-get-all-the-server-names-on-central-site-in-the-sccm-2007-heirarchy?forum=configmgrgeneral
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • User management API/get all the users for a group

    Hi all,
    I'm trying to get all the users and their associated groups with the user management API. The method DirectoryManagerServiceClient.findGroupMembers(GroupMembershipSearchFilter)
    returns all the users, great, but not the associated groups.
    TO get the users i use the oid of a "super group" and this "super group" contains severals groups. It's the information about these groups i need.
    I have read in the documentation of Principal Object that a search could omit
    the group informations for efficiency. How can i bypass this limitation?
    Thank you in advance for your help,
    Philippe Vandenhove

    Hi Philippe
    Our CreateUser component will allow you to create local users and groups.
    http://avoka.dnsalias.com/confluence/display/Public/Create+User+Create+Group
    LookupGroup takes a group name or id, and returns a list of all members. I'm pretty sure it recursively evaluates contained groups, but you'll need to check. If it doesn't, log a bug to support-at-avoka.com.
    http://avoka.dnsalias.com/confluence/display/Public/Lookup+DSC
    Download at:
    vhttp://www.avoka.com/apps/checkcookie?qpac=y&qpac_code=avokaESComponents&location=%2Fapps %2Fqpacdownload
    Howard

  • How can i get all the users from weblogic server?

    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

    BTW, i use weblogic platform 8.1
    "Daniel" <[email protected]> дÈëÓʼþ
    news:[email protected]..
    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

  • Function to get all the months name of a year from dual

    HI GURUS
    Is there any function to get all the months name of a year from dual
    thanks in advance

    What about this --
    satyaki>
    satyaki>select months_name
      2  from (
      3         select to_char(add_months(trunc(sysdate,'YEAR'),rownum-1),'MONTH') months_name
      4         from dual
      5         connect by rownum<=12
      6       );
    MONTHS_NAME
    JANUARY
    FEBRUARY
    MARCH
    APRIL
    MAY
    JUNE
    JULY
    AUGUST
    SEPTEMBER
    OCTOBER
    NOVEMBER
    MONTHS_NAME
    DECEMBER
    12 rows selected.
    satyaki>Regards.
    Satyaki De.

  • TS1398 Cannot get mail the user name or password for xtra.co .nz is incorrect

    Cannot get mail
    The user name or password  xtra.co.nz is incorrect

    Hello dkmorgan,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Log in to your email provider's website to ensure that the account is active and the password is correct.
    Restart your iOS device.
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Choose the affected email account, then tap Delete Account.
    Add your account again.
    Have a nice day,
    Mario

  • TS3058 Cannot Get Mail The user name or password for "gmail" is incorrect.

    Cannot Get Mail
    the user name or password for "gmail" is incorrect.

    did you do this
    http://support.google.com/mail/bin/answer.py?hl=en&answer=77702
    http://echeng.com/journal/2010/04/05/how-to-properly-set-up-gmail-with-your-ipad /

  • Bummer Message:  Cannot Get Mail  The user name or passowrd for "

    I have had the iPad 2 for one week and was able to access two gmail accounts (mine and my wife's). . . until this morning when one of them (mine) starting giving me the message:  "Cannot Get Mail  The user name or password for "####" is incorrect."  The other gmail account is still accessible. So what is the solution--if any?

    If your having problems sending email - go into your email settings and see if you can enter a password for your outgoing mail server same password as your incoming mail server.

  • HT1529 I have multiple users on my Mac and I was wondering how you tell the system to retain all the user names so they don't have to enter their email addresses every time ???

    I have multiple users on my Mac and I was wondering how you tell the system to retain all the user names so they don't have to enter their email addresses every time ???

    Email addresses into what?
    Each user should have their own account and password to log in.  Each is independent of the other.  So for Mail each has their own Mail account if they set one up in Mail. 
    That's the way it should be set up.  Are you using a single account and allowing multiple users to use that one single account?  If so then in Mail at least you could set up individual mail accounts.  But everything else in the system is shared.

  • In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.

    Hi all
      In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.
    Thanks & Regards,
    Rajib.

    Isn't that just exactly what transaction CO02 does? CO01 is for creating production orders so what sense does it make to have it display mode only?
    Maybe your goal is to stop then end user changing the component assignment that is automatically  detected by the system. If so, personally I think a better starting point would be PP configuration or user authorizations rather than looking to change the screen by whatever method. As we don't know what you are trying to achieve it's hard to offer much more advice maybe all you need is to change transaction to CO02

  • Get all the user in the database

    guys what is the commmand to get all the valid user for the database.
    thx m

    assume that I have logged into Oracle database (as a non administrator),and now by chance I forget my user name and password,then what is the select statement which tell me my user name and password with which I logged into the database in the first place.
    Note : select sys_context ('userenv', 'session_user') from dual gives me the user name but how to get the password.
    If you forget your user name, you have to talk to your administrator about it(I am sure they will keep some kind of records). If you forget your password, you could ask your administrator to reset it.
    Password is stored in encrypted format in the database.
    You may not be able to use it. For example, the real password could be 'ABCD' and the encypted format stored in the database could be '54395C04DCA3CA40' (column PASSWORD of data dictionary view 'DBA_USERS'). I am not aware of any algorithm that would be able to retrieve your actual password from the encrypted format stored in the database.

Maybe you are looking for

  • Exporting a QuickTime movie in Keynote '09

    Hello, I am trying to create a quick time movie from Keynote. I have a five minute audio file sound track to which I have selected 28 Slides. When I first exported, I hear the audio, but the video does not advance. I have considered using "Fixed Timi

  • Calling a function from string

    I have a little class that is used to call a function at a certain interval in ms and one of my parameters for the method is the name of the function to be called. However I'm not sure how to implement this as i come from a Flash/Actionscript backgro

  • Cannot start an add-on

    SBOers, My registration used to work fine earlier. However, after a few install/uninstall of the add-on, now I cannot get my installer to start anymore. Here are more details: I have two VB.NET programs: MyAddOn.exe Installer.exe 1. Uninstalled the e

  • Adaptable Web Content

    Hi, When I copy and paste <iframe> embed code from Youtube, I got the dimensions of it, in pixels, from that code (width, height). I am working in a PDF Folio rendicion at 1024 x 768 px for the iPad, so when I see this Folio in a 2x Retina display, i

  • Connecting Oracle forms 10g to SQL 2000?

    Hi, Can someone please help me connect oracle forms to sql 2000. I have searched online with no luck; however, I know oracle can use ODBC. thanks,