JDBC for Ms SQL 7.0

Hi,
We are trying use Oracle BI EE to report of a Ms SQL server v7.0 database.
When I try to connect to the database using the JDBC connection in the Admin section, I get a "Could not establish connection" error.
Is there a specific driver that would allow this connection to work?
Also I am using my Windows user name and password to connect to the database on the network, i do not have a separate MS SQL server account.(Could this be the problem?)
Any suggestions would be appreciated.
Thanks,
Anisha

AS a potential solution to this problem, we downloaded a generic JDBC driver for SQL server 7.
Also to connect to the sql server source db, a DB user was created which did not rely on windows authentication.
-A

Similar Messages

  • JDBC for MS SQL Server 2000

    Hi all, i'm newbie here and i have some problems doing with Java for my Final Project, just for my graduation...
    Here's the problem ...
    First i install the JDK 1.5 and MS SQL Server 2000. And then i also install JDBC for MS SQL Server 2000 sp3. Than i'm doing some experiments with JDBC, but its result error that i couldnt understand how to fixed it...
    I'm asking is JDBC for MS SQL Server 2000 sp3 doesn't support j2ee 1.5.0 and where i can find native driver jdbc for MS SQL Server 2000.
    Please help me....

    Than i'm doing some experiments with JDBC, but
    its result error that i couldnt understand This is the most important part of your post yet you don't seem to recognize it as such.
    Tell us what the error is. Not what you think it is. Exactlly what it says. And please provide a relevent, formatted snippet of code.

  • JDBC for Microsoft SQL Server 2000

    Hello,
    I have installed Microsoft SQL Server 2000 to establish a connection with JDK 1.4.1 and run the following code:
    import java.sql.Connection.*;
    import java.sql.*;
    public class Connect
    private java.sql.Connection con = null;
    private final String url = "jdbc:microsoft:sqlserver://";
    private final String serverName= "localhost";
    private final String portNumber = "1433";
    private final String databaseName= "cbi";
    private final String userName = "sa";
    private final String password = "";
    // Informs the driver to use server a side-cursor,
    // which permits more than one active statement
    // on a connection.
    private final String selectMethod = "cursor";
    // Constructor
    public Connect(){}
    private String getConnectionUrl()
    return url+serverName+":"+portNumber+";databaseName="+databaseName+";selectMethod="+selectMethod+";";
    private java.sql.Connection getConnection()
    try
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    con = java.sql.DriverManager.getConnection(getConnectionUrl(),userName,password);
    if(con!=null)
    System.out.println("Connection Successful!");
    catch(Exception e)
    e.printStackTrace();
    System.out.println("Error Trace in getConnection() : " + e.getMessage());
    return con;
    Display the driver properties, database details
    public void displayDbProperties()
    java.sql.DatabaseMetaData dm = null;
    java.sql.ResultSet rs = null;
    try
    con= this.getConnection();
    if(con!=null)
    dm = con.getMetaData();
    System.out.println("Driver Information");
    System.out.println("\tDriver Name: "+ dm.getDriverName());
    System.out.println("\tDriver Version: "+ dm.getDriverVersion ());
    System.out.println("\nDatabase Information ");
    System.out.println("\tDatabase Name: "+ dm.getDatabaseProductName());
    System.out.println("\tDatabase Version: "+ dm.getDatabaseProductVersion());
    System.out.println("Avalilable Catalogs ");
    rs = dm.getCatalogs();
    while(rs.next())
    System.out.println("\tcatalog: "+ rs.getString(1));
    rs.close();
    rs = null;
    closeConnection();
    else
    System.out.println("Error: No active Connection");
    catch(Exception e)
    e.printStackTrace();
    dm=null;
    private void closeConnection()
    try
    if(con!=null)
    con.close();
    con=null;
    catch(Exception e)
    e.printStackTrace();
    public static void main(String[] args) throws Exception
    Connect myDbTest = new Connect();
    myDbTest.displayDbProperties();
    but, I received the error that ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver, No active Connection.
    I added the 3 .jar files msbase.jar,mssqlserver.jar and msutil.jar to the System variables but it is not working. Is there any syntax for adding these .jar files to the System Variables?
    Please, help me and give me the solution for establishing the connection and loading the driver class. If I am doing anything wrong then please, tell me the right step.
    I am developing a project on Java and I have very little time left to accomplish it. Please help me.
    Thankyou.

    I had already given the .jar files to the User variables and System Variables but the driver class is still not loading. I had simply given the .jar file name for instance, msbase.jar;mssqlserver.jar;msutil.jar and also tried the path of .jar files i.e., C:\Microsoft SQL Server\-----------\lib\msbase.jar;C:\-------------lib\mssqlserver.jar;C:\----------------\lib\msutil.jar; but, both ways are not working. When I installed the MS SQL Server 2000 then in the lib folder, the 3 JAR files were not installed then, I downloaded a driver for MS SQL Server 2000 Driver for JDBC sp2, then, the JAR files were installed. Then, I copied those files to the lib folder of MS SQL Server and gave that path to the User and System Variables but it didn't work then I gave the original path of files where they are installed i.e., of the Driver's path which I downloaded from Microsoft but still now, my problem is not solved. Please help me.

  • JDBC for microsoft Sql server giving erro

    hello,
    I am getting an class not found exception when i am trying to load the JDBC Driver for microsoft SQL Server.
    //Driver d = (Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    // Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); // 2005 version
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); // 2000 version
    I have tried all these 3 methods still i am getting this error
    C:\Documents and Settings\rshekdar>java -jar D:\NetBeansProjects\HelloWorldApp\dist\HelloWorldApp.jar
    Hello World!
    exception caught in class for namecom.microsoft.jdbc.sqlserver.SQLServerDriver
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at helloworldapp.Main.main(Main.java:28)
    here is my classpath
    C:\Documents and Settings\rshekdar>set classpath
    CLASSPATH=.;C:\Program Files\Sybase\Jaguar CTS 3.5\html\classes;C:\Program Files\Sybase\Jaguar CTS 3.5\java\classes;C:\Program Files
    \Sybase\Shared\PowerBuilder\classes.zip;C:\Program Files\Java\jdk1.6.0_10\lib;C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip;C
    :\Program Files\Java\jdk1.6.0_10;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Mic
    rosoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
    can anyone tell me whats wrong here please i have tried all that i could possibly do. I cannot see anything wrong here, maybe a fresh set of eyes could. Any help given would be highly appreciated.

    Sorry, I didn't see your first first post of your CLASSPATH... I lost in the stack-trace (silly me ;-)
    C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;
    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;Yep, They look like they might be Sequel JDBC drivers to me... So open each of those jars in your zip-utility (winzip or whatever) and see if any of them contain the missing class: com.microsoft.jdbc.sqlserver.SQLServerDriver OR anything which looks similar... Are you certain the 2K and 05 class names are the same?
    And If the required class does exist then Q: Does java -jar use the CLASSPATH environment variable at all? ... If I was implementing it wouldn't... too "tacky"... I'd respect the classpath in the manifest, and an explicit -cp switch, but I wouldn't trust the system environment variable to point me to the "correct" required classes... not in a pink fit.
    I hope that helps some... these problems can be just sooooo frustrating!
    Cheers. Keith.

  • Cannot establish connection - JDBC driver for MS SQL server 2000

    Hi,
    We are facing problems in connecting to SQL server 2000.
    We have installed the latest version of the driver from followin link and following
    https://websmp108.sap-ag.de/msplatforms    > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
    We have given the following entries in our communication channel:
    JDBC Driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection:  jdbc:sqlserver://<SQLserver IP>:1433;databaseName=production_info
    Please let us know the procedure to find if the JDBC driver for SQL 2000 is installed from our SAP XI.
    ERROR DETAILS:
    Error during database connection to the database URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info': SAPClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver'
    Please help.
    Regards,
    Rehan

    Hi Chris,
    We have used the same because we have downloaded the driver from following location
    https://websmp108.sap-ag.de/msplatforms ;   > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
    I have tried with both "com.microsoft.jdbc.sqlserver.SQLServerDriver"; and "com.microsoft.sqlserver.jdbc.SQLServerDriver";, but still I am facing the same error.
    Service market place has given the driver as "JDBC Driver for MS SQL Server (Version 3.70.10)", is there a way to find out if it is for 2000 or 2005?
    Thanks for your reply.
    Regards,
    Rehan

  • JDBC Receiver adapter  configuration for MS SQL

    Hi friends,
    I have configured receiver jdbc adapter for MS SQL database which are as follows:
    jdbc driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
    connection: jdbc:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB
    In communcation channel i am getting following error:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB': UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver (Unsupported major.minor version 49.0)
    Kindly tell me what is the root cause of the issue.
    Renu.

    Hi Renu,
    Try foll. 2 steps:
    1) Add the IP address of the server(USLABWDB01) to the host file of your PI server, as you are connecting using Hostname.
    2)Try the following connection strings:
        jdbc driver : com.microsoft.jdbc.sqlserver.SQLServerDriver
        connection: jdbc:microsoft:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB
       Here, 'microsoft' word is added in connection string.
    Try using this, it should work.
    -Tanaya.

  • Can you confirm for me please? - jdbc to pl/sql record types

    Hi, I was hoping somebody could confirm the following please? I've been researching this in the Oracle JDBC docs and the Internet, but would feel more comfortable if somebody would confirm my findings.
    I have a 10g database pl/sql procedure that takes a pl/sql record type as both IN and OUT parameter. I'm not allowed to modify this legacy procedure, though I may create new supporting code.
    My research shows there is no inherit support in JDBC for Oracle pl/sql record types as per the Oracle JDBC docs.
    As a solution, if the procedure only returned a record type, my understanding is I could create a ref cursor in pl/sql, as well as a wrapper procedure that calls my original procedure, and returns the record type through the ref cursor. This could then be used by my JDBC code as JDBC supports ref cursors as a return type.
    However in my case, as the record type is both an IN and OUT parameter of my procedure, my research so far says JDBC support for ref cursors does not allow the writing of value to the ref cursor to be submitted back to the database. Is this correct?
    If this limitation exists, as such the better (and only?) solution is to create a shadow pl/sql procedure that takes all the record elements as separate IN OUT parameters and then create a private record based on the record type and pass it to the original procedure.
    Is my research here correct? Any help appreciated.
    Thanks & regards,
    CM.

    Chris,
    As far as I know, PL/SQL record types are not supported in JDBC.
    I believe you may be able to use TopLink.
    I think Kuassi Mensah may have some examples in his book Oracle Database Programming.
    Alternatively, you could use an Oracle object instead of a PL/SQL record.
    This would be similar to what you are suggesting except that instead of a ref cursor, you would transfer the PL/SQL record to an Oracle object.
    Good Luck,
    Avi.

  • How to establish a trusted connection with JDBC for SQL SERVER 2000

    Hi!I am using jdk 1.4 and eclipse 3.3.
    I create a servlet in eclipse with in-build tomcat.
    When I run it ,it was working perfectlly has it was suppose to work.
    In this servlet I connect to a sql 2000 database using jdbc-odbc bridge driver.
    But when I tried to deploy the servlet on tomcat 5.5 manully on the same machine ,it gave me error saying
    [Microsoft][SQLServer JDBC Driver][SQLServer]Login failed
    for user 'sa'
    I searched around some post and found that ok ,I need trusted connection
    But I have 2 Questions
    1). Why was in eclipse I was able to connect to the SQL server and why not in the servlet which I deployed manully on tomcat.
    2). How do I create a trusted connection with JDBC for SQL server 2000
    Thnaks for your help in advance.

    Hi! duffymo ,QussayNajjar ,dvohra09 .
    Thank for help.
    The ideas are really great.
    I am trying generate reports for my company.
    When I used eclipse the code worked perfectly.
    below is code which I used
    out.println("Calling For Class Name<br>");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    out.println("Calling For Class Name success Now calling database <br>");
    1). jdbcConnection = DriverManager.getConnection("jdbc:odbc:SQLJasper");
    2). jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=ServerName;Database=tempdb");
    3). jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=ServerName;Database=tempdb","UID=UserName","Password=Password");
    out.println("connecting to database success<br>");
    I had tried to connect the database using this three way.
    In 1st I tried using DSN name .
    Next 2 self explainer for expert like you.
    I used to 2nd variant to connect in eclipse and it worked fine.
    I not an expert in java ,I just doing some research on jasperReport.
    My best guest is that eclipse is using some library files of which I have no clue.
    Thank's for your help,I appretiate it.
    Once again thank a billion.
    Sorry for the messy righting.

  • Jdbc Driver for MS SQL Server

    i want the JDBC Driver for MS SQL Server.
    is it available free?
    thanks in advance

    Install the SQL Server 2000 Driver for JDBC Service Pack 3.
    http://www.microsoft.com/downloads/details.aspx?FamilyID=07287b11-0502-461a-b138-2aa54bfdc03a&displaylang=en
    The SQL Server JDBC driver JAR files msbase.jar, mssqlserver.jar and msutil.jar get installed in the C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib directory.

  • Jdbc paging for ms sql server 2000

    I want to do paging in jdbc.As ms sql server 2000 does not support limit clause, so it is difficult for me to do paging.please guide me.

    this forum is for specific problems you can't work out on your own, in your case you need to do some basic research on your own with Google and if you hit a snag, then post

  • SQLDeveloper 3.1 EA3 -- error installing JTDS JDBC Driver for Microsoft SQL

    After installing sqldeveloper64-3.1.06.82-no-jre.zip I get an error when trying to add the "JTDS JDBC Driver for Microsoft SQL Server" extension.
    The error returned is an invalid URL.
    The URL is http://download-llnw.oracle.com/otn-pub/sqldeveloper/oracle.sqldeveloper.thirdparty.drivers.sqlserver.58.17.zip

    Hi Chris,
    A bug was logged for this a few days ago:
    Bug 13547400 - CHECK UPDATES FAILS DUE TO SERVER RETURNED HTTP RESPONSE CODE: 400
    This is similar to another bug which has already been fixed (not a product bug, just a bad URL in an OTN web page):
    Bug 13530787 - 3.1 EA2: FORUM: CHECK FOR UPDATE HAS BAD URL FOR CVS
    3.1EA2 Sqldeveloper Updates Fail to install
    So I imagine yours will get fixed soon.
    Regards,
    Gary
    SQL Developer Team

  • Does BEA have JDBC 2.0 compliant drivers for MS-SQL 7?

    Does BEA have JDBC 2.0 compliant drivers for MS-SQL 7?Thanks in advance for your reply.

    No. You might want to look at the MERANT JDBC drivers. They might help.
    Shiva.
    Anil Nair wrote:
    Does BEA have JDBC 2.0 compliant drivers for MS-SQL 7?Thanks in advance for your reply.

  • Problems upgrading to JDBC 5.1 driver for MS SQL Server

    Hi,
    I recently upgraded to the Weblogic JDBC 5.1 driver for MS SQL Server and I am
    now receiving exceptions in my application when attempting to execute a prepared
    statement. I was previously using the Weblogic JDBC 4.x driver for MS SQL Server
    and everything was working fine without any problems. For some reason I am receiving
    a java.lang.CloneNotSupportedException using the new driver. I am using the setLong(),
    setString(), and setObject() methods of the PreparedStatement and then attempting
    to execute. The application code has not changed, so it seems that something
    has changed in the new driver implementation. Has anyone else had this problem
    or know a work around? Here is a snippet of the actual exception:
    S2 [09/30/02 10:46]: java.sql.SQLException: java.lang.CloneNotSupportedException
    : Error in TdsParameter clone: cannot make duplicate of Stream object
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsPreparedInputStream
    .<init>(TdsPreparedInputStream.java:99)
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.doEscapeP
    rocessing(TdsStatement.java:1317)
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.execute(T
    dsStatement.java:173)
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
    date(TdsStatement.java:94)
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
    date(TdsStatement.java:1438)
    Thanks, Nadeem.

    Nadeem Khokhar wrote:
    Is it true that the Weblogic jDriver for MS SQL Server is deprecated? That's the
    message that I got from BEA Support and here is the link they sent:
    http://edocs.bea.com/wls/docs70/mssqlserver4/install_jmsq4.html#415356
    It recommends using Microsoft's JDBC driver instead. Any thoughts on this? From
    what I understand and what I have read on the newsgroups, the Microsoft JDBC driver
    is still quite buggy and has numerous problems.
    Thanks, Nadeem.It is deprecated, but still supported, and is more recent in the download than the one in
    the 5.1 server. We do recommend MS's driver, or that of www.inetsoftware.de. The
    MS driver is fairly stable now, and may certainly have bugs, as does our driver. The MS
    driver is good because it is not deprecated, and supports JDBC 2.0 etc.
    Joe
    >
    >
    Joseph Weinstein <[email protected]> wrote:
    What version of 5.1? You should be running with the latest service pack.
    If that doesn't help, please download the latest 5.1 driver from our
    site, and
    make sure it's in the weblogic.classpath ahead of all other stuff, by
    editting the
    startWeblogic script.
    Joe
    Nadeem Khokhar wrote:
    Hi,
    I recently upgraded to the Weblogic JDBC 5.1 driver for MS SQL Serverand I am
    now receiving exceptions in my application when attempting to executea prepared
    statement. I was previously using the Weblogic JDBC 4.x driver forMS SQL Server
    and everything was working fine without any problems. For some reasonI am receiving
    a java.lang.CloneNotSupportedException using the new driver. I amusing the setLong(),
    setString(), and setObject() methods of the PreparedStatement and thenattempting
    to execute. The application code has not changed, so it seems thatsomething
    has changed in the new driver implementation. Has anyone else hadthis problem
    or know a work around? Here is a snippet of the actual exception:
    S2 [09/30/02 10:46]: java.sql.SQLException: java.lang.CloneNotSupportedException
    : Error in TdsParameter clone: cannot make duplicate of Stream object
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsPreparedInputStream
    <init>(TdsPreparedInputStream.java:99)
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.doEscapeP
    rocessing(TdsStatement.java:1317)
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.execute(T
    dsStatement.java:173)
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
    date(TdsStatement.java:94)
    S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
    date(TdsStatement.java:1438)
    Thanks, Nadeem.

  • Free JDBC 4.0 driver for Microsoft Sql Server database

    Is there any free JDBC 4.0 driver for Microsoft Sql Server database? The jTDS driver is JDBC 3.0 driver. http://jtds.sourceforge.net/

    Sooooooo...
    what's wrong with the driver provided by Microsoft themselves? Which is JDBC 4. And free.

  • Passing parameters from java jdbc to pl/sql

    I’m calling stored procedures from java jdbc… but looking for nicer interfaces in terms of passing data. Has anyone come up with a good way to pass data from java jdbc to pl/sql without passing a million parameters? I’m thinking here of some type of structure like pl/sql rowtype or table index type or something else. Has anyone tried to create typed objects in oracle databases and access them from java?
    Thanks, Patrick Caldwell

    Hi Patrick,
    Yes, I have created an Oracle object type, which I successfully returned to a java class, from a PL/SQL stored function, using JDBC. Environment was J2SE 1.3.1, with Oracle 8.1.7.4 on SUN [sparc] Solaris 7 with Oracle's JDBC (thin) driver. It was a while ago, so I don't remember the details very clearly, but I recall being able to figure it out quite easily using the Oracle documentation and the sample code available at Oracle's Technet Web site.
    Hope this has helped you.
    Good Luck,
    Avi.

Maybe you are looking for