File DSN

Hi,
We  connected Crystal to Progress DB  via FileDSN(ODBC RDO) . We got the below error.
logon failed. Details :HY000:[DataDirect][ODBC Progress OpenEdge Wire Protocol driver] Error parsing connect string at offset 198   attributes specified twise using keywords UID and LogonID [Default Vendor Code 2704]
Once we changed LogonID to UID in the File DSN  worked fine. We really donu2019t know the issue is related to Progress, ODBC Or Crystal.
Is there any Solution to solve this issue please let us know.
TIA
Philip

Yes, the solution is to use what works. Or post your question to the Data Direct Forum to see if there is an update to their driver if it's an issue.
You did not say why you can't use the syntax that works.
Thank you
Don

Similar Messages

  • How can I use File DSN to connect to database?

    Hi,
    I am using ODBC-jdbc driver to connect to the database. It seems that the DSN name is required. How can I use a file DSN instead of system DSN to connect to database? Please help?

    oracle provided jdbc drivers (thin and oci) do not use odbc.
    why would you want to slow things down by sending "round trip" data transfers thru a "jdbc to odbc" and thru "odbc to jdbc" conversion routines.
    It isn't necessary with the oracle provided drivers !!

  • FILE DSN using JDBC-ODBC Bridge ?

    Please Give Me sample code for Making connection
    against a dbms using FILE DSN & JDBC ODBC Bridge

    What do you mean by FILE DSN? Can you be a little more specific?

  • Im having trouble calling my file dsn within my code .. sample code provide

    HERE IS MY CODE::
    // cusomters rs.getString(5)
    // customers rs.getString("emp_no")
    import java.io.*;
    import java.sql.*;
    public class Test {
         // QuickBooks variables
         // parameters for QuickBooks database
         static final String url = "jdbc:odbc:sample";
         // quickbooks is a System DSN that is the name of the QODBC driver
         // On WindowsXP it can be set up at Control Panel > Administrative Tools >
         // Data Sources (ODBC)
         static final String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
         public static void main(String[] args) throws Exception {
         try {
                                  Connection con =null;
                                       Statement stmt = null;
                                       ResultSet rs = null;
                                  Class.forName(driver);
                                       con = DriverManager.getConnection(url);
         stmt = con.createStatement();
                                       System.out.println("Querying QB customer table");
         rs = stmt.executeQuery("sp_tables");
         } catch (Exception e) {}
    notes:
    i setup my file dsn using the add wizard and named the file sample (type .dsn).
    the connection does not work. i have a feeling it has to do with the declaration of my url.

    SORRY ABOUT THE LATE REPLY, LONG WEEKEND!
    Never, ever, ever had an empty catch block. You should always do this at a minimum:
    catch (Exception e)
    e.printStackTrace();
    situation assessed. thanks for the heads up.I did a Google search on "JDBC Quickbooks". It brought back lots of stuff, including this:
    http://www.qodbc.com.au/readme.htm
    One question: this QODBC that the links refer to. Is that a special ODBC driver for Quickbooks that you have to download and install? Did you do that?
    Yes I had to download and install the driver, and yes it is a special ODBC driver for Quickbooks.So when you create the Windoze DSN, you select the QODBC driver and associate the path to your filename to a DSN "quickbooks" or whatever it was that you used?
    Yes, and in my situation, Im creating a file dsn, and associating a specific Quickbooks file with it. However, the main idea for using a file dsn is to be able to open up as many quickbooks files in the background as needed (Hopefully, just by simply manipulating the text in the .dsn file created.)If I wanted to connect to a M$ Access database, I could eliminate having to set up the Windoze DSN if I used a URL like this:
    String url = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\path\\to\\my\\database.mdb";
    this sounds interesting. I'll take a lookin into it.Look at the DRIVER name in your DSN setup wizard and see if you can fiddle with this string to work with Quickbooks.
    I named the driver to be 'sample.dsn', so would my url probably look somethign like this :
    String url = "jdbc:odbc:DRIVER={Data Source Name(*.dsn)};DBQ=c:\\path\\to\\my\\sample.dsn"; ??What's that query you passed to the statement? That's not valid SQL. Looks like you're trying to call a stored procedure, which is a java.sql.CallableStatement. I have no idea if the Quickbooks QODBC allows you to call stored procedures. But that's not valid SQL. When you eventually figure out how to connect I'm sure that won't work.
    yeah, i fudged up on that query stuff. it's all fixed up though.

  • File DSN(ODBC)

    I'd like to know how can i do with file DSN attacking a access database. Always show me a connection message. With a system DSN it doesn't happen but I can't use a system DSN, because i need to distribute it.

    What do you mean by FILE DSN? Can you be a little more specific?

  • Difference between system dsn and file dsn

    what is the difference between file dsn and system dsn

    System dsn will always be available in the system (it is saved in the system registry) and it's not depends on who created the dsn, but file dsn will depends on a file, so if somebody else use the system, the file dsn might not be available for this person.

  • Re: does anybody know about creating file dsn types with java?

    Search the forums for 'dsnless'

    my server is named as
    "jdbc:odbc:quickbooks"
    but i want to access file types not server types .. the aforementioned advice sent me towards a bunch of sql server examples. anybody know about this stuff? it's urgent!!!! hehe

  • ODBC Data Source Administrator hangs when File DSN is selected

    I have been debating whether I should post the question here or a database related forum. Let me try it here first.  Please let me know if you think there is a better place.
    I used to use ODBC Data Source Administrator more frequently before upgrading the OS to Win8.  I don't think that I had this problem.  Here are the screen shots:
    The machine has a quad-core CPU.  The ODBC Data Source Administrator probably uses as much CPU as it can get when it hangs.
    Hong

    Hi, Hong,
    I'm agree with Robert that it would be better to use Process Monitor to check if your application needs look this huge zip file.
    In addition, what exactly I mean you can use other huge zip file but no contains many file to instead the fomer zip file. This operation just used to proof your app would check this ZIP file.
    Roger Lu
    TechNet Community Support

  • Db tools open connection.vi does not get password from dsn file

    I am

    The database is a Microsoft SQL server database.  Again, my IT group does not want the password hard coded into the application.  Their preference would be for the password to be extracted from the dsn.  I have tried both a file dsn and a system dsn which were created in the data sources app in control panel --> administartive tools.  Neither dsn works (unless I wire the password to the databse tools open connection vi).  Both dsn's work fine from the windows data sources application.  I have not been able to figure out how to attach graphics to a post on the board here, so I 'm not sure how to attach the error message (or my block diagram).  The text from the error message is below.  Wiring in the password causes the error to go away.
    Error -2147217843 occurred at DB Tools Open Connec (String).vi->DB Tools Open Connec (Path).vi->FindShiftNumber.vi
    Possible reason(s):
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'eslprodsproc'. in DB Tools Open Connec (String).vi->DB Tools Open Connec (Path).vi->FindShiftNumber.vi

  • MySQL DSN files

    Hi!
    I'm trying to store data from LabVIEW in a MySQL database, I've foloved the folowing procidure (http://digital.ni.com/public.nsf/allkb/47A8CF66D5E3C8CC8625720A006139D6) and it all works fine. But then,  I would like to be able to put my path to my DSN in a string so that I do not have to specifie it every time I run the program. They say that you can do that in the last sentence of the tutorial, but I cant find my specific path. I did exactly as it sad in the tutorial, do anybody know how I can find thise address?
    Solved!
    Go to Solution.
    Attachments:
    MySQL.vi ‏16 KB

    ollef,
    Hello! Following that Tutorial you linked allows you to create at User DSN and according to the documents below isn't actually a file, but information stored in a registry. So, when using the DB Tools Open Connection VI you would wire a string control into the Connection Information Input of the VI with the Data Source Name of the User DSN that you created in Step 6 of the tutorial.
    What Is the Difference between a System DSN, a User DSN, a File DSN, Universal Data Link (UDL), and ...
    Database Source Name
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • How to use relative DSN filename for connection (in Design mode)

    Hello,
    I connect Crystal Reports to Oracle database via ODBC with connection information stored in DSN file.
    I use "Crystal Reports Basic" in Visual Studio 2008 SP1. CR has no SP. Windows XP Pro SP3, my development machine.
    I created a DSN file, and in Database Expert I'm creating a new ODBC connection and trying to fill the File DSN.
    But, the file name is absolute, and I need to use file name relative to the report file, because I want several programmers and several reports to share the connection parameters. This would also simplify the deployment.
    When I try to copy the DSN file to the solution folder and use just the relative path, then a error is reported:
    Logon failed.
    Details: HY000 General Error: Invalid file DSN
    which probably means that the file could not be found.
    This problem does not exist in runtime, as the connection string could be set programmaticaly.
    Does Crystal Reports accept relative DNS file name?
    If does not, are there any other possibilites to achieve this?

    If still an issue post your question the .NET SDK forum.

  • Report with Access Database or TXT file

    Dear All,
    I was wondering if someone can help me with the following issue.
    We have created a Crystal Reports XI report which has a Access MDB or Plain Text file as source data (2 different reports; one with MDB connection only and the other one with a Lotus Notes ODBC connection and TXT file).
    The report runs correctly locally and it also runs correctly on the server but as soon as I post the report via the repository folder to the server, it does not work anymore.
    Viewing the report via InfoView gives me a password request while both, the MDB and TXT file are not password protected.
    We have tried to make system DSN and file DSN connections to both the MDB and TXT file but also this ends with a password request which is not defined.
    Did anyone came across this as well? Any idea about a solution?
    Thank you in advance,
    Annique.

    Hi Annique,
    Since this works in CR Designer I'm moving your post to the Business Objects forum.
    It's likely due to BOE servers not having access to the data sources. Make sure you put them in a folder that the WEB server and BOE Servers have access to. To prompt for log on is because we can't find the data files.
    Thank you
    Don

  • Set password for DSN (SQL Toolkit)

    Hello everybody,
    I'm working on WinNT4.0 with LV5.1.1 and SQL Toolkit v5.0. I've got an ODBC
    DSN for an Oracle7 database. I'm asked for a password when I make a connection
    to the DSN, which I now enter manually.
    After that I can read and write data to the database.
    Does anybody know how I can set the password automatically with the SQL Toolkit
    to avoid the dialog ?
    Otherwise there always has to be a user present when a connection to the
    database is made, which would be very unkomfortable.
    Is there any solution ?
    Many thanks in advance.
    Ralf.

    Wire a string constant to the SQL Connect VI's Connection Parameters input
    and include the appropriate connection parameters. For MS SQL7 the info
    looks like this:
    UID=username;PWD=password
    I don't use Oracle, but I imagine it would be similar. If your unsure, create
    a file DSN using the ODBC administrator in NT and mimic the parameters it
    creates.
    "Ralf Erdmann" wrote:
    >>Hello everybody,>I'm working on WinNT4.0 with LV5.1.1 and SQL Toolkit v5.0.
    I've got an ODBC>DSN for an Oracle7 database. I'm asked for a password when
    I make a connection>to the DSN, which I now enter manually.>After that I
    can read and write data to the database.>Does anybody know how I can set
    the password automatically with the SQL Toolkit>to avoid the dialog ?>
    Otherwise
    there always has to be a user present when a connection to the>database is
    made, which would be very unkomfortable.>Is there any solution ?>>Many thanks
    in advance.>Ralf.>

  • Creating DSn  connecting database in the same drive)

    Hi I am creating a DSn by Java prograame
    I have a Java file DSN.java where a fynction is written
    createDSN(String driverType, String dsnName, String filePath)
    I have all my .java files in D: Drive
    and when i am giving filePath as
    String fP = "\\folder1\\NameOfMyAccessfile.mdb"
    it is trying to create DSN( name as dsnName ) by mapping it to file in C Drive but normally it should try to create DSN connecting the database in the root directory.(in my case it is D drive)
    My JDk is in C drive
    Please help me how to create DSN when the database is in the root directory?
    Thanks

    salam,
    je voulais te demander si tu peux:
    *comment tu fais pour creer un DSN en java directement.
    *comment tu fais pour avoir la liste de tes DSN sur ta machine,
    *comment tu fais pour te connecter via une DSN.
    --- je te remercie d'avance de ta collaboration;

  • Problem with System DSN (HELP!!!)

    We have a customer running Oracle 817. Our application (Powerbuilder-based) uses the Oracle 817 ODBC driver to connect to the DB.
    We normally set up a System DSN so that in situations where more than one user logs into the PC (using their own domain account), they will be able to use our application as well. In all of the situations in the past, we've never had multiple users needing access to the same computer at different times with different logins.
    Well guess what? We now have a customer that has three people accessing the same computer at different times with different logins.
    We set up the odbc with an Admin account, but only THAT Admin account can be used to access the DB using that System DSN.
    We've tested our app with SQL Server (ODBC) and Sybase (ODBC) as well using different logins and they work fine, but our app fails to connect to the DB using the Oracle System DSN!
    What is happening?????? We set up a File DSN for now and it works, but the customer prefers not having to save that info to a file.
    Any suggestions?

    1) How are you authenticating users? If you're using O/S authentication, do all the users have appropriate accounts on the database? (They do have the appropriate DB account)
    2) Did you specify a username in the DSN? Did you mean to? If you want multiple users to log on with different database accounts, don't specify a username. (the app uses the same username and password to access the DB)
    3) Can you elaborate on what "can't log on" means? I assume you get some sort of error message, so please post that. (it's telling us that the selected datasource is invalid.)
    4) Can you simply create a user DSN for each Windows user account? We could and we did and it works fine that way, but the System DSN eliminates the need for that. We would have to set up DSNs for each PC (50+) that has more than one user.
    Justin

Maybe you are looking for