Using Password with DSNless connection to Access DB

Has anyone actually used a password to connect to a local Access database? I keep getting the "Not a valid password" error.
I have created an application for distribution and do not want to allow the users to change my database, so I put a password on it. Because the users can create new databases with the program, I would like to use a DSNless connection to allow the user to change the databases easily.
I have successfully worked with the database through a DSN connection with the password, and with the DSNless connection without a password, but am unable to get in with a DSNless connection and a password.
I have read as many postings and topics using the main key words as I can find in the APIs, forums, tutorials, bug databases, etc., but this topic is not addressed.
I have tried as many permutations on the advice I did find, and nothing works so far. Here are a few of the tries I made:
String theurl = "jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)}; DBQ=c:\\demo\demo.mdb;Password=\"demo\"";
con = DriverManager.getConnection(theurl)
String userid = "";
String password = "demo" 
String theurl = "jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=c:\\demo\demo.mdb;"
con = DriverManager.getConnection(theurl,userid,password);What am I doing wrong?
I would appreciate any help I can get.

I'm sorry, I should have posted my entire code. As you can see, I have included the Class.forName method. The password that I set on was on the database; I did not create any users. The question about copying a database vs. creating a new one is moot here, because this database was created independently from any others. (However, you are correct in that I am actually copying a "Master" version of the database, not actually creating a totally new one.)
Here is my code:
import java.sql.*;
import java.util.*;
import sun.jdbc.odbc.*;
public class testPassword {
  private String theurl;
  private String user = "";
  private String password = "";
  private Connection con;
  private Statement stmt;
  public testPassword() {
    try {
      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          theurl = "jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};" +
            "DBQ=c:\\demo\\demo.mdb;Password=\"demo\"";
      boolean found = false;
      con = DriverManager.getConnection(theurl);
      try {
       stmt = con.createStatement();
       String pword = "";
        String query = "SELECT password FROM SysInfo";   // system Info
        ResultSet rs = stmt.executeQuery(query);
        while (rs.next()) {
          pword = rs.getString("password");
        rs.close();
        stmt.close();
        con.close();
        System.out.println("Inner Password: " + pword);
        System.exit(0);
      } catch (Exception e) {
          System.out.println("Inner failed " + e.toString());
          System.out.println("Outer Password: " + password);
    } catch (Exception ex) {
        System.out.println("Outer failed " + ex.toString());
        System.out.println("URL: " + theurl);   
  public static void main(String [] args) {
       testPassword app = new testPassword();
}BTW, for those replies that I keep seeing all over the forum that say that you MUST create a DSN, that is NOT correct. Please do a search on "dsnless" or "dsn-less" and you will see that it is totally feasible.

Similar Messages

  • Using START WITH and CONNECT BY PRIOR in a report

    Hi - I am using Oracle 9i and reports 10g. Does anyone know of a reason why running my sql in TOAD will produce the correct results, but the report is dropping records? I am using start with and connect by prior to build a hierarchy of linked records. The report is dropping the "child records" and only returning records from the route level.
    Thanks you for your help.

    Hi user574499
    Could u pls share us ur Query...?
    Regards,
    Abdetu...

  • Unable to use SSO with universe connection on top of SAP BW query

    Hi,
    We're creating a universe on top of a SAP BW query by using universe designer.
    We logon to universe designer by using SAP credential.
    When creating the connection, we set the option "Use Single Sign On when refreshing reports at view time" in order to logon to BW server. But when clicking next, an error arises:
    "DBD: Unable to connect to SAP BW server Incomplete logon data"
    The strange thing on this is that there is one laptop which is able to set up this kind of connection, while all other workstations are not able to set it because they recieve that error (we all work against the same BO server). So this looks like an installation issue.
    We reinstalled SAP Integration Solutions on those workstations, but problem is still the same.
    I found thread: Universe Connection Authentication on SAP BW which talks about the same issue, but solution involves uninstalling Xcelsius. But we do need Xcelsius!
    Any suggestions?
    Thanks,
    David.

    >
    Ingo Hilgefort wrote:
    > Hi,
    >
    > - how did you enter the SAP credentials when logging on ?
    username/password with sap authentication
    >
    > - are you using a application server or a message server for the connection ?
    Application server
    >
    > - SAP GUI is installed ?
    SAP GUI 710 patch 11
    >
    > - SAP Integration Kit is installed ? is it a full keycode or a temp keycode ?
    SAP Integration Solutions with temp keycode
    >
    >
    > thanks
    > Ingo

  • Not able to use password with characters for RFC User.

    hi All,
    I have installed SAP SCM 5.0 with MaxDB 7.6and liveCache 7.6.
    I created RFC user and RFC destination to administer liveCache globally as per SAP notes 305634 and 452745. I changed the initial passwords and tested Remote login for RFC User.
    But when I try to start liveCache with startrfc following the link below
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/95/379f3cad1e3251e10000000a114084/frameset.htm
    I got the following error
    RFC Call/Exception: SYSTEM_FAILURE
    Group       Error group 104
    Key         RFC_ERROR_SYSTEM_FAILURE
    Message     Name or password is incorrect (repeat logon)
    Then I logged into the CI with RFC user and try to start the liveCache with RSLVCSTART T-Code SE38..I got the following error.
    Error DBMCLI_COMMAND_EXECUTE_ERROR when starting liveCache LCS on server saplcslc
    Message no. LVC007
    I tried by changing the password for RFC user to numeric [0-9] and special characters [$,:] which worked fine.
    Does anyone faced this issue earlier? I searched notes, sdn and finally google ... but no luck to resolve the issue.
    Your help is much appreciated.
    Thanks,
    Venkat

    Yes I used LCA as liveCache connection. I resolved the issue with RSLVCSTART. Thanks for your suggestion to run connection test. I used wrong password for control user in the LCA connection. Now LCA connection shows everything is fine.
    But I am still not able to use alphanumeric password RFC user to start the liveCache from command line. I get the following when run startrfc command...
    bash-3.00$ /usr/sap/CAT/rfcsdk/bin/startrfc -3 -d LCSCLNT001 -h sapcatci -s 51 -c 001 -u LCSRFC -p Mach1cspsap\$ -l EN -F START_LIVECACHE_LVC -E IV_CON_NAME=LCA
    RFC Call/Exception: SYSTEM_FAILURE
    Group       Error group 104
    Key         RFC_ERROR_SYSTEM_FAILURE
    Message     Name or password is incorrect (repeat logon)
    bash-3.00$ echo $?
    1
    But I can start the liveCache from command line with numeric password successfully.
    bash-3.00$ /usr/sap/CAT/rfcsdk/bin/startrfc -3 -d LCSCLNT001 -h sapcatci -s 51 -c 001 -u LCSRFC -p 19811983\$ -l EN -F STOP_LIVECACHE_LVC -E IV_CON_NAME=LCA
    bash-3.00$ echo $?
    0
    Note the difference between the passwords used. Do i need to change any settings to accept alphanumeric passwords for RFC user.
    Note that I am able to start liveCache server in both cases(alphanumeric password and numeric password) by logging into SAP GUI and RSLVCSTART program. The problem is only when i try to start the liveCache from the commandline.
    Any help will be much appreciated.
    Thanks,
    Venkat

  • Using StartTLS with IMAP connection to Exchange is giving me different certificates for machines different to the IMAP server, security exception each time

    I'm using Thunderbird with my work email account, which is using Exchange, this is not officially supported but access is allowed via IMAP.
    The problem is when I'm using StartTLS or SSL I'm getting multiple different self signed certificates being returned, seeming depending on which specific backend server is handling the request, each time it causes the Confirm Security Exception dialog to be displayed. If I confirm the exception I get the dialog being displayed again until eventually I get a certificate that seems to match the first certificate I confirmed, at which point I can download or send my pending mail.
    Thus is seems that there is only one certificate being stored as an exception for each server connection. Is there some way round this?
    Thanks.

    What is the reason for the exception prompt in the first place?

  • Using Flash with Facebook Connect

    I was wondering if anyone has any information or resources on using Flash AS3 with facebook connect.  What I'm particularly looking for is how to do facebook authentication within the flash interface (so the user doesn't need to exit to the facebook website to connect) and also if there are any ways to make facebook calls from within flash once you have authenticated (rather than loading xml generated in PHP as I am currently doing).
    Any information or resources would be appreciated.

    The dial in process would be exactly the same as if you were dialing into the bridge as a participant. Most of the time it needs the following steps.
    Phone number:           800-555-5555
    Delay:                        3000 ms
    DTMF: (passcode)     123456#
    Delay:                        3000ms
    DTMF:                      1 or # (for a roll call or to join the bridge)
    However if the provider is not using a SIP compliant bridge, the Universal Voice tool will fail upon attempting to dial out.
    Also, for the hosted environment, the phone bridge must have a toll-free number.

  • How to send multiple files in parallel using ftp with single connection

    Hi.
    i have written code for file upload manager using ftp..
    it perfectly working with sequence file uploading in single connection..
    And i tried to upload multiple files with parallel processing in a single connection.... but it is not working properly.. i also used thread concept
    but single file only transfered and connection refused...
    my code here...
    //////////////////// main class //////////////////////////////////////////
    ftp.connect();
    ftp.login();
    String [] archivos = new  String[100];
                                      File dir = new File("C:\\Files Uploading\\");
                                       archivos = dir.list();
                                       for (int s=0; s<archivos.length;s++)
         //Start Data Transfer Here
         new DataTransfer(archivos[s]).start();
                                       Thread.sleep(1000);
    /////////////////////// thread class ////////////////////////////////
    class DataTransfer extends Thread
          String FileName="";
          String LocalPath="",RemotePath="";
           public DataTransfer(String fname)
         FileName = fname;
         LocalPath = "C:\\Files Uploading\\" + FileName;
         RemotePath = FileName;
         System.out.println(LocalPath);          
            public void run()
                        System.out.println("DataTransfer Started");
         /File Transfer Here
         try
               FileInputStream input = new FileInputStream(LocalPath);
                               Ftp_Client.storeFile(RemotePath,input);
         System.out.println("Successfully sent : " + RemotePath);
         catch (Exception exc)
              System.out.println(exc.getMessage());
              System.out.println("DataTransfer Ended");
         }otherwise tell me any other alternate way

    And i tried to upload multiple files with
    parallel processing in a single connection....
    but it is not working properly.FTP isn't a multiplexing protocol. How could it work at all?

  • Getting username and password with https connection

    I have a webservice that will authenticate the user to run a http://localhost:8080/soap/services/myService, I would like to call this in a form when a user clicks a button.  So I require HTTP/s authentication on the SOAP service, and this brings up a prompt:
    Connection at http://localhost:8080/soap/services/myService requires authentication:
               Username:
               Password:
    Now on myService, I want to verify the username and password they have entered in that security prompt within my orchestration.  How can I retrieve the username/password from the Acrobat security prompt?
    If I need to clarify, please just let me know.
    Thanks,
    Alex

    Hi Paul,
    That's sort of what I assumed was happening, but I'm not actually wanting to authenticate for the webservice call it seems.  I'm wanting to capture their username/password via acrobat prompt then push it along to the soap service.  So I guess via script I would want to do:
    1. prompt the user for username/password via acro-prompt (not sure how to do this)
    2. capture their input in variables (again not sure from acro-prompt)
    3. set up soap message (I can do)
    4. send data ("")
    5. receive data on LC side and use the user/password to authenticate in a database table I created ("")
    6. modify a field based on authentication allowed/denied ("")
    It doesn't necessarily have to be an actual authentication box, but I just want a username/password prompt so I can get those values.
    Thanks,
    Alex

  • Can't use internet with bluetooth connection between iPhone and macbook

    My iPhone and my macbook both show that I have a successful bluetooth connection, but I can't use the internet on my macbook.  What might be the problem?

    jeb wrote:
    My iPhone and my macbook both show that I have a successful bluetooth connection, but I can't use the internet on my macbook.  What might be the problem?
    Basic question: Do you have a tethering plan with your carrier? It isn't automatically provisioned; you have to ask for it and pay extra with most carriers. See these tips from Apple:
    iOS: Understanding Personal Hotspot
    iPhone: Troubleshooting Personal Hotspot

  • HT6154 I unable to contact to my Iphone5 store , It tell my sign in to Itunes store using password , with i do and it keep telling me  incorrect passwp

    I trying to log in to my Iphone5 and I unable. it tell me to log in I use my password and it tellme incorrect. I try to reset and it still tell me incoreect password or Id.?

    If you're having trouble logging in, try getting in touch with Apple Support:
    http://www.apple.com/support/contact/
    Click the Get Started button, click the iTunes button, then click the iTunes Store button. Click the Password & Security Questions button and then click Lost or forgotten Apple ID password. Follow the prompts after that.

  • Using iphone with macbook air to access internet away from home

    Can I use the iphone as a dongle to access internet on Macbook air. I find using the iphone fiddly and would prefer the laptop when away from home.

    You can, but you have to pay an additional fee to AT&T. I think it's about $20/month for tethering.

  • SQL Developer 4.0 EA2 -- Cannot use OpenLDAP with LDAP connect option

    Hi,
    I've got OpenLDAP setup to work with my Oracle clients, to serve up TNS connect strings, in lieu of having tnsnames.ora files scattered about hundreds of servers.
    This is working fine with 10g/11g, both full and instant clients, no problem.
    Now, I'm trying to configure SQL Developer 4.0 EA2 working with it, as well.
    When I attempt to do so, I'm able to select the "LDAP" option in "Connection Type", and the "LDAP Server" drop down list is correctly populated with my LDAP server, from ldap.ora.
    However, when I select it, I get the following error:
    Status : Failure -[LDAP: error code 32 - No Such Object]
    Now, I've done some research, and I monitored the slapd.log file, which shows me the following:
    Sep 18 02:43:35 einstein slapd[2779]: conn=1034 fd=16 ACCEPT from IP=192.168.125.1:63781 (IP=0.0.0.0:389)
    Sep 18 02:43:35 einstein slapd[2779]: conn=1034 op=0 BIND dn="" method=128
    Sep 18 02:43:35 einstein slapd[2779]: conn=1034 op=0 RESULT tag=97 err=0 text=
    Sep 18 02:43:35 einstein slapd[2779]: conn=1034 op=1 SRCH base="" scope=2 deref=0 filter="(objectClass=orclContext)"
    Sep 18 02:43:35 einstein slapd[2779]: conn=1034 op=1 SEARCH RESULT tag=101 err=32 nentries=0 text=
    Sep 18 02:43:35 einstein slapd[2779]: conn=1034 op=2 UNBIND
    Sep 18 02:43:35 einstein slapd[2779]: conn=1034 fd=16 closed
    Which is a lot more detail, but reflects the corresponding error code, (32 - No Such Object).
    After doing some testing with ldapsearch, I've been able to replicate what SQL Developer is doing, and get the exact same error.
    That ldapsearch command is:
    ldapsearch -h einstein -p 389 -c -x -D "" -b "" "(objectClass=orclContext)"
    Looking in the slapd.log file, I find an identical error to what is produced from SQL Developer.
    Further, the query that SQL Developer wants to do can be successfully done with the following ldapsearch:
    ldapsearch -h einstein -p 389 -c -x -D "" -b "dc=proquest,dc=com" "(objectClass=orclContext)"
    So, it seems the problem is with the fact that SQL Developer is not supplying a search base.
    I'm no LDAP expert, and I'm really not sure where to turn next....
    Is there a SQL Developer option that allows me to set that search base?  Is there a configuration I'm missing on the LDAP server configuration?
    Thanks,
    -Mark

    Well, that didn't take long.  I managed to find a solution to the problem.
    It comes down to the fact that SQL Developer doesn't supply a search base, and my LDAP server didn't have a default search base defined.
    When I edited slapd.conf (the OpenLDAP config file) and added a "defaultsearchbase" parameter, and bounced the LDAP server, everything started to work.
    I now have a working configuration with OpenLDAP and SQL Developer.
    I'll mark this discussion as closed.
    -Mark

  • Using Uberconference with Adobe Connect

    Hi Everyone
    I have been beating my head against the ball trying to set up Uberconference to work with Adobe Connector.
    I have tried to set it up as an Audio Provider -- but I just can't figure out how to set up the dial-in steps properly.
    Has anyone out there used Uberconference -- or any other 3rd party audio conferencing provider -- successfully.
    Help is much appreciated!
    Greg

    The dial in process would be exactly the same as if you were dialing into the bridge as a participant. Most of the time it needs the following steps.
    Phone number:           800-555-5555
    Delay:                        3000 ms
    DTMF: (passcode)     123456#
    Delay:                        3000ms
    DTMF:                      1 or # (for a roll call or to join the bridge)
    However if the provider is not using a SIP compliant bridge, the Universal Voice tool will fail upon attempting to dial out.
    Also, for the hosted environment, the phone bridge must have a toll-free number.

  • Performance issue using Universe with SNC connection

    I had a dynamic dashboard using Live office > Webi report > Universe > Bex query which was working fine but we recently implemented SNC between Business Objects and SAP BW due to which the universe connection has been changed to use sign on connection. After changing the connection in the universe I am see a performance degradation refreshing the connections in xelsius dashboard. Earlier the connection refresh time was 6 sec now the refresh time is around 30 secs, Intersting thing is I have tryed refreshing the webi report the refresh time of the webi report did not change which is still less than 6 secs and I have also tryed refeshing the Live Office component directly in the design/spreedsheet mode of the xcelsius even here the refresh time remain same less than 6 secs.
    The connection refresh time is bad only when I am in preview mode or if I deploy the swf to the business object server.
    Xcelsius Version: 2008 (5.3)
    BO Version: 3.1 sp2 fixpack 2.8
    Thanks

    Anup,
    What will happen behind the screens when application restarts.
    what are the otherways of achieving the same Behavior,like getting the application state to initial state.

  • Using 7921 with AP541N connected to C881SRST-K9 (CUCM BE) - Will this work?

    Hi Gang,
    I know the AP541N can support the 7921 phone but all the documentation I've read assumes the AP541N is registering the phone with a UC500 system. I was curious if there would be any problems using this AP with a 7921 at a remote site (881SRST gateway used). It would be tieing into a CUCM BE system at the central office.
    Any help would be appreciated.
    Regards,
    Mike

    eric,
    so it's recovery volume it should still give me the following:
    1: correct version for late model 2013 15" rMBP
    2: a clean install
    am I incorrect?
    I take your post as meaning the hidden 650mb partition I speak of is my recovery volume.
    Am I going about this wrong as I read of many using USB thumb drives for late 2013 models but those posts were also from Nov and Dec when it was still 10.9.0..... I recieved this 15" rMBP on 12-24-2014
    i am currently on 10.9.2
    OS X 10.9.2 (13C64)
    trying to clean install and still have 2 things i read of many losing one is the hidden partition and another which may or may not be part of it but also the "Find My MAC" option via icloud. these things i read on these forums searching clean install.
    Thank you
    also I was using this info: http://support.apple.com/kb/PH14243

Maybe you are looking for

  • Configuration settings for FM10 & DITA questions

    We are currently using FrameMaker 10 and trying to tweak some configuration settings. 1. Is there any way to change the default location of the user version of maker.ini? On Windows 7 it defaults to C:\Users\User Name\AppData\Roaming\Adobe\FrameMaker

  • Files saved to NFS share by MS word cause finder to loose sync w/filesystem

    I am posting this bug report(#4699323, opened Aug 24th, 2006) I have open with Apple because there is no indication that they have even noticed it. Please reply if you have similar problems, questions, or suggestions. Bug report follows. 24-Aug-2006

  • Digital Signature not allowed Acrobat 9.5.2

    I created a form in Acrobat Pro and saved with extended functions. I'm using Acrobat Standard 9.5.2 which allows me to add digital signature. Most other employees can add signatures as well. However, there are a couple (using the same version softwar

  • Is it possible to have different fields go to different pages?

    I have 6 fields that will serve to search records a button either hidden or not will then be called to branch to that page only if there are more than 1 records. Otherwise it will display the results on the same page, populating those fields that mat

  • Uninstalling old Reader after upgrade

    I have just upgraded from Adobe Reader version 5 to version 9 without a problem.  Is it safe to now uninstall version 5?   I intended to use the current version of Revo Uninstaller.  Thanks!