Microsoft SQL OR JDBC database driver

Hello,
My Network Server Admin guy just sent me this:
"I have added the JDBC driver, however I want to confirm
prior to changing the xxxxxx datasource to use the JDBC driver.
You would like us to change from the Microsoft SQL driver to
the JDBC database driver?"
Question is , Which database driver does MX 7 use in
connecting to MS SQL Server 2005?
Presently it looks like we use Microsoft ODBC driver, do we
change to JDBC and why?
Thanks

To confirm what version of the JDBC drivers you are using,
run this code:
<cfset jdbcDriver = CreateObject("java",
"macromedia.jdbc.sqlserver.SQLServerDriver")>
<cfoutput>
JDBC version =
#jdbcDriver.getMajorVersion()#.#jdbcDriver.getMinorVersion()#</p>
</cfoutput>
3.5 are the latest JDBC drivers available for ColdFusion MX
The Adobe drivers can be found here:
http://www.adobe.com/go/42dcb10a
The Microsoft JDBC Driver can be found
here
The TechNote for this can be found here:
http://www.adobe.com/go/ded4216b

Similar Messages

  • Microsoft SQL Server JDBC driver and WLS JMS problem?

              Greetings,
              I'm using the Microsoft SQL Server JDBC driver with WLS with JMS
              persisted to SQL Server, during WLS startup the JMS attempts to
              read the JMSStore and JMSState tables in the db, if they are
              already present (say, from a previous run) the driver kicks out:
              java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]ResultSet can
              not re-read row data for column 1.
              If the tables are not present, then WLS creates them and
              everything proceeds fine. Now, its not a good thing to attempt
              to reread row data for a ResultSet, especially for portability. Why is WLS JMS
              doing this? is there some config I can use to adjust JMS startup behavior for
              persisted JMS stores?
              Jay Houghton
              Centiv
              [email protected]
              long exception trace follows:
              <Oct 1, 2002 8:29:11 AM EDT> <Info> <JMS> <User connection factory "BroadcastTopicFactory"
              is started.>
              <Oct 1, 2002 8:29:18 AM EDT> <Info> <JMS> <JMSServer "EnergizerJMSServer", Opening
              JDBC store tables "JMSStore
              " and "JMSState" using connection pool "JMSConnectionPool".>
              <Oct 1, 2002 8:29:20 AM EDT> <Alert> <JMS> <JMSServer "EnergizerJMSServer", store
              failed to open, java.io.IOEx
              ception: JMS JDBC store, connection pool = <JMSConnectionPool>, prefix = <null>:
              recover
              java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]ResultSet can
              not re-read row data for colum
              n 1.
              at com.microsoft.jdbc.base.BaseResultSet.getLong(Unknown Source)
              at com.microsoft.jdbc.base.BaseResultSet.getLong(Unknown Source)
              at weblogic.jdbc.pool.ResultSet.getLong(ResultSet.java:304)
              at weblogic.jms.store.JDBCIOStream.doRecover(JDBCIOStream.java:618)
              at weblogic.jms.store.JDBCIOStream.recover(JDBCIOStream.java:728)
              at weblogic.jms.store.JMSStore.recover(JMSStore.java:112)
              at weblogic.jms.backend.BEStore.open(BEStore.java:179)
              at weblogic.jms.backend.BackEnd.initialize(BackEnd.java:330)
              at weblogic.jms.JMSService.createBackEnd(JMSService.java:923)
              at weblogic.jms.JMSService.addJMSServer(JMSService.java:1277)
              at weblogic.jms.JMSService.addDeployment(JMSService.java:1174)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:23
              3)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
              at $Proxy40.updateDeployments(Unknown Source)
              at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub
              .java:2734)
              at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:362
              at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:154)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
              at $Proxy57.start(Unknown Source)
              at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean
              _CachingStub.java:480)
              at weblogic.management.Admin.startApplicationManager(Admin.java:1151)
              at weblogic.management.Admin.finish(Admin.java:571)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:508)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
              at weblogic.Server.main(Server.java:35)
              

              Tom,
              thanks for the info, I'll bring this to support.
              I did try the weblogic jDriver for SQL Server and it works fine, so i think it
              must be the way JMS is interacting with the MS driver.
              here are my components:
              WLS 6.1sp1
              Microsoft® SQL Server™ 2000 Driver for JDBC™ is a (Type 4 JDBC) which provides
              partial JDBC 2 support (no blobs, clobs, etc)
              MS SQL Server 2000 (sp2?)
              thanks!
              Jay Houghton
              [email protected]
              Tom Barnes <[email protected]> wrote:
              >Hi Jay,
              >
              >This is not a known issue at BEA as far as I know, perhaps it is the
              >result
              >of a new driver/database combination. Try using a different driver,
              >or a different
              >version of the current driver. Meanwhile, use a file store (just as
              >reliable but faster) and log a case with customer support, including
              >information on your version, service-pack, and what driver you are using.
              >
              >Tom, BEA
              >
              >Jay Houghton wrote:
              >
              >> Greetings,
              >>
              >> I'm using the Microsoft SQL Server JDBC driver with WLS with JMS
              >> persisted to SQL Server, during WLS startup the JMS attempts to
              >> read the JMSStore and JMSState tables in the db, if they are
              >> already present (say, from a previous run) the driver kicks out:
              >>
              >> java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]ResultSet
              >can
              >> not re-read row data for column 1.
              >>
              >> If the tables are not present, then WLS creates them and
              >> everything proceeds fine. Now, its not a good thing to attempt
              >> to reread row data for a ResultSet, especially for portability. Why
              >is WLS JMS
              >> doing this? is there some config I can use to adjust JMS startup behavior
              >for
              >> persisted JMS stores?
              >>
              >> Jay Houghton
              >> Centiv
              >> [email protected]
              >>
              >> long exception trace follows:
              >>
              >> <Oct 1, 2002 8:29:11 AM EDT> <Info> <JMS> <User connection factory
              >"BroadcastTopicFactory"
              >> is started.>
              >> <Oct 1, 2002 8:29:18 AM EDT> <Info> <JMS> <JMSServer "EnergizerJMSServer",
              >Opening
              >> JDBC store tables "JMSStore
              >> " and "JMSState" using connection pool "JMSConnectionPool".>
              >> <Oct 1, 2002 8:29:20 AM EDT> <Alert> <JMS> <JMSServer "EnergizerJMSServer",
              >store
              >> failed to open, java.io.IOEx
              >> ception: JMS JDBC store, connection pool = <JMSConnectionPool>, prefix
              >= <null>:
              >> recover
              >> java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]ResultSet
              >can
              >> not re-read row data for colum
              >> n 1.
              >> at com.microsoft.jdbc.base.BaseResultSet.getLong(Unknown Source)
              >> at com.microsoft.jdbc.base.BaseResultSet.getLong(Unknown Source)
              >> at weblogic.jdbc.pool.ResultSet.getLong(ResultSet.java:304)
              >> at weblogic.jms.store.JDBCIOStream.doRecover(JDBCIOStream.java:618)
              >> at weblogic.jms.store.JDBCIOStream.recover(JDBCIOStream.java:728)
              >> at weblogic.jms.store.JMSStore.recover(JMSStore.java:112)
              >> at weblogic.jms.backend.BEStore.open(BEStore.java:179)
              >> at weblogic.jms.backend.BackEnd.initialize(BackEnd.java:330)
              >> at weblogic.jms.JMSService.createBackEnd(JMSService.java:923)
              >> at weblogic.jms.JMSService.addJMSServer(JMSService.java:1277)
              >> at weblogic.jms.JMSService.addDeployment(JMSService.java:1174)
              >> at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
              >> at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279)
              >> at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:23
              >> 3)
              >> at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193)
              >> at java.lang.reflect.Method.invoke(Native Method)
              >> at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
              >> at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
              >> at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
              >> at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              >> at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              >> at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
              >> at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
              >> at $Proxy40.updateDeployments(Unknown Source)
              >> at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub
              >> java:2734)
              >> at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:362
              >> )
              >> at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:154)
              >> at java.lang.reflect.Method.invoke(Native Method)
              >> at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
              >> at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
              >> at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
              >> at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              >> at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              >> at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
              >> at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
              >> at $Proxy57.start(Unknown Source)
              >> at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean
              >> _CachingStub.java:480)
              >> at weblogic.management.Admin.startApplicationManager(Admin.java:1151)
              >> at weblogic.management.Admin.finish(Admin.java:571)
              >> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:508)
              >> at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
              >> at weblogic.Server.main(Server.java:35)
              >
              

  • Microsoft SQL Server JDBC Drivers 4.0.2206 timeout on first connection to SQL Server Express after it sleeps

    Our builds kick off and run integration tests. They are configured to hit a SQL Server Express server.
    If the builds have been quiet for a while, the first test to connect fails after stalling for 20 minutes.
    Subsequent tests are fine.
    Reversing test order does the same thing, with a different test.
    We noticed in the SQL Server express log the server saying it is waking up after being idle.
    Microsoft SQL Server Express with Microsoft SQL Server JDBC Drivers 4.0.2206.
    Connection times out after 20 minutes.Occurs with the first connection made after the SQL Server Express server wakes up from going to sleep.Connections after the first are just fine, until SQL Server Express sleeps.SSL enabled. Timeout duration for the connection failure is unaffected by setting timeout options for the connection.  Work around:
    cron-like job that runs every minute that makes a simple query on the server keeps the server from going to sleep.
    Has anyone else run into this?

    Hello,
    SQL Server Express will go to sleep if idle, this behavior is not configurable.
    When SQL Express transitions from idle to active some of the memory that was released needs to be reclaimed; this results is a slight lag during "startup time" when you're first connecting to SQL Express.
    The other sort of sleep occurs when a database with AUTO_CLOSE unloading itself after a period of inactivity. This can be resolved by setting AUTO_CLOSE to false.
    You can refer to the following blog about more details about this:
    http://blogs.msdn.com/b/sqlexpress/archive/2008/02/22/sql-express-behaviors-idle-time-resources-usage-auto-close-and-user-instances.aspx
    You can try to upgrade the SQL Server Express to a non-free version to get rid of this.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Steps to create Universe from Microsoft SQL oder Oracle Database

    Hi All,
    i am looking for a document which describe the steps to create an Universe base on Microsoft SQL oder oracle database.
    Thank you in advance
    Pat

    Hi,
    These links may be help for you:
    http://www.bidw.org/business-objects/universe-design/getting-started-with-universe-design/
    http://www.sap-businessobjects.info/universe-design.htm
    All the Best,
    Madhu...

  • Score report of Microsoft SQL Server 2012 Databases

    Hello,
    I had written exam of Administering Microsoft SQL Server 2012 Databases 70-462 and I am passed, but I didn't get score report of 70-462 paper.
    can you please help us how to download Score report through online.
    Regards,
    Asfad

    Your score report is available via the MCP Website (http://mcp.microsoft.com).  This feature only works for exams taken with PearsonVUE though
    When you see answers and helpful posts, please click Vote As Helpful,
    Propose As Answer, and/or Mark As Answer
    Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCSA, MCSE: BI
    Blog: Mr. Wharty's Ramblings
    Twitter: @Mr_Wharty
    MC ID:
    Microsoft Transcript

  • UCCX 8.x Database access - Anyone test the Microsoft SQL Server JDBC Driver 3.0 from Microsoft ?

    2 questions come to mind.
    will it work
    will TAC support you ?
    available here
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a737000d-68d0-4531-b65d-da0f2a735707&displaylang=en
    Brief Description
    Download the SQL Server JDBC Driver 3.0, a Type 4 JDBC driver that provides database connectivity through the standard JDBC application program interfaces (APIs) available in Java Platform, Enterprise Edition 5 and above.

    You can test it using DBvisualizer. If you can make it work in that (actually it gives you more information about connection errors etc.), it should working in UCCX also.

  • Microsoft SQL Server JDBC Driver problem

    Hi all,
    I've downloaded the JDBC driver for SQL Server 2000 from Microsoft website and I
    tried creating connection pool in Weblogic (WL 6.1 SP2).
    Following are the configuration from the admin console,
    Name - SQL2K
    URL - jdbc:microsoft:sqlserver://127.0.0.1:1433
    Driver Classname - com.microsoft.jdbc.sqlserver.SQLServerDriver
    ACLName - sa
    Password - tonypet
    After creating the config, I select to chose the target server from the Servers tab
    in Targets main tab in the admin console and when I click on Apply I saw in the WL
    server command prompt the following error,
    <16/07/2002 11:22:55> <Error> <JDBC> <Cannot startup connection pool "SQL2K" Cannot
    load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
    I have assigned the classpath env var as follows,
    CLASSPATH=;.;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program
    Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
    C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;c:\bea\wlserver6.1\lib\weblogic.jar
    I've tried even copying the .JAR files to the ext and lib directory of bea directory
    but I'm getting the same error.
    Can anyone help me please.
    Thanks a lot for your help
    Cheers
    Nanik

    Hi. You will also be wanting to add this property for the pool to apply to that driver:
    SelectMethod=cursor
    Joe
    Nanik Tolaram wrote:
    Hi all,
    After fiddling around I found a solution (hope this will help those who are having
    the same problem),
    1. Make sure you add the complete directory of the library of the .JAR files in the
    classpath in the STARTWEBLOGIC.CMD, I made a mistake of specifying the path in the
    CLASSPATH and NOT IN the STARTWEBLOGIC.CMD as the classpath is overriden in the STARTWEBLOGIC.CMD
    file.
    2. The other thing I found was the configuration setting. I put the full settings
    in the URL in admin console as follows,
    jdbc:microsoft:sqlserver://127.0.0.1:1433;user=nanik;password=tonypet;databasename=scriptbuilder
    When I put it individually in the Properties filed it won't work as it is not picking
    it up from there but when I moved it to the URL and put it all together it worked
    fine.
    Whew !!! it's been a looong day, hope the info will help.
    Cheers
    Nanik
    "Nanik Tolaram" <[email protected]> wrote:
    Hi all,
    I've downloaded the JDBC driver for SQL Server 2000 from Microsoft website
    and I
    tried creating connection pool in Weblogic (WL 6.1 SP2).
    Following are the configuration from the admin console,
    Name - SQL2K
    URL - jdbc:microsoft:sqlserver://127.0.0.1:1433
    Driver Classname - com.microsoft.jdbc.sqlserver.SQLServerDriver
    ACLName - sa
    Password - tonypet
    After creating the config, I select to chose the target server from the
    Servers tab
    in Targets main tab in the admin console and when I click on Apply I saw
    in the WL
    server command prompt the following error,
    <16/07/2002 11:22:55> <Error> <JDBC> <Cannot startup connection pool "SQL2K"
    Cannot
    load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
    I have assigned the classpath env var as follows,
    CLASSPATH=;.;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program
    Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
    C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;c:\bea\wlserver6.1\lib\weblogic.jar
    I've tried even copying the .JAR files to the ext and lib directory of bea
    directory
    but I'm getting the same error.
    Can anyone help me please.
    Thanks a lot for your help
    Cheers
    Nanik

  • Urgent Clarification - Microsoft SQL Server JDBC Driver Problem

    Hi,
    Can somebody tell me how to create a connection Pool in weblogic 7 using Microsoft
    SQL Server Driver for JDBC.(should be XADataSource).
    I mean the pool should be created using com.microsoft.jdbcx.sqlserver.SQLServerDataSource
    class.
    The error message i am getting is "Unknown source" during providing targets for
    the connection pool.
    Thanks in advance,
    Rahul.

    <JDBCConnectionPool
    DriverName="com.microsoft.jdbcx.sqlserver.SQLServerDataSource"
    Name="SQL2000JDBC"
    Properties="serverName=nc-answline-w2k;url=jdbc:microsoft:sqlserver;dataSourceName=SQL2000JDBC;user=test;databaseName=test;selectMethod=curosr;userName=test;password=test;portNumber=1435"
    URL="jdbc:microsoft:sqlserver"/>
    Try this is your config.xml and make sure you have mssqlsriver first thing in classpath.
    Thanks,
    Mitesh
    Rahul wrote:
    Hi,
    Can somebody tell me how to create a connection Pool in weblogic 7 using Microsoft
    SQL Server Driver for JDBC.(should be XADataSource).
    I mean the pool should be created using com.microsoft.jdbcx.sqlserver.SQLServerDataSource
    class.
    The error message i am getting is "Unknown source" during providing targets for
    the connection pool.
    Thanks in advance,
    Rahul.

  • Binding in Prepared Statement is not working with Microsoft SQL Server JDBC

    I ran the following program with sqljdbc4.jar in the class path. There is data in the EMPLOYEE table for the employee name DEMO but the following program is not retrieving data for DEMO. When the same program was run with Merlia.jar in the class path, it was retrieving data for DEMO.
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection con = DriverManager.getConnection("jdbc:sqlserver://SERVER23:5000;databaseName=TESTDB", "SYSADM", "SYSADM");
    String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ?" ;
    PreparedStatement sts = con.prepareStatement(sqlSele);
    sts.setString(1, "DEMO" );
    ResultSet rs = sts.executeQuery();
    while(rs.next())
    System.out.println("driverConn.main()" + rs.toString());
    catch(Exception e)
    System.out.println(e);
    e.printStackTrace();
    Can someone help me out from this issue.

    This is the program that I used for testing the behaviour of prepared statement with sqljdbc4.jar. Also included the code for Merlia.jar.
    import java.sql.*;
    public class driverConn {
         public static void main(String [] a)
              try{
              Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
              //Class.forName("com.inet.tds.TdsDriver");
              Connection con = DriverManager.getConnection("jdbc:sqlserver://SERVER23:5000;databaseName=TESTDB", "SYSADM", "SYSADM");
              //Connection con = DriverManager.getConnection("jdbc:inetdae7a:SERVER23:5000?database=TESTDB", "SYSADM", "SYSADM");
              String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ?" ;
              //String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ‘%DEMO%’”;
              PreparedStatement sts = con.prepareStatement(sqlSele);
              sts.setString(1, "DEMO" );
              //sts.setString(1, "%DEMO%" );          
              java.sql.ResultSet rs = sts.executeQuery();          
              while(rs.next())
                   System.out.println("EMPNAME is " + rs.getString(“EMPNAME”) + “”);                    }
              catch(Exception e)
                   System.out.println(e);
                   e.printStackTrace();
    Following are the specifications:
    Version of the Driver:
    Microsoft JDBC Driver 4.0 for SQL Server CTP3
    Downloaded the driver using the link http://www.microsoft.com/download/en/details.aspx?id=11774
    Java Version:
    Java 1.7.0_02
    Database Version:
    Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64)

  • Microsoft SQL Server JDBC Connection with Enterprise

    I'm trying to establish a JDBC connection to a SQL Server 2005 database server within XML Publisher Enterprise with no luck. What I have defined is:
    url = jdbc:sqlserver://servername where servername is the database server name
    Database Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver
    And I have placed the sqljdbc.jar file in the c:\OraHome_1\jdk\jre\lib directory as the help file states to do. Bounced the server, but still no luck.
    Is there a log file for connection issues to help point you to the potential cause?

    Thank you for your quick response. I followed the instruction on Tim's blog and still no luck. Here is the URL and Driver Class I entered:
    URL-
    jdbc:sqlserver://our server name:1433;databaseName=northwind
    Database driver class -
    com.microsoft.jdbc.sqlserver.sqlServerDriver
    My question:
    1. Am I right to use one of databases as northwind or should use server name after "databaseName="
    2. I used username "sa" that is sql server user. Is it correct?
    3. Some articles mentioned "sqljdbc.jar" file. Does this mean files mssqlserver.jar, msbase.jar and msutil.jar?
    Thank you for your help!
    - Jessie

  • Java.lang.OutOfMemoryError (Microsoft SQL Server JDBC driver)

    Hi everyone,
    I am getting a java.lang.OutOfMemoryError when performing a simple query to a database. The query produces only one row (and will always produce only one row). However, the statement that produces the second column in the resultset is very long (>256) characters, so could that be it?
    Also, I am executing thousands of SQL statements with no difficulty. I have double-checked that I am cleaning up all of my database resources, so I don't think that this is it. Do I have to do anything else besides closing the statement and resultset?
    There is no stack trace, otherwise I would have posted it :(
    Also, as an aside - is the Microsoft JDBC driver for SQL Server the best one to use? It seems poorly supported and slow at times. Are there any alternatives?
    Thanks for your time :)
    Ben

    It is running after thousands of other queries. I'll test to see what happens if I run it by itself.
    I am closing the connection. In fact, I am running all of these statements over the same connection and simply opening and closing resultsets.
    So a bug in the driver you think?
    Thanks for the reply :)
    Ben

  • [Microsoft][SQL Server JDBC Driver] No Rows Affected

    hi guys,
    I am getting following error when I insert a row into a Table
    TallymanDB: Error - INSERT INTO RAISEDEVENTS(Accountid,Eventid,Operationid,Date
    Time,ReviewDate,Deleted) VALUES(2,4,0,1047999439002,'16-APR-2003',null)
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]No rows affected.
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown S
    ource)
    at com.microsoft.jdbc.base.BaseStatement.executeUpdate(Unknown Source)
    at com.sanderson.tallyman.util.TallymanDB.executeUpdate(TallymanDB.java:
    217)
    at Test.main(Test.java:14)
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]No rows affected.
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown S
    ource)
    at com.microsoft.jdbc.base.BaseStatement.executeUpdate(Unknown Source)
    at com.sanderson.tallyman.util.TallymanDB.executeUpdate(TallymanDB.java:
    217)
    at Test.main(Test.java:14)
    I am using SQL Server 2000 as the database.
    The row is getting inserted correctly in the table. There is one trigger on this table which seems to give this error.
    The trigger calls a .dll which connects to some other program using the Sockets.
    The functionality seems to be working fine but we get the above mentioned error in the log.
    Can anyone help me regarding this.
    Regards,
    Rahul
    Does anyone has idea

    hi...
    following is the insert code:
    TallymanDB is the class which deals with the Database interaction.
    Regards,
    Rahul
    try
    psRecord = this.aTallymanDB.getPreparedStatement(
                   "INSERT INTO RaisedEvents (ACCOUNTID,EVENTID,OPERATIONID,DATETIME,REVIEWDATE) VALUES (?,?,?,?,?)");
              //Get Timestamp
              ts = this.aTallymanDB.getCurrentDate();
              if (ts == null)
                   ts = new Timestamp(System.currentTimeMillis());
              strErrorCode = "CM028";
              //Log event
    System.out.println("##### Inserting in LogEvent #### " );
              System.out.println("iAccountID: "+iAccountID+" iEventID: "+iEventID+" ts.getTime(): "+ts.getTime()+" tsReviewDate: "+tsReviewDate );
              psRecord.setInt(1, iAccountID);
              psRecord.setInt(2, iEventID);
              psRecord.setInt(3, 0);
              psRecord.setLong(4, ts.getTime());
              psRecord.setTimestamp(5, tsReviewDate);
              psRecord.executeUpdate();
    psRecord.close();
    aTallymanDB.releasePreparedStatement();
    psRecord = null;
         catch (Exception e)
              bCloseStmt = true;
              ErrorLog.log(strErrorCode,iAccountID);
              throw e;
         finally
              if (rs != null)
                   rs.close();
              if (bCloseStmt)
                   if (this.psSelect != null)
                        psSelect.close();
         }

  • Microsoft SQL Server JDBC Driver

    Hi everyone,
    I know it's a bit off topic but I couldn't find a related group.
    Does anyone know of the best way to access SQL Server via JDBC. I have tried
    the JDBC-ODBC bridge but it does not seem to support all types of queries
    (e.g. using a PreparedStatement).
    I have looked at Microsoft's JDBC driver but I'm not allowed to implement it
    as it is a Beta version.
    I would be very grateful if anyone could help me.
    Thanks,
    Nick.

    Neil Pike wrote:
    Nick - there are plenty of other jdbc drivers :-
    Q. Where can I get a JDBC driver for SQL Server? Do Microsoft write one?
    Which is the best one?
    A. Microsoft doesn't supply a native JDBC driver for SQL Server,Actually, yes it does, now. This is a recent thing. It is a type-4 driver built by
    DataDirect/Merant.
    It is free, now in beta, will be GA soon, and is available for download from MS's sqlserver support
    pages.
    but it does
    offer a JDBC-to-ODBC bridge that allows Java programmers to access back-end
    data sources using available ODBC drivers. The Microsoft JDBC-ODBC bridge is
    part of the core set of classes that come with the Microsoft Virtual Machine
    (Microsoft VM) for Java. For more information, see
    http://www.microsoft.com/java/.
    Avoid the jdbc-odbc bridge for use with weblogic. The JDBC-ODBC bridge is buggy,
    unsupported, and not thread-safe.
    You can get 3rd party drivers, servers, and bridges from a variety of vendors
    and some free open-source ones as well.
    Which is the best one? As I don't use any of them I can't comment from
    personal experience. The two most commonly used seem to be WebLogic and
    OpenLink - and feedback on them seems good.
    Some of the sites listed below maintain up to date lists of all vendors.
    The full list that I know of are :-
    1. WebLogic : http://weblogic.beasys.com and http://www.weblogic.com. (type
    2, 3 or 4. SQL 6.5 and 7.0). Download type-4 driver direct from
    http://www.weblogic.com/download/downloadkona.html
    2. http://www.inetsoftware.de. JDBC Type 4 drivers for the Microsoft
    SQLServer 6.5, 7.0, and 2000. JDBC 1.22 driver to use with JDK 1.1x and a JDBC
    2.0 driver (i-net Sprinta) to use with Java 2 (JKD 1.2x).
    JDBC 1.22 : http://www.inetsoftware.de/English/produkte/jdbctreiber/Default.htm
    JDBC 2.0 : http://www.inetsoftware.de/English/produkte/jdbc2/Default.htm.
    3. http://www.openlinksw.com (http://www.openlinksw.co.uk)
    4. http://www.easysoft.com and http://beta.easysoft.com. JDBC/ODBC bridge.
    5. ftp://freetds.internetcds.com/pub/freetds_jdbc. Type 4 open-source driver
    that is designed to work with SQL Server 6.5 and Sybase 11.x
    6. http://java.sun.com/products/jdbc From this page you may search or browse
    the database of JDBC technology drivers that support the JDBC 2.x and JDBC 1.x
    APIs.
    7. http://lpv.home.texas.net (LpVodbc is a multi-threaded JDBC-ODBC database
    server that runs on Windows 95, 98, and NT platforms)
    8. http://www.avenir.net/products/jdbcdrivers.htm
    9. http://www.jturbo.com
    10. http://ourworld.compuserve.com/homepages/Ken_North/jdbcvend.htm is another
    list of JDBC drivers, servers, and vendors compiled by Ken North.
    11. http://www.sco.com/java/
    12. Merant. http://www.merant.com/datadirect/products/jdbc/sl50/overview.asp
    ===
    v1.19 2000.06.13
    Applies to SQL Server versions : All
    FAQ Categories : Connectivity
    Related FAQ articles : odbcunix
    Related Microsoft Kb articles : n/a
    Other related information : n/a
    Authors : Neil Pike

  • Does BPEL 10.1.2.0.2 work with SQL Server JDBC 2005 driver?

    Hi, wondering if any one has got 10.1.2.0.2 or .0.0 to work with the SQL Server 2005 jdbc driver. I have placed the sqljdbc.jar file in the OC4J_BPEL/applib/ directory in place of the previous 3 2000 drivers.
    I then modified the connections I had in oc4j-ra.xml so that the:
    driverClassName was com.microsoft.sqlserver.jdbc.SQLServerDriver instead of com.microsoft.jdbc.sqlserver.SQLServerDriver
    the connectionString was jdbc:sqlserver:/ instead of jdbc:microsoft:sqlserver/
    Forgot to add that after putting in the new driver and making the above changes we now get an error when running a process that connects to SQL Server that "Connection Refused"
    Aside, has anyone found any performance benefits between 2000,2005 or datadirect sql server drivers?
    Thank you,
    Ashley

    Hi
    Did u able to connect to SQL Server 2005 with jdbc driver.
    If yes could you please provide me the solution. I am also facing the same issue.
    Thanks

  • Changing Microsoft SQL Server jdbc encoding

    How do i override the encoding of strings using jdbc against a MsSQL database? In MysqL, i see there is an override in the connection URL ;characterSet=UtF-8
    How would i do the same for MsSQL?
    I am using jdbc to migrate data and i need to write utf-8 encoded data into varchar columns (I cannot use nvarchar for legacy reasons). My jvm file.encoding is set to CP1250, so if change that to utf-8 the data is stored correctly. Is there a different
    way to override the character encoding used by MsSQL jdbc drivers?
    I see CodePageOverride, SetStringsAsUnicode connection parameters, but they dont seem to help.

    Hello,
    SQL Server don't support UTF-8 encoding, only ASCII (varchar) and Unicode (nvarchar).
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for