ODBC DSN Connection

Hi All,
   I have a report that needs to connect to a local( to the server) DSN Connection on the Crystal Server 2008 and am having difficulty viewing the report. I am getting connection errors. My question is: How do I configure the report under "Database Configuration" to get it to connect to the DSN Connection on the server?
Thank you in advance.

Create the same DSN or the datasource name as on the server and update in Crystal reports using set datasource location. What database is it pointing to?
Thanks!

Similar Messages

  • Automatically create ODBC DSN connection with special port and password. Add-OdbcDsn cmdlet

    Hi,
    I first posted a question in the SQL forum but I'm posting it here instead because its a Powershell question.
    In a non-persitent VDI enviroment we are trying to automatically create a ODBC DSN connection to a SQL server.
    We are using Windows 8.1 so we also have Powershell 4 together with the add-odbcdsn cmdlet. 
    But when trying to add set -SetPropertyValue for network port different than default and a password we get an error.
    here is the command:
    Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @("PWD=test", "SERVER=10.0.0.1")
    and here is the error message:
    Add-OdbcDsn : Attempt to set the {UID or PWD} key of a DSN. These keys should not be stored in the registry for securit
    y reason. Provide the credential information at runtime via SQLDriverConnect, SQLConnect or SQLBrowseConnect.
    At line:1 char:1
    + Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (MSFT_OdbcDsnTask:Root/Microsoft/...SFT_OdbcDsnTask) [Add-OdbcDsn], Cim
    Exception
    + FullyQualifiedErrorId : MI RESULT 4,Add-OdbcDsn
    NB!:  this command does not contain a port number, but when adding it without a password(PWD string) we just the default port.

    Hi Primeid,
    Agree with Jrv, we cannot store  UID and PWD in an ODBC datasource, For example, you can create a DSN using the user interface but if you look at the DSN stored in the registry the UID and PWD are not stored.
    ODBC it is always required when you connect using a DSN that the caller supply UID and PWD if they want to use standard login during connection time. 
    These similar discussion are for your reference:
    Creating ODBC DSN for SQL Native
    Client fails for not-integrated authentication
    is user name and password required in ODBC admin / User DSN?
    In addition, to read data from a SQL Server database using an ODBC DSN with SQL Authentication via powershell, please refer to this script:
    Open SQL database with ODBC DSN and SQL AuthenticationIf
    there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Issue with creating oracle ODBC DSN connection

    Hi all,
    We have BO X! 3.1. We have created some webi reports. Our universe connection is created using following method.
    = Created a DSN connection for oracle 10g database
    = created Bo connection object by selecting Generic ODBC connection
    = in the service name we have given DSN name and tested successfully.
    we have created reports universe under Windows environment.
    = Now we deployed Biar file of the same on SOLARIS server.
    We have created odbc connection in odbc.ini  on solaris.
    we have used path "/../boxir3/bobje/odbc.ini"
    We have used "/BOXIR3/bobje/enterprise120/solaris_sparc/odbc/lib/libsqora.so.10.1" driver
    But when we test connection after deployment connection fails. giving error
    " A database error occured. The database error text is:. (WIS 10901)"
    Can anybody suggest me right method to create ODBC connection for oracle 10g on SOLARIS.
    Thanks in advance.
    Saurabh

    Hi Saurabh,
    You said your odb.ini is at the location "/../boxir3/bobje/odbc.ini". Verify if environment variable ODBCINI is pointing to this location. For this do a echo $ODBCINI. This should return the path of your odbc.ini file. If this command returns empty, that means this variable is not set. In this case you will have to set your ODBCINI using the below command.
    If you are using bash shell
    export ODBCINI=/../boxir3/bobje/odbc.ini.
    if this does not work try
    set ODBCINI=/../boxir3/bobje/odbc.ini
    Thanks
    -Anup-

  • Automatically create ODBC DSN connection with powershell or GPO

    Hi,
    I'm trying to create a ODBC connection that has a special network port and also password automatically stored.
    I have tried to do this with the add-odbcdsn cmdlet and adding attributes to a group policy object configuration without luck.
    If I try to export settings with regedit and import them trough logonscript, the normal users dont have user rights to the LOCAL Machine hive.
    Therefore I have tried to export a USER DSN instead, but either of the port or password settings are exported.
    Please help.

    Hello,
    You can create a VB Script (.vbs) as the one create by Clamp77 on the following thread.
    http://stackoverflow.com/questions/23552529/can-i-create-a-bat-file-to-automate-data-sources-adding-in-odbc-data-source-adm
    Then you can run the script on computers using GPOs as explained on the following article.
    http://technet.microsoft.com/en-us/library/dn789196.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to create odbc (dsn) connection for OBIEE AND INFOR in unix environment

    Hi,
    we are establishing OBIA in Unix environment we set all the things fine but we are getting problem how to create ODBC connection
    for INFORMATICA AND OBIEE. I searched some blogs thats telling there is a ODBC.INI file we need to configure.
    but i am not getting clear idea to give parameters and it will not showing any TNSNAME ..........etc
    please any body give clear idea about how to create ODBC connection and LOCATION of that file AND parameter which i need to give.
    Thanks,
    charan....

    Hi Dpka,
    yah i already checked that one but i have not find out any parameter for TNS NAME information.
    is OBIEE connected to ORACLE DATA BASE without giving TNS information?............in UNIX OPERATING SYSTEM.
    pls give me the clear idea abt how to connect OBIEE, INFORMATICA to ORACLE DATA BASE IN UNIX ENVRNMENT
    thanks,
    charan.

  • DB2 Connection VIA ODBC DSN

    Can anyone point me to good 'step-by-step' guide to setting up a HS connection to an AS400 DB2 database using a ODBC connection.
    I have an ODBC DSN on set up but I'm not sure how set-up my tsnnames.ora or listener.ora, I've looked at several posts in this thread but I'm still struggling.
    I basically need to be able to something like 'select something from sometable@AS400link'
    Thanks
    Bri

    Tak,
    Thanks once again, I still can't get this to work, here's what I have:
    On the DB server itself:
    \hs\admin\initFRUIT.ora contrains:
    HS_FDS_CONNECT_INFO = SPONGE
    HS_FDS_TRACE_LEVEL = 0
    \network\admin\listener.ora contains:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <name of the host PC>)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\oracle\ora81)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = FRUIT)
    (ORACLE_HOME = E:\oracle\ora81)
    (PROGRAM = hsodbc)
    (SID_DESC =
    (GLOBAL_DBNAME = <name>)
    (ORACLE_HOME = E:\oracle\ora81)
    (SID_NAME = <name>)
    \network\admin\tnsnames.ora contains:
    JELLY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <name of the host PC>))(PORT = 1521))
    (CONNECT_DATA = (SID=FRUIT))
    (HS=OK)
    I created a public database link as follows:
    create public database link custard
    using 'JELLY'
    My ODBC DSN is pointing to an SQL Server
    Unfortunately I am still getting the same error??
    Thanks for your help.
    Brian

  • Unable to get data (DSN connection)

    I've got a report file, created using ODBC connexion with DSN File
    These report work fine in design mode using crystal report full (not Visual studio)
    When I try to open this report in a .net application I've got the following error :
    Crystal Reports Windows Forms Viewer
    Impossible d'extraire des données de la base de données.
    Détails : 
    Impossible d'extraire des données de la base de données.
    Erreur dans le fichier Postes {A47B5908-2F0A-4A3D-A2A5-A708FEB329EB}.rpt:
    Impossible d'extraire les données de la base de données.
    Détails : 
    Which can be translate by :
    Unable to extract datas from database
    Details:
    My database is Oracle, error code 942 means table or view does not exist
    In my .net code I use DSN connection (the same as in design mode) like this :
    Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
    myConnectionInfo.ServerName = "my_dsn_file"
    For your information this report has been made with CR 9 and converted to CR 2008
    In CR 9 everything worked fine.
    Any idea ?
    Thanks

    This Forum edito  is buggy ? I had to split my answer otherwise the format is broken
    Also you wrote: "User used to create connection (throught DSN) is a generic user, not the user associated with the schema containing the view accessed by the report"
    It's odd that this works in CR, CR repsects DB security so if it's not in a schema that user should not have access to anything in Oracle, I'm surprised it works at all. Possibly this is a bug in CR 8.5 and 9 that finally got fixed.
    Work arounds, what is the reason you can't add that user account to a schema? Or use an account that has access?
    I problably don't use the correct words (I'me not Oracle DBA + translation approximation).
    Of course our user "application_user" has right on all the schema of the database, what I want to say it's when you connect to Oracle with a user "application_user" you're connected in the schema corresponding to these user (so "application_user" schema).
    And if you want to make request on a table / view from another schema you need to prefix table/view with the corresponding schema (Sale in my previous fictive example)
    So in my case CR try to access "CommercialDocument" view in "application_user" schema but this view is not in  this schema, it is in "Sales" schema.
    The correct way to access it is Sales.CommercialDocument, that what CR throught .net don't do, but do when run directly in CR developers.
    Here is real example (fench name inside), those SQL request have been monitoring througt SQL monitor tools of TOAD :
    Execution of postes.rpt report directly in CR :
    Timestamp: 10:30:03.881
    Successful logon attempt (session tag: 0x6464CB8)
    username: 'APPLI_HUET'; database: 'DEV'
    Timestamp: 10:30:03.881
    SELECT VALUE FROM SYS.NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_CHARACTERSET'
    Timestamp: 10:30:03.896
    SELECT VALUE FROM SYS.NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_NCHAR_CHARACTERSET'
    Timestamp: 10:30:03.975
    SELECT "POSTES"."N_POSTE", "POSTES"."LIB_POSTE", "POSTES"."N_ETAB",
    "POSTES"."N_ATELIER", "POSTES"."TPSID", "POSTES"."DT_DEB_ACTIF",
    "POSTES"."DT_FIN_ACTIF", "ETAB"."ETAB" FROM   "COMMUN"."ETAB" "ETAB" INNER JOIN
    "GESTION_DES_TEMPS"."POSTES" "POSTES" ON "ETAB"."N_ETAB"="POSTES"."N_ETAB"
    WHERE  "POSTES"."N_ETAB"=2 ORDER BY "POSTES"."N_POSTE"
    Timestamp: 10:50:29.178
    Logoff (session tag: 0x6464CB8).

  • Encrypting communication between an app that uses an ODBC/DSN (with ADODB) and SQL Server 2008 R2

    I've been doing a lot of reading the last couple of days on how we can encrypt db communication between our product app and a customer's SQL Server db, but cannot make it work as expected. The app uses a ODBC/DSN to connect to the SQL Server db. I use this
    ODBC app to setup the DSN (on a Windows 7 PC):
    C:\Windows\SysWOW64\odbcad32.exe
    The  DSNconnection uses the SQL Server driver 6.01.7601.17514 and has these properties:
    - WinNT authentication.
    - Client Config button: TCP/IP to <server-name>\<instance.-name>
    - Change to default db: <name-of-app-db>
    - Everything else is default setting.
    SQL Server is on the same Windowns 7 PC and has a self-signed cert installed (used IIS to generate it) and has the Force Enryption set to "yes".
    I have a test C# program that uses the ADODB 2.7.0.0 COM-wrapper, made by Visual Studio after adding a reference to the ADO 2.7 library version 6.1.7601.17857. The program creates an ADODB.Connection object that has a simple connection string: "DSN=<san-name>;UID=<user>;PWD=<password>". The
    program then creates an ADODB.Recordset object and reads and displays a field from a table.
    Works fine.
    If I go into SQL Server and set Force Encryption to "no," clear the cert, restart the SQL service, and then re-run the program, it works fine.
    Here's the kick. If I go into the DSN and select "Use strong encryption for data" the Test button on the DSN works—why does it work? The SQL Server is no longer encrypting the connection so an error should occur. If I run the test program, it works
    as well—why? I can look at the connection properties in the test program and see that ADODB has added the ";Encrypt-yes" stuff to the end of the connection string. Yet that option seems to have no effect.
    If I set the SQL instance back to Force Encryption:yes, enable the cert, restart the SQL service, and clear the DSN's "Use strong encryption for data" option, I can still connect to the db with the
    test program—why?
    What am I doing wrong? I need to be able to ensure that the communication between our app product and the SQL instance is encrypted, and that we get an error if the SQL instance does not support encrypted communications. We really don't want the customer
    to have to enable Force Encryption because they have other db's on their SQL Server that do not use encrypted communication, but they want to know that our product's communication channel with the db is encrypted.
    No, I can't change the app product's code at this point in time. I'm stuck with working with what a DSN called from ADODB has to offer.
    Also, how can I be sure that communications are encrypted? I mean, I've tried things like "SELECT * FROM sys.dm_exec_connections" but that doesn't help because I have no idea how to tie the list of sessions shown back to my test program, although
    I guess it's a good thing that some of the sessions listed show encrypt_option as TRUE.
    -glenn-

    Ah yes, very good point. It's easy to miss because you have to delete then recreate the DSN in order to change drivers. So I switched the DSN over to the SQL Native 11 driver.
    Now when I try to connect to the SQL instance as <computer-name>\<instance-name>, and without a cert on the server, I get "the target principal name is incorrect". Perfect; now we're getting somewhere!
    Change my DSN to use <fqdn>\<instance-name> and it works. This tells me that SQL Server has auto-generated a cert and named it <fqdn>. I would have expected the "cert fail" error, not a cert
    name mismatch, because I'm not using Trust Server Cert.
    So I load up my self-signed cert, and that works too.
    I am still confused as to why I'm not seeing the "cert fail" error when I have no cert loaded on the SQL Server. I am not using Force Encryption on the server at all, so wouldn't expect SQL Server to auto-create a cert when an Encrypt=yes request comes in,
    but apparently it does?
    I also ran into a problem with this:
    select c.session_id, c.encrypt_option, s.client_interface_name
    from sys.dm_exec_connections c
    join sys.sysprocesses s
      on c.session_id = s.session_id
    where s.dbid = db_id('MyDatabase')
    There is no s.client_interface_name, probably should be s.hostname. There's also no s.session_id. I thought maybe this should be s.sid, but then no rows ever come back. The c.session_id looks like 51 and 52, but the s.sid looks like a very long binary number,
    so these two fields cannot be joined. I don't know how to convert the sid's properly so that the join would work. Ah wait, I just found the s.spid column; the join works when that column is used (I assume that's correct anyhow).
    If I add a Thread.Sleep(30 seconds) to my C# program just before the connection is closed, this query shows me the session for the correct hostname has encrypt_option=TRUE.
    And I have to keep my fingers crossed that all the app I/O will still work properly after
    changing the driver. Probably a safe bet though.
    Think I'm ready to throw in the towel on getting the "cert fail/no SSL" error to appear.
    It does look like I am able to sufficiently show that the connection is encrypted when Encrypt=yes is used with the newer driver.
    Thank for all the help!
    -glenn-

  • DSN connection not available in connection manager

    Hi -- I am having problems connecting to an ODBC data source with SSIS.
    I am trying to connect to a mysql database.  The connection is set up in "Administrative Tools" as a System DSN, and I can sucessfully connect using "Test" from there.
    But the connection is not shown as available in SSIS.
    In Connection Manager, I create a new ADO.NET connection, choose New, ODBC data provider, but my system DSN connection is not in the dropdown (no ODBC connections are), and if I try to specify it with a connection string
    Dsn=ConnectionName;
    I get:
    Test connection failed because of an error initalizing provider.  Error [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified.
    I have tried recreating it, creating a new data source with a new name, but none of the Dsn's come are seen by SSIS.
    To make it more frustrating, it was working just days ago and I don't know what changed...
    Any help appreciated,
    Mike

    The BIDS development environment is 32 bit. So it looks for the 32 bit providers at design time. However, when the package is run in BIDS, it will use the 64-bit providers, as long as the Use64BitRuntime property of the project is set to TRUE.
    Outside of BIDS, which set of providers is used depends on which version of DTEXEC you run. There is a 32-bit version and 64-bit version - each will load the matching provider. Something else to be aware of - not all providers have 32- and 64-bit versions. The Jet providers (used for Excel and Access) only have 32-bit versions, for example.

  • ODBC (RDO) Connection Information : DataBase Server ID Greyed out

    Post Author: Eany
    CA Forum: Data Connectivity and SQL
    When I select the refresh option (Crystal XI) for a report which previously worked fine, I get sent to the ODBC (RDO) connection Information screen.
    The first box for Server ID is greyed out.
    When I go to enter the password, I get
    Login Failed
    HY000 General Error : Invalid file dsn  Database Vendor Error 556.
    But If I then create a new report, selecting the same dsn as was used for the report above, there is no problem.

    Hi Thib,
    It won't work, WEB servers do not allow you to "Browse" their folder structures directly. You could how ever create a WEB Service to do this, it does the querying for you and then passes the data back. You'll have to search the WEB for more info on how to create a WEB Service and then check with your security guys if this is something you want to do.
    Bottom line is ODBC or native or OLE DB is not going to work. And if you do open it up so you could it would be a major security hole for anyone to get to.
    Other options are to create a VPN server so you can remotely connect to the server and get direct access to the table.
    There are other options also, what you want to do is not doable.
    You did not say why you want to do this? Add more info and someone may have a suggestion for you.
    Major DB's like Oracle, MS SQL Server and others allow this to work through their clients so you may want to look at that option also.
    Thank you
    Don

  • ODBC Filemaker Connection

    I have created a 32 bit system DSN to my filemaker database with connection success.  When i log into the Coldfusion admin and try and set a database... I name it and select ODBC socket... when it does to the next screen the ODBC DSN drop down is empty.  Does anyone know why and how I fix it?  (I am testing local 127.0.0.1 Windows 7) thanks.

    Hi Scarecrow,
    The only gotchas I can see, from a cursory perusal of other
    discussions, is that 1) the FM server must be configured for remote
    access, and 2) the Filemaker server must be running with the target
    database open. AFAIK, FM doesn't allow simple ODBC file access as
    we are used to with other DB products.
    Good luck!

  • JDBC ODBC bridge connections using 2.1.1

    Hi,
    I have reviewed a lot of postings related to JDBC and third party drivers and understand how to connect to the packaged drivers such as MySQL and MS SQL Server/Sybase. Where I'm stuck is the reference in the Connections help to JDBC. We have a ODBC system DSN that's not part of the existing JDBC drivers. The help implies it's possible to create a JDBC:ODBC bridge connection and that JDBC:ODBC bridge functionality is part of the JDK therefore should not require additional jar files. However, the JDBC tab is not an available connection type by default. I traced the JDBC ODBC bridge to the rt.jar and tried adding that to the third party extensions but that has not resulted in the JDBC tab becoming available.
    Is the JDBC tab only available when using commercial JDBC ODBC bridge drivers ?
    For all other connections (DB2, TimesTen, Teradata etc) the help is very specific about which jar files you need and any other requirements but the JDBC section it is unclear how you enable JDBC connectivity.
    Thanks
    Steven
    Edited by: slisint on 14-Jan-2011 18:07

    We are using the JDBC-ODBC bridge to do a prepared
    statement. I have seen other bugs that suggest this
    is problematic with older version of JRE, but was
    supposedly fixed in later versions.
    java.sql.SQLException: General errorIf it is not too late, check the following link:
    http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/GettingStartedTOC.fm.html
    Sections 6.1.3 and 8 (especially tables at the end).
    I had the same case, and the problem was that the field in the Oracle database was defined as NUMBER(4), witch is equivalent to INTEGER in JDBC types, and function setInt should be used with INTEGER, instead of setLong.
    This is explained in sections I mentioned.

  • Jdbc-odbc bridge connection error

    Hi,
    Please help me to create a jdbc-odbc connection from Jdev10g to a TSM server database.
    I have created a database connection with the following parameters:
    Connection name: tsm1a
    Connection type: jdbc-odbc bridge
    Username: admin
    Password: ***
    Datasource name: tsm1 (this is the name of the DSN datasource name in my Windows ODBC DSN datasource)
    Extra parameters: NONE
    Clicking on the Test button shows Success!
    I have tried to launch the SQL worksheet, it is success and give me a correct result to my "select * from volumes" query.
    I have created a simple JSP page:
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/sqltaglib.tld"
    prefix="database"%>
    <html>
    <body>
    <database:dbOpen connId="c1" URL="jdbc:odbc:TSM1a" user="admin" password="***">
    <database:dbQuery connId="c1" output="html" queryId="q1" >
    select * from volumes
    </database:dbQuery>
    </database:dbOpen>
    </body>
    </html>
    The result of the run of it:
    javax.servlet.jsp.JspTagException: Failed to establish connection     at oracle.jsp.dbutil.tagext.dbOpenTag.doStartTag(dbOpenTag.java:115)
    Please help me, how to get a connection to the ODBC datasource from a jsp page.
    What is wrong in the URL string or elsewhere ?
    Thanks a lot in advance:
    Arpad

    Hi,
    Please help me to create a jdbc-odbc connection from Jdev10g to a TSM server database.
    I have created a database connection with the following parameters:
    Connection name: tsm1a
    Connection type: jdbc-odbc bridge
    Username: admin
    Password: ***
    Datasource name: tsm1 (this is the name of the DSN datasource name in my Windows ODBC DSN datasource)
    Extra parameters: NONE
    Clicking on the Test button shows Success!
    I have tried to launch the SQL worksheet, it is success and give me a correct result to my "select * from volumes" query.
    I have created a simple JSP page:
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/sqltaglib.tld"
    prefix="database"%>
    <html>
    <body>
    <database:dbOpen connId="c1" URL="jdbc:odbc:TSM1a" user="admin" password="***">
    <database:dbQuery connId="c1" output="html" queryId="q1" >
    select * from volumes
    </database:dbQuery>
    </database:dbOpen>
    </body>
    </html>
    The result of the run of it:
    javax.servlet.jsp.JspTagException: Failed to establish connection     at oracle.jsp.dbutil.tagext.dbOpenTag.doStartTag(dbOpenTag.java:115)
    Please help me, how to get a connection to the ODBC datasource from a jsp page.
    What is wrong in the URL string or elsewhere ?
    Thanks a lot in advance:
    Arpad

  • JDBC-ODBC-Bridge connection to SQL Database

    Hi guys
    I have a problem. I've made a little game which I want to put on my website. It has a highscore-list which I want to connect to my web host's database server to get the current list.
    I tried this with JDBC and got it to work locally but when I uploaded it to my site it didn't work. I contacted my web host's technical support who told me that their server didn't have the JDBC driver and that I should use ODBC instead. I did lots of reading and found out about this JDBC-ODBC-Bridge. I have since been trying to implement this into my program but hasn't been successful.
    In my original JDBC connection I used
    private String url = "jdbc:mysql://" + host +  "/" + mydatabase;
    Class.forName("com.mysql.jdbc.Driver");
    Connection connection = DriverManager.getConnection(url, username, password);Now I'm trying
    private String url = "jdbc:odbc://" + host + "/" + database;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connection = DriverManager.getConnection(url, username, password);But, at least when trying it locally, I get the error
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name is too long.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at HighscoreDB.readFile(HighscoreDB.java:53)
    at HighscoreDB.displayList(HighscoreDB.java:97)
    at HighscoreDB.main(HighscoreDB.java:33)Please help ;)
    Edited by: YZF-R1 on 2009-apr-09 13:26

    YZF-R1 wrote:
    masijade. wrote:
    Do you know what ODBC is?I think I at least have the basic idea, I learnt most of what I know from this post:
    [http://forums.sun.com/thread.jspa?threadID=211735&start=2&forumID=48]
    masijade. wrote:
    While "reading about this JDBC-ODBC Driver" did you also read about how to enter the URLs for it?No, I couldn't find that piece of information, why don't you tell me ;)
    Here
    >
    masijade. wrote:
    Did also read about the fact about needing to configure ODBC DSNs? Or about the fact that the connection URL is radically different if you don't configure one?No I did not. Please explain =)
    Here
    >
    PhHein wrote:
    Plus, JDBC-ODBC Bridges are evil!I'm beginning to realize this myself :O:(
    BalusC wrote:
    Drop that whole ODBC idea and just gently read the documentation which come along with the MySQL JDBC driver.I read a lot of it when I used the JDBC driver locally but how's that going to help me if the server doesn't have the JDBC driver installed?How will the Bridge help you if the ODBC Driver is not installed? And, the JDBC Driver (the Type 4.0 ones, which the MySQL Driver is) is 100% Java, so it can even be included in an Applet, if the HTML page that accesses it is done right, and the jars are "packaged" properly.

  • Informatica Workflow Manager ODBC Relational Connection for ETL in DAC

    In Informatica Workflow Manager, I have created a Relational Connection of type ODBC and specified Connect String as "DSN=BIEEDW" where "BIEEDW" is the System ODBC DSN already set pointing to a SQL Server 2008 database.
    However, when the ETL run in DAC, the following error occurs in Session log files showing that the database and driver cannot be located:
    MAPPING> CMN_1569 Server Mode: [UNICODE]
    MAPPING> CMN_1570 Server Code page: [MS Windows Traditional Chinese, superset of Big 5]
    MAPPING> TM_6151 The session sort order is [Binary].
    MAPPING> TM_6156 Using low precision processing.
    MAPPING> TM_6180 Deadlock retry logic will not be implemented.
    MAPPING> TM_6187 Session target-based commit interval is [10000].
    MAPPING> TM_6307 DTM error log disabled.
    MAPPING> TE_7022 TShmWriter: Initialized
    MAPPING> DBG_21075 Connecting to database [DSN=BIEEDW], user [bieedw02]
    MAPPING> CMN_1761 Timestamp Event: [Wed May 22 01:29:17 2013]
    MAPPING> CMN_1022 Database driver error...
    CMN_1022 [
    [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    Database driver error...
    Function Name : Connect
    Database driver error...
    Function Name : Connect
    Database Error: Failed to connect to database using user [bieedw02] and connection string [DSN=BIEEDW].]
    Any hint in setting the Connect String for ODBC Relational Connection?

    Hi,
    Let me tell you the real story:
    Our server architecture consists of two servers:
    Windows Server 2008 R2 (64-bit) platform with the following installed:
    - SQL Server 2008
    - DAC 10.1.3.4.1
    - OBIEE 11g
    - BI Apps (Financial Analytics) 7.9.6.3
    - Informatica Server 9.1.0 HotFix 2
    Windows Server 2003 Enterprise Edition SP2 (32-bit) platform with the following installed:
    - Informatica Clients (i.e. Workflow Manager, Repository Manager, Designer and Workflow Monitor)
    And thus the ODBC Relational Connection is configured in Informatica Client machine (Workflow Manager) which is a 32-bit platform.
    Any idea?

Maybe you are looking for