J2ME with mySQL/ODBC/JDBC

hi all,
is there anyway to make a connection to a MSAccess file?
then from there, getting info from it and returning the inputs to the file?
above queries are for usage on J2ME.
regards and thanks in advance,
Nicky

I think the JDBC can give you the tools to do this. This is exactly what it is designed for.
Look at the instructions for it.
I have reviewed it quickly and it appears the process is supposed to go something like this:
Set up your connections to the database. 'Access' should be easy to get connections lined up for as it is a common database program.
Write a little SQL script in your java app to get the data you want.
Dont know what J2ME so if it differs from the current java programming language - what J2DK (java 2 development kit)? then it might not do this like this, but it should.
Hope this is helpful.
ctavares1

Similar Messages

  • J2me with mysql

    hello everyone,
    can we anyone help me with small example, how to connect j2me with mysql.

    Put all your Database transactions in server side, using Connection framework in J2ME, access that URL by your device. Here is a snap to access a URL to get the message returned by that URL.
    public String getMessage(String url)
         HttpConnection hc = (HttpConnection)Connector.open( url, Connector.READ_WRITE );
         hc.setRequestMethod( HttpConnection.POST );
         InputStream in=hc.openInputStream();
         DataInputStream dis=new DataInputStream(in);
         int ch;
         String msg="";
         while((ch=dis.read())!= -1)
              msg=""+msg+(char)ch;
         reutrn msg;
    }

  • Crystal Report on Universe with MySQL ODBC

    Hi
    I created a report with Crystal reports by using a Universe based on MySQL ODBC. In my local (Windows XP) installed Report Designer everything is running fine. I'm also able to publish this report to my BOE, based on RHEL.
    If I will refresh my report on InfoView, database credential are required, but my credential are not accepted. I only become a error message: Failed to open the connection
    If I use Webi with the same universe and the same connection, everything is fine.
    I have also change the ODBC version, but no other result.
    Any idea, where I can trace this connection?
    Versions:
    Crystal Reports 2008 (12.0.0.683)
    Business Objects Enterprise 3.0 (12.0.0.683)
    MySQL ODBC 3.51.27 and 5.1.5
    Thanks a lot
    Christoph

    Hi,
    thank you very much for reply.
    I think you got it. We have the goal to create a report that can be printed and is top-gloss-report for management ; ) One query would not be able to include all that stuff. It is very different.
    So we created 7 different queries in SAP BW Query Designer and we want to put them together in BO Crystal Reports.
    All Queries work with input variable for period and year. These input variables are used in the columns of the queries for calculating the key figures.
    So, if we put these queries together into Crystal Reports, we should actually use "replacement path" for variables. But the sap.help says, that isn't doable.

  • SQL Server 2005 with an ODBC-JDBC Bridge

    Hello,
    I use an ODBC - JDBC Bridge (because when I use SQL Server 2005 Driver JDBC Version 1.1, the text connection failed). I don't know why I can't reverse my model.
    What happened?
    thanks
    Billie

    We have also a SQL server 2000 instance at the same server. Yesterday I have spoken with the sql server admin and he told me that he has disconnect the sql server 2000 databases whatever this means. :-D
    Now all works fine. Thank you for your help
    BTW I use the following connection string:
    jdbc:sqlserver://my_db_server;instanceName=my_instance_name;DatabaseName=my_db_name

  • Problems with MySQL ODBC install on Linux

    Oracle 11gR2
    Linux 6.3
    I am using the Oracle ODBC Gateway and trying to configure for connectivity to MySQL.
    Can anyone forward me:
    (1) link to MySQL ODBC Driver
    (2) instructions on how to install
    I have tried installing the following and I am getting dependency errors:
    [root]# rpm -ivh  mysql-connector-odbc-5.1.10-1.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:mysql-connector-odbc   ########################################### [100%]
    myodbc-installer: symbol lookup error: myodbc-installer: undefined symbol: SQLInstallDriverEx
    error: %post(mysql-connector-odbc-5.1.10-1.x86_64) scriptlet failed, exit status 127
    [root]# rpm -ivh mysql-connector-odbc-5.2.6-1.el6.x86_64.rpm
    error: Failed dependencies:
            libodbc.so.2()(64bit) is needed by mysql-connector-odbc-5.2.6-1.el6.x86_64
            libodbcinst.so.2()(64bit) is needed by mysql-connector-odbc-5.2.6-1.el6.x86_64
            rpmlib(FileDigests) <= 4.6.0-1 is needed by mysql-connector-odbc-5.2.6-1.el6.x86_64
            rpmlib(PayloadIsXz) <= 5.2-1 is needed by mysql-connector-odbc-5.2.6-1.el6.x86_64

    The MySQl ODBC driver requires an ODBC Driver Manager (libodbc.so.2). So please make sure you first install an ODBC Driver manager (for example unixODBC Driver Manager release 2.3) using an RPM or compile it from the soiurce files (www.unixODBC.org).
    - Klaus

  • Connection with MYSQL ODBC

    Post Author: wrkwinter
    CA Forum: Data Connectivity and SQL
    Hi,   I am having problem with conecting Crystal Report XI to the MYSQL Server. I am using Mysql Connector/ODBC 3.51. I configured ODBC connection . Once i connect to MYSQL server thru Crystal Rpeort Everything works fine but after 5-10 minutes if i refresh the report I get following error.
    "Failed to retrieve data from the database"DetailsHY000:&#91;MySQL&#93;&#91;ODBC 3.51 driver&#93;&#91;mysqld-4.1.22-standard-log&#93;&#91;MySQl server has gone away&#91;Database vendor code :2006&#93; and if i log off and relog on to database everything works fine like for another 5-10 minutes and after that same ERROR  But if i use MYSQL Query Browser to connect to the database. I don't have any problem like that.  Can please explain any reason for that.....Thanks

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    Check out:
    http://www.mysqltalk.org/server-has-gone-away-vt158777.html
    I'd guess that you're timing out or exceeding the number of connections.
    -k

  • OBIEE 10.1.3.4.1 & MySQL ODBC on linux.  Generated SQL is wrong.

    Anyone know how to fix this situation?
    We are running OBIEE 10.1.3.4.1 on Redhat Linux 5.3 with MySQL ODBC connector.
    When connecting to MySQL we have need to connect to multiple databases.
    Problem is that OBIEE is generating incorrect sql.
    Example:
    select * from db_name..table_name;
    Note the two dots between db and table.
    This is incorrect syntax for MySQL. Should be only 1 dot.
    But I can't find a way to get OBIEE to only use 1 dot.

    MySQL is not a supported Datasource.
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10417.pdf

  • Step by step to set up tomcat with mysql

    hi i'm new to these things, well i went through the forum , there are load of info but no1 has explain how to set up (step by step) tomcat with mysql using jdbc driver ( also i'll use jsp pages to get info from the database.)
    thx alot.

    Hiya,
    Best way would be to read the README.doc that you get after the installation on the sysetm. Becuase this provided you with the exact info. pertianing to the sysetm etc that you have and also visit this website:
    http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20148108.html
    It gives u a step by step guide to set-up and some sample codes also to test etc.
    Happy Javaing, Cheers

  • Problem with USERNAME & PASSWORD creation--JDBC connection with MYSQL

    How to connect to JDBC with Mysql Connector
    i installed mysql & created table, it works fine
    During Password---> I gave it as tiger , no username
    i installed mysql connector
    i saved the .jar file path in class path
    HOW TO CREATE USERNAME & PASSWORD & DATASOURCE NAME ---> Is it the password -tiger or something else like (ADMinstrative tools-ODBC-services--etc )
    Pl, help,
    tks
    Xx

    How to connect to JDBC with Mysql Connector
    i installed mysql & created table, it works fine
    During Password---> I gave it as tiger , no usernameTiger? This ain't Oracle.
    I think you should give a username and password. How can it look up a password without a username? Better GRANT the right permissions, too.
    Read the MySQL docs a bit more closely. Your path isn't the way to go.
    %

  • LabSQL can not run with MySQL 64-bit ODBC connector

    I have developed a small piece of LabVIEW program to retrieve the data from MySQL database and displayed as curve with XY-Graph. The bridge between database and the program is the MySQL ODBC connector and the LabSQL VIs (which is quite useful). The program runs properly in my 32-bit computer for developing while a error caused in LabSQL part and stated that there is a architecture mismatch:
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application in ADO Connection Open.vi->WeatherDataRetrive.vi
    Is there anyone encountered similar problem and would you please provide some help?
    Many thanks in advance.
    Harry

    Are you using LabVIEW 32 Bit? Even if you run on Windows 64 Bit any DLL loaded on behalve of an application has to have the bitness of that application, not the bitness of the OS. And I'm pretty sure that the ADO/DAO interface that LabSQL is using will not provide any bridging if the ODBC driver is not in the same bitness as the calling application.
    So if you are using LabVIEW 32 Bit, install the 32 Bit MyODBC driver or change to using 64 Bit LabVIEW instead, although there might be other problems with ADO/DAO not working properly for a 64 Bit application.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • TP4: can not run application with ODBC-JDBC bridge

    Hi,
    I tried to connect to a oracle 10gR1 Database via ODBC-JDBC bridge.
    Test connection in dialog "Edit Database Connection" is sucessfull.
    When trying to run the application following error occures:
    ===========================================
    08/05/09 11:48:57 SCHWERWIEGEND: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    08/05/09 11:48:57 SCHWERWIEGEND: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    09.05.2008 11:48:58 oracle.j2ee.util.AnnotatedLogger logWithThrowable
    SCHWERWIEGEND: J2EE JCA-07001
    oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:403)
         at oracle.oc4j.sql.DataSourceUtils.createDataSource(DataSourceUtils.java:288)
         at com.evermind.server.DataSources.createNativeDataSource(DataSources.java:153)
         at com.evermind.server.DataSources.initDataSources(DataSources.java:1117)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1782)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1436)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:422)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:247)
         at com.evermind.server.Application.setConfig(Application.java:538)
         at com.evermind.server.Application.setConfig(Application.java:433)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2125)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1865)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1235)
         at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:249)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:259)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcDriver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:401)
         ... 15 more
    08/05/09 11:48:58 WARNUNG: Application.setConfig Application: current-workspace-app is in failed state as initialization failed.
    java.lang.InstantiationException: oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1465)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:422)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:247)
         at com.evermind.server.Application.setConfig(Application.java:538)
         at com.evermind.server.Application.setConfig(Application.java:433)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2125)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1865)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1235)
         at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:249)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:259)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:403)
         at oracle.oc4j.sql.DataSourceUtils.createDataSource(DataSourceUtils.java:288)
         at com.evermind.server.DataSources.createNativeDataSource(DataSources.java:153)
         at com.evermind.server.DataSources.initDataSources(DataSources.java:1117)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1782)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1436)
         ... 10 more
    Caused by: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcDriver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:401)
         ... 15 more
    09.05.2008 11:48:58 com.evermind.server.ServerMessages severe
    SCHWERWIEGEND: Exception beim Initialisieren der bereitgestellten Anwendung: current-workspace-app. Application: current-workspace-app is in failed state as initialization failed
    java.lang.InstantiationException: Application: current-workspace-app is in failed state as initialization failed
         at com.evermind.server.Application.setConfig(Application.java:636)
         at com.evermind.server.Application.setConfig(Application.java:433)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2125)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1865)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1235)
         at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:249)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:259)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.InstantiationException: oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1465)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:422)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:247)
         at com.evermind.server.Application.setConfig(Application.java:538)
         ... 7 more
    Caused by: oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:403)
         at oracle.oc4j.sql.DataSourceUtils.createDataSource(DataSourceUtils.java:288)
         at com.evermind.server.DataSources.createNativeDataSource(DataSources.java:153)
         at com.evermind.server.DataSources.initDataSources(DataSources.java:1117)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1782)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1436)
         ... 10 more
    Caused by: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcDriver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:401)
         ... 15 more
    09.05.2008 11:48:58 oracle.j2ee.util.AnnotatedLogger logWithThrowable
    WARNUNG: J2EE JNDI-00002
    09.05.2008 11:48:58 oracle.j2ee.util.AnnotatedLogger log
    WARNUNG: Kein javax.jms.ConnectionFactory in null gefunden
    09.05.2008 11:49:01 com.evermind.server.http.HttpMessages internalErrorWhileTryingToInstantiate
    SCHWERWIEGEND: Interner Fehler ausgelöst beim Versuch, die Web-Anwendung zu instanziieren: GoodsReceipt-ViewController-webapp definiert in Website Default Web Site. Application: current-workspace-app does not exist. Error creating Web application: GoodsReceipt-ViewController-webapp
    Ready message received from Oc4jNotifier.
    Embedded OC4J Server startup time: 12375 ms.
    =========================================
    OC4J is up and running, but browser gives error message (404 Not found)
    With JDBC connection this application works fine.
    Here my jdev specific environment variables:
    SET JOH=c:\software\Oracle_JDEV11gP4
    SET JDEV_USER_DIR=c:\jdeveloper\home
    SET JAVA_HOME=c:\software\Oracle_JDEV11gP4\jdk\bin
    Can anybody help me?
    br
    Peter

    Peter --
    Can you please describe your use case? The JDBC-ODBC bridge driver is not all that reliable. Sun considers it "transitional" and it is not supported by them.
    http://java.sun.com/j2se/1.5.0/docs/guide/jdbc/bridge.html
    We still include the driver in JDev primarily to allow connections to MS datasources like Excel and Access that don't have free/open-source pure JDBC drivers. Why would you use the JDBC-ODBC bridge to connect to an Oracle database?
    -- Brian

  • Java with MYSQL in Linux

    i am using JSP in Linux Platform. when i connected to mysql with mysql driver for odbc by using the following code,
    import java.sql.*;
    public class TestMysql
    public static void main(String args[]) {
    try {
              Connection con;
              String connStr = "jdbc:mysql://localhost/test?user=root&password=mysql";
              Class.forName( "com.mysql.jdbc.Driver" ).newInstance();
              System.out.println("OK");
              con = DriverManager.getConnection( connStr );
              System.out.println("Again OK");
    catch( Exception x )
    x.printStackTrace();
    i got the following exception
    OK
    java.sql.SQLException: Error during query: Unexpected Exception: java.io.CharConversionException message given: null
    Nested Stack Trace:
    ** BEGIN NESTED EXCEPTION **
    java.io.CharConversionException
    STACKTRACE:
    java.io.CharConversionException
    at gnu.gcj.convert.Input_iconv.read(char[], int, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.String.init(byte[], int, int, java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.String.String(byte[], int, int, java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at com.mysql.jdbc.SingleByteCharsetConverter.SingleByteCharsetConverter(java.lang.String) (Unknown Source)
    at com.mysql.jdbc.SingleByteCharsetConverter.initCharset(java.lang.String) (Unknown Source)
    at com.mysql.jdbc.SingleByteCharsetConverter.getInstance(java.lang.String, com.mysql.jdbc.Connection) (Unknown Source)
    at com.mysql.jdbc.Connection.getCharsetConverter(java.lang.String) (Unknown Source)
    at com.mysql.jdbc.StringUtils.getBytes(java.lang.String, java.lang.String, java.lang.String, boolean, com.mysql.jdbc.Connection) (Unknown Source)
    at com.mysql.jdbc.Buffer.writeStringNoNull(java.lang.String, java.lang.String, java.lang.String, boolean, com.mysql.jdbc.Connection) (Unknown Source)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(com.mysql.jdbc.Statement, java.lang.String, java.lang.String, com.mysql.jdbc.Buffer, int, com.mysql.jdbc.Connection, int, int, boolean, java.lang.String, boolean) (Unknown Source)
    at com.mysql.jdbc.Connection.execSQL(com.mysql.jdbc.Statement, java.lang.String, int, com.mysql.jdbc.Buffer, int, int, boolean, java.lang.String, boolean, boolean) (Unknown Source)
    at com.mysql.jdbc.Connection.configureClientCharacterSet() (Unknown Source)
    at com.mysql.jdbc.Connection.initializePropsFromServer() (Unknown Source)
    at com.mysql.jdbc.Connection.createNewIO(boolean) (Unknown Source)
    at com.mysql.jdbc.Connection.Connection(java.lang.String, int, java.util.Properties, java.lang.String, java.lang.String) (Unknown Source)
    at com.mysql.jdbc.NonRegisteringDriver.connect(java.lang.String, java.util.Properties) (Unknown Source)
    at java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties) (/usr/lib/libgcj.so.5.0.0)
    at java.sql.DriverManager.getConnection(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at TestMysql.main(java.lang.String[]) (Unknown Source)
    ** END NESTED EXCEPTION **
    at com.mysql.jdbc.Connection.execSQL(com.mysql.jdbc.Statement, java.lang.String, int, com.mysql.jdbc.Buffer, int, int, boolean, java.lang.String, boolean, boolean) (Unknown Source)
    at com.mysql.jdbc.Connection.configureClientCharacterSet() (Unknown Source)
    at com.mysql.jdbc.Connection.initializePropsFromServer() (Unknown Source)
    at com.mysql.jdbc.Connection.createNewIO(boolean) (Unknown Source)
    at com.mysql.jdbc.Connection.Connection(java.lang.String, int, java.util.Properties, java.lang.String, java.lang.String) (Unknown Source)
    at com.mysql.jdbc.NonRegisteringDriver.connect(java.lang.String, java.util.Properties) (Unknown Source)
    at java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties) (/usr/lib/libgcj.so.5.0.0)
    at java.sql.DriverManager.getConnection(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at TestMysql.main(java.lang.String[]) (Unknown Source)
    i have the database, hello.
    The same code works well in Windows, But in Linux, the above exception.
    By using the username root and password mysql , i can connect to mysql directly from the mysql prompt.
    Pls help me..
    I have already put the query 'access denied problem in Mysql' some day before. from the reply, i made some changes in user table(ie. set the password for [email protected].).After this change, this new Exception came..
    The structure of my mysql.user table is
    #     host                         user          password
    1     localhost                    root          68d4f47c49a579c9
    2     localhost.localdomain          root          68d4f47c49a579c9
    3     localhost.localdomain          
    4     localhost          
    Pls help me.
    Edited by: SUMESHBABU_R on Sep 30, 2007 11:36 PM

    Well, at least the trace tells me that this issue is to be tracked back to the core of the MySQL JDBC driver and the Linux's implementation of JVM. It might be worth the effort to post this issue at their website/forum/issuetracker. It might also be worth the effort to tryout the newer MySQL JDBC driver 5.1, as it is written specific for JDK 6.0 (while MySQL JDBC driver 5.0 is targeted at JDK 5.0).

  • "jdbc:mysql:///test" - "jdbc:mysql:test" what is the difference

    "jdbc:mysql:///test" -> "jdbc:mysql:test" what is the difference:
    I used both of them in my url but only "jdbc:mysql:///test" worked only
    what is the difference what /// means?

    JDBC URLs have the format
    jdbc:<subprotocol>://<data source identifier>
    jdbc indicates a JDBC data source. subprotocol identifies which JDBC Driver to use.
    For com.mysql.jdbc.Driver and localhost server, database name as 'test':
    it's jdbc:mysql://localhost/test
    or jdbc:mysql://127.0.0.1:3306/test
    you would select another server and database name.
    For sun.jdbc.odbc.JdbcOdbcDriver with MS Access or SQLServer database, it's jdbc:odbc:DSNname
    HTH

  • DAS Can't connect to mySQL ODBC

    Using:<BR>HPS 8.3<BR>Sun Solaris 8<BR>I've created a BQY in Intelligence Explorer that connects using mySQL ODBC in Windows XP and wanted to publish it to the web, but I needed to publish the OCE to the server and set it up with DAS.<BR><BR>Here are the steps I took<BR>1. Installed the mysql connector odbc 3.51.12 sun solaris2.8 sparc 64bit ODBC in Solaris.<BR>2. Created an odbc.ini file in Solaris with my mySQL connection settings in the home directory of the user running the services. I even made a copy of it in the $BP_HOME directory.<BR>3. Added the library path for my ODBC library to all my scripts.<BR>4. Added the data source using the service config tool.<BR>5. Restarted services<BR>6. published the OCE and BQY<BR><BR>When I access the BQY using the plug-in, it gives me <BR>"Server Error [2009]; Internal Error Detected in Data Access Service"<BR><BR>When I access it using the thin-client (iHTML), it gives me:<BR>"An Intelligence Service error has occurred.-Failed to acquire requested service"<BR><BR>What else needs to be done?<BR>I tried some the other suggestions to no avail:<BR>--added the library path  to the LD_PRELOAD variable in the $BP_HOME/bin/services.sh script<BR><BR>Also, I noticed that when I ran ServiceConfig.sh, there were no data sources to pick from the dropdown.  Anyone know how to make that active so I can just PICK the connection to use?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I'd strongly recommend that you take all that JDBC code out of your JSP. Put it into a class that you can test on the command line. Once you have it working, you can use it to get at data and pass it along to your JSP for display.
    I'd also recommend that you not use scriptlets and learn JSTL right away. MVC separation suggests that putting Java code in a JSP is a very bad idea.
    %

  • MySQL ODBC Connection

    Hi all,
    Can anyone please let me know how to make ODBC Connection with MySql in JSP.
    Steps wise explanation will be highly appreciated.
    thanks for any help in advance,
    savdeep.

    Why you go for ODBC, better to use JDBC connection.
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/databasename", User, Pass);

Maybe you are looking for