Setting up a JDBC Driver.

Hi,
I'm trying to setup a database to interact with my Java code. I'm new to databases and I don't know where to start. I'm using Java 2 SDK 1.4.0 with JAI 1.1.2. Can anyone point me in the right direction? I have seen the tutorial on the sun website but I doesn't really say much. Where do I get this driver and what else do I need to do? I'd really appreciate any help I get.
Thanks,
pow.

Hi J,
If I was to use a MS Access DB what would the driver be? Do I need to install anything? Do i just need to import java.sql?
I'm so lost. I'm trying to develop an application.
About the string you have below is that the actual URL or does that also need to be changed.
I'd really appreciate you help.
Thanks,
pow
Here is an example of an ODBC bridge. You can
interchange the drivers you will be using.
String url = "jdbc:odbc:name"; //ODBC bridge
try {
Connection con;
     Statement stmt;
     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
     con = DriverManager.getConnection(url, "", "");
     stmt = con.createStatement();
     String selectString = "SELECT * FROM ...";
     ResultSet rs = stmt.executeQuery(selectString);
     while (rs.next()) {                    
          //get data
     stmt.executeUpdate(updateString);
     stmt.close();
     con.close();
catch (Exception e)
     out.println(e);

Similar Messages

  • Is it possible to set JDBC  Driver CharacterSet

    HI,
    I'm trying to learn how the data conversion is being handled in oracle (ii.e, I wanted to check the behaviour by keeping orai18n.jar & removing it). My database character set is WE8ISO8859P1, and I would like to change different client side character sets & do some R&D related to my application.
    So I want to know ....
    ->if we can set JDBC Driver Character set in any way.
    ->Is setting client character set is what is setting driver character set??
    We are using Oracle 10g and getting connections using Datsource. When I try to get the driver character set using oracle.jdbc.driver.OracleConnection.getJdbcCsId(), it returns 31 (which is WE8ISO8859P1).But I didn't find any setter..or similar method.
    I'm new to this Globalization thing.... so sorry if I'm asking dumb questions.... Could any one help me in this regard?? .
    Thanks,

    JDBC is not designed to support the notion of a driver character set. Any text data should be retrieved using ResultSet.getString() method and passed to the database using PreparedStatement.setString() method - except for CLOBs, which also accept Unicode character streams. These methods expect string data in Java Unicode encoding (UTF-16). If you need to output this data from an application is some other encoding, you should use standard Java conversion mechanisms - e.g. String.getBytes(charset) or new PrintWriter(file,charset).
    The driver character set is an internal setting relevant for intermediate character set conversions between the driver and the database. It is determined automatically by the driver based on the database character set. The method oracle.jdbc.driver.OracleConnection.getJdbcCsId() is undocumented and should not be used.
    -- Sergiusz

  • Connecting to SQLserver 2005 via Web Analysis using a JDBC driver

    We are currently working on a web analysis suite and have been trying to create a SQL spreadsheet data object.
    After downloading and supposedly installing the sqljdbc.jar driver, we are having problems getting a connection to MS SQL server 2005.
    We set the classpath to this driver in the operating system (Windows server 2003) but are unsure exactly how to set this classpath in Tomcat 5.0.28 as recommended by the help file. We have tried editing the catalina.bat and catalina.50.bat in the \Hyperion\common\appServers\Tomcat\5.0.28\bin folder to point to sqljdbc.jar, but to no avail.
    So....does anyone have any experience on setting up the JDBC driver for MSSQLServer 2005 and making a connection in Web Analysis. Could you please give a step by step account of how this is done?

    Hi,
    In the past I have used two methods either updating the registry for the web application or by placing the jar file in the following directory
    \Hyperion\deployments\Tomcat5\WebAnalysis\webapps\WebAnalysis\WEB-INF\lib
    If you do place it in that directory you will need to restart the web analysis web server.
    Then in web analysis studio go to file > new > database connection >Relational
    Select Microsoft SQL Server
    JDBC Driver
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection string
    jdbc:microsoft:sqlserver://<servername>:1433;DatabaseName=<dbname>;SelectMethod=cursor
    Enter username/password
    There is always the Merant SQL server connection that can be used as well.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using JSP & JDBC driver for SQL Server 2000 on Red Hat

    I successfully have a .jsp app running on windows server 2000 using JDBC
    driver for SQL Server 2000. Which I installed in order to the following
    Red Hat:
    http://msdn.microsoft.com/MSDN-FILES/027/001/779/install.htm
    I moved the .jsp app over to the Red Hat 9 server running Tomcat, while
    keeping the MS SQL 2000 on windows. The issue I have is setting up the
    JDBC driver for SQL Server 2000 on the Red Hat server.
    I created a folder called /usr/java/MSSQLdriver and unzipped the tar file with
    the driver for SQL Server 2000. And ran the install.ksh script.
    The /usr/java/MSSQLdriver/lib has the following files within it:
    msbase.jar, msutil.jar, & mssqlserver.jar
    I chmod 0777 each of the *.jar files.
    I then went into /etc/profile.d/tomcat.sh and adding the following:
    CLASSPATH=.;/opt/msSQLjdbc/lib/msbase.jar;/opt/msSQLjdbc/lib/msutil.jar;/opt/msSQLjdbc/lib/mssqlserver.jar
    Each time I login and pull up the termial I get the following error:
    bash: /opt/msSQLjdbc/lib/msbase.jar: cannot execute binary file
    bash: /opt/msSQLjdbc/lib/msutil.jar: cannot execute binary file
    bash: /opt/msSQLjdbc/lib/mssqlserver.jar: cannot execute binary file
    And can't connnect to the database within the .jsp app.
    Is there anyone out there using DBC driver for SQL Server 2000 on the Red Hat server?
    Michael

    Sorry, I needed to correct some information of where the drivers were installed.
    I created a folder called /usr/java/MSSQLdriver/new and untar the Microsoft file with the driver for SQL Server 2000. I ran the install.ksh script "sh install.ksh"
    installed the driver into the default directory "/opt/msSQLjdbc".
    The /opt/msSQLjdbc/lib has the following files within it:
    msbase.jar, msutil.jar, & mssqlserver.jar
    Michael

  • Need help using Windows Server 2000 JDBC Driver on Red Hat 9

    I successfully have a .jsp app running on windows server 2000 using JDBC
    driver for SQL Server 2000. Which I installed in order to the following
    Red Hat:
    http://msdn.microsoft.com/MSDN-FILES/027/001/779/install.htm
    I moved the .jsp app over to the Red Hat 9 server running Tomcat, while
    keeping the MS SQL 2000 on windows. The issue I have is setting up the
    JDBC driver for SQL Server 2000 on the Red Hat server.
    I created a folder called /usr/java/MSSQLdriver and unzipped the tar file with
    the driver for SQL Server 2000. And ran the install.ksh script.
    The /usr/java/MSSQLdriver/lib has the following files within it:
    msbase.jar, msutil.jar, & mssqlserver.jar
    I chmod 0777 each of the *.jar files.
    I then went into /etc/profile.d/tomcat.sh and adding the following:
    CLASSPATH=.;/opt/msSQLjdbc/lib/msbase.jar;/opt/msSQLjdbc/lib/msutil.jar;/opt/msSQLjdbc/lib/mssqlserver.jar
    Each time I login and pull up the termial I get the following error:
    bash: /opt/msSQLjdbc/lib/msbase.jar: cannot execute binary file
    bash: /opt/msSQLjdbc/lib/msutil.jar: cannot execute binary file
    bash: /opt/msSQLjdbc/lib/mssqlserver.jar: cannot execute binary file
    And can't connnect to the database within the .jsp app.
    Is there anyone out there using DBC driver for SQL Server 2000 on the Red Hat server?
    Michael

    Sorry, I needed to correct some information of where the drivers were installed.
    I created a folder called /usr/java/MSSQLdriver/new and untar the Microsoft file with the driver for SQL Server 2000. I ran the install.ksh script "sh install.ksh"
    installed the driver into the default directory "/opt/msSQLjdbc".
    The /opt/msSQLjdbc/lib has the following files within it:
    msbase.jar, msutil.jar, & mssqlserver.jar
    Michael

  • Jdbc driver creates new thread for each statement with a query timeout set

    I am profiling a web application that is using the Microsoft JDBC driver, version 1.1 to connect to a sql server 2005 database. Each java.sql.Statement that is created, within the application, gets a query timeout value set on it ( statement.setQueryTimeout(...) ).
    I have discovered that the JDBC driver creates a new thread to monitor each Statement and the query timeout value. When the application is under load these threads are getting created faster then they are being destroyed and I am concerned that this will cause a performance problem in production.
    One option I have is to remove the query timeout value and the monitor threads will not be created, another is to change JDBC drivers.
    I'm curious is there any way to control this behavior so that these threads are not created or are managed more efficiently.  Is there a workaround that anyone is aware of?   Is this considered a bug?
    I have found a similar bug here for the 2000 driver:
    http://support.microsoft.com/default.aspx/kb/894552
    Cheers

    Hi,
    Thank you for using the Microsoft SQL Server JDBC driver.  You are correct that a new thread is started to monitor the query timeout when a statement is executed.  This is a potential performance issue that we may look at addressing in the upcoming v1.2 release.  The current behavior is not configurable.  The only workaround with the v1.1 driver is to limit your use of query timeouts to only those statements which you reasonably might expect to actually time out.
    We do take customer feedback very seriously, so if anyone else is concerned about this particular issue, please chime in and we will be able to give it appropriate weight.
    --David Olix [MSFT]

  • Gor The result set is closed after switch to latest microsoft JDBC driver

    The same code works fine with the previous version of the microsoft JDBC driver, but throws
    com.microsoft.sqlserver.jdbc.SQLServerException: The result set is closed.
    for the JDBC driver 4.
    Please Help!
    Thanks.

    I found the same exception when dealing with ResultSetMetaData.
    Using the old driver (1.2.2828.100) it was possible to do something like:
    Statement s = con.createStatement();
    ResultSet r = s.executeQuery("select * from <table>");
    ResultSetMetaData m = r.getMetaData();
    r.close();
    s.close();
    int numCols = m.getColumnCount();
    But using the new driver (2.0.1803.100) it complains that the result set is closed.
    The solution was to keep the ResultSet and Statement open until after the ResultSetMetaData is no longer needed. It is somewhat inconvenient because before it was possible to have a utility method that would return a ResultSetMetaData object and not have to worry about keeping the Statement and ResultSet objects around.
    I was hoping for a speed increase for batch inserts by having the latest driver, sadly there is no performance gain.

  • NLS setting with class4 JDBC thin driver

    Hi,
    we have a NLS setting for defining the charset which we need for compatibility setting in our system. The problem is that we have a default behaviour with that setting that works well using the SQLPlus command line tool. The JDBC driver seems to ignore the NLS settings.
    Is there a way to tell the driver to read out the DB NLS settings?
    Maybe is there a way to tell the driver by argument the NLS setting?
    It would be best not to have code changes as we do compile the source against multiple databases wich would be a problem for Oracle!
    Thanks!

    Hi,
    we have a NLS setting for defining the charset which we need for compatibility setting in our system. The problem is that we have a default behaviour with that setting that works well using the SQLPlus command line tool. The JDBC driver seems to ignore the NLS settings.
    Is there a way to tell the driver to read out the DB NLS settings?
    Maybe is there a way to tell the driver by argument the NLS setting?
    It would be best not to have code changes as we do compile the source against multiple databases wich would be a problem for Oracle!
    Thanks!

  • NW2004S Setting up JDBC driver for Sybase jconn2.jar

    Hi everyone, has anyone had experience setting up the sybase driver jconn2.jar using the visual admin?   I am following the guide BI JDBC Connector as described in http://help.sap.com/saphelp_nw70/helpdata/en/43/e35b3315bb2d57e10000000a422035/frameset.htm
    I have executed the Prerequisites and imported the jar file.   Now reading from the help guide it talks about connector properties such as username, password, url ...etc.  I don't know where to set these.  Are they referring to The tab additional properties.
    I select "Drivers" -> NEW, gave it the name Sybase.  After I loaded the driver, I slected DataSources -> Create.  I gave it a name "Sybase", selected the Driver name "Sybase" from the drop down list, select JDBC version 2.0, it the Object Factory  I entered com.sybase.jdbc2.jdbc.SybDataSource (I also verified this class is in the jar file.
    For the DatSource Type I select ConnectionPoolDataSource. and for the CPDS classname I enterd com.sybase.jdbc2.jdbc.SybXADataSource (also verified the class is in the jar file.  Now for Addtional properties, I entered key/value DatabaseName/Password, PortNumber, ServerName, User.  For SQL Engine I selected open SQL.
    Now when I hit save I get "Error occurred while starting application com/Sybase. 
    I looked at the default trace file and can't figure the error is all about.  Also.  I tried using SQL Engine "Vendor SQL" and got same error message, then I selected DataSource Type XADataSource.   Same problem and it just won't start.
    Here is the error I am seeing in the default trace file.
    om.sap.engine.services.connector##com.sap.engine.services.connec
    tor#J2EE_ADMIN#16239####e77b19006dd811dcaea40003ba21a6f5#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain###ResourceObjectF
    actory.getConnectionSet(Sybase), Exception: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "S
    ybase" does not exist. Possible reasons: the connector in which ConnectionFactory "Sybase" is defined is not deployed or not started
            at com.sap.engine.services.connector.ResourceObjectFactory.getConnectionSet(ResourceObjectFactory.java:671)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.listFreeConnections(DataSourceManagerImpl.java:540)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.getCurrentSize(DataSourceManagerImpl.java:950)
            at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
            at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
            at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
            at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
            at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
            at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
            at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
            at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
            at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
            at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
            at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:131)
            at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
            at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
            at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312)
            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199)
            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessag
    eListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    #1.#0003BA21A6F5005A000003F8000012D000043B340955A9AE#1190994587789#com.sap.engine.services.connector##com.sap.engine.services.connec
    tor#J2EE_ADMIN#16239####e77b19006dd811dcaea40003ba21a6f5#SAPEngine_Application_Thread[impl:3]_7##0#0#Error##Plain###ResourceObjectFa
    ctory.getConnectionSet(Sybase), Exception: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "Sy
    base" does not exist. Possible reasons: the connector in which ConnectionFactory "Sybase" is defined is not deployed or not started.
            at com.sap.engine.services.connector.ResourceObjectFactory.getConnectionSet(ResourceObjectFactory.java:671)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.listUsedConnections(DataSourceManagerImpl.java:565)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.getUsedConnectionsCount(DataSourceManagerImpl.java:967)
            at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
            at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
            at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
            at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
            at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
            at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
            at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
            at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
            at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
            at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
            at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:131)
            at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
            at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
            at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312)
    And it goes on and on.

    Used the following jconn3.jar from http://www.sybase.com/detail?id=1041013.
    Changed, DriverName to com.sybase.jdbc3.SybDataSource

  • Setting options to mysql jdbc driver

    Hello All
    Well According to MYSQL setting the CLIENT_MULTI_STATEMENTS flag onto a
    connection should allow multi statements (eg more than one query pr call)
    But I have no idea how to configure BEA to call mysql with the optional
    parameters?
    (btw tried opt_flags=CLIENT_MULTI_STATEMENTS)
    Oliver Billing

    Joe Weinstein skrev:
    [email protected] wrote:
    Hello All
    Well According to MYSQL setting the CLIENT_MULTI_STATEMENTS flag onto a
    connection should allow multi statements (eg more than one query pr call)
    But I have no idea how to configure BEA to call mysql with the optional
    parameters?
    (btw tried opt_flags=CLIENT_MULTI_STATEMENTS)
    Oliver BillingHi. I assume you're using our connection pools, with the mysql driver.
    You would add the property and it's value to the driver properties list.
    JoeHey Joe
    I did
    CLIENT_MULTI_STATEMENTS = true (looked it up under mysql JDBC driver)
    Doesent work though.
    Thanks anyway

  • Coldfusion JDBC driver setting

    I have coldfusionmx 7 installed on red hat linux enterprise 4
    How can i change the coldfusion JDBC driver to oracle 10g
    JDBC driver, that's may be help me in solving problems " Net8
    protocol error" which occured when a stored procedure return ref
    cursor to coldfusion?

    The Technotes listed
    here may
    help.

  • How to setting up the sun.jdbc driver in servlet

    in my servlet i implemens the MetaData Interface, The Sun JDBC driver was Not support the getMetaData() function .. I dont knw why it was
    Pls hel me

    http://www.apple.com/support/iphone/assistant/airprint/

  • Setting up embedded OC4J in JDev to use P6Spy jdbc driver to Oracle

    I am currently working on an OC4J application using Oracle db, with JDeveloper. I'm having some trouble with the DataSourceUserManager, in that it appears to be emitting faulty SQL, but I don't know exactly what SQL is being emitted. Today, I'm trying to see if I can interject the P6Spy JDBC driver on the database client side so I can see exactly what SQL is being emitted. I've successfully used P6Spy in the past on other projects, so I believe it can work, although I didn't use it with Oracle before.
    Unfortunately, I'm having trouble figuring out how to inform JDeveloper of the location of the driver jar. I've added P6Spy as a library to my application, and I've found several XML files in my workspace and in the JDev configuration which contain an "orion-application" element, which contains "library" sub elements, several of which I've added "library" elements to specify the location of the driver jar. Despite that, when the embedded OC4J starts up, I still get this in the messages window:
    Error initializing data-source 'jdbc/OracleDS': DriverManagerDataSource driver 'com.p6spy.engine.spy.P6SpyDriver' not found
    Note that this occurs while OC4J is trying to initialize my UserManager subclass.
    I believe there is also some facility for turning on "tracing" with Oracle, but the person who knows about that isn't here today. It would be good if I could get P6Spy working today, so I can make some progress today (which is looking more unlikely by the second).

    You must place the p6spy.jar into <oc4j_home>/j2ee/home/lib directory.
    The datasources are initialized before any deployed application is started, and thus the p6spy.jar wont be in the classpath >when the appserver is started (if you put the jar in WEB-INF/lib).That's correct.
    Another question -- have anyone managed to get p6spy to work with a ConnectionPoolManager in a BC4J-project?? I get a ClassCastException from oracle.jbo.server.OracleSQLBuilder because it tries to cast a statement into an OracleStatement.You need to build the project using SQL92 and Java Type Map.
    See
    Re: Exp problem in Oracle 10gR2
    Re: error in form10g release 2

  • OpenSQLException: JDBC driver not supported?

    Hi @ all,
    I need to connect to a DataSource with the WebAS 7 via SQLJ. As I try to connect to it with the SQL Engine set to "Vendor SQL" I get:
    "The given connection "com.sap.engine.services.dbpool.cci.ConnectionHandle" is not an Open SQL connection"
    As I try to get a connection to the dataSource via SQLJ with SQL Engine set to "Open SQL" or "Native SQL", I get the following Exception:
    ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: JDBC driver not supported for MS_SQL_SERVER database.
    How can I get the SQLJ- Support?
    Kind regards,
    Uwe
    Message was edited by:
            Uwe Kunath

    Hi Uwe, all,
    for using Native SQL/JDBC or Open SQL/JDBC, the database itself and the JDBC driver must be recognized as being in the supported set. The answer to that depends on what you mean in detail by "Web AS 7". Roughly speaking, it should be the JDBC driver released by Microsoft.
    Open SQL/SQLJ is only available with a Open SQL/JDBC data source. Hence, there is no way around using Open SQL/JDBC.
    Now, Open SQL/JDBC and Open SQL/SQLJ both requires tables (and other database objects) to be deployed via the Open SQL for Java Dictionary. Up to and including WebAS Java 7.1, the Open SQL/Dictionary supports deployment to the system database, i.e. the database (and schema) used by the installed server itself.
    Given the above, the JDBC driver for a Open SQL/JDBC data source must already be present, because it must be the driver used by the server itself. When defining data sources, it is referred to as "system driver".
    This leaves us with a Open SQL/JDBC data source to the system schema. You can then also consider to establish a data source alias to the server's system datasource.
    Hope this helps. Best Regards, Dietamr

  • Adding a JDBC driver in Sun Java System Web Server 7

    I'm trying to configure JDBC database connection pooling for a Microsoft SQL Server 2005 Express Edition though the Sun Java System Web Server 7 administration console. I don't want to use the MSSQL JDBC driver that comes bundled with the SJSWS 7. So I've downloaded the lastest MSSQL JDBC driver from the Microsoft website and put in the "lib" subdirectory of the SJSWS installation directory. So when I go to add a new JDBC resource through the administration console, the newly added MSSQL database driver doesn't appear in the "Driver Vendor" drop-down box.
    How do I add the downloaded JDBC driver to the server so that it appears in the "Driver Vendor" drop-down under "Create JDBC resource".

    Check this documentation from MS on using the JDBC driver with DataSource
    http://msdn2.microsoft.com/en-us/library/ms379052.aspx
    SJS Web Server 7.0 should work with any driver that has support for javax.sql.DataSource. The great majority of drivers do.
    So instead of using the driver name, use the DataSource class name:
    com.microsoft.sqlserver.jdbc.SQLServerDataSource
    The properties to add should be:
    user=username
    password=password
    servername=sql_server_hostname
    portnumber=sql_server_port
    databasename=databasename
    In general, all the setters required to get the datasource configured can be set as properties.

Maybe you are looking for

  • Original iPhone, latest firmware, universal dock, composite AV cable ...

    and a plasma tv... I am trying to watch some ITunes U movies on my plasma set while working out. So i buy a universal dock, the composite AV cable for the iPhone, hook it all up and try to watch an episode. What happens is that the video on the iPhon

  • Import a java file?

    Hi, I created a StockTablePanel.java file, and then compiled it fine. Then, I wrote in a new file, StockTableTabPanel.java, the followings: //top: import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; // Import

  • Muse CC 2014 - In Browser Editing - if FTP access denied

    Hi. We have a site built in Muse, the hosts have not allowed access via FTP so all changes must go through them = a real pain in the butt. So, this would be the perfect solution for the client to make their own edits and changes. My question is, is t

  • Do not disconnect hung up

    Upon connection of my ipod is stuck on the do not disconnect screen .I have tried resetting, but i can't get anything to work. Has anyone has this happen? please help.

  • How to install a hp printer to my dell computing with out a disk?

    i want to install my printer hp deskjet 1000 to my dell desk top computerbut i dont have a disk help