Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2002
    Location
    INDIA
    Posts
    9

    Unanswered: Re: try out this opensource driver

    Originally posted by sdevaraj
    hi,
    try out this opensource driver for sql server. i found it quite good
    www.freetds.org.

    bye
    Hi !

    I tried using freeTDS but without any success can you please post a sample code using freeTDS driver that uses a CallableStatement and an OUT parameter ?

    Thanks !!

  2. #2
    Join Date
    Jan 2002
    Posts
    1
    You can download the new "SQL Server 2000 Driver for JDBC - BETA" on this link.

    http://www.microsoft.com/sql/downloads/2000/jdbc.asp

    bye
    Sevket Guenes

  3. #3
    Join Date
    Jan 2002
    Location
    INDIA
    Posts
    9
    Originally posted by guenes
    You can download the new "SQL Server 2000 Driver for JDBC - BETA" on this link.

    http://www.microsoft.com/sql/downloads/2000/jdbc.asp

    bye
    Sevket Guenes
    ]

    Hi Guenes !!

    I have tried the MS SQL JDBC Driver, but I get an exception when using OUT parameters !!! I have posted this problem already !!

    Any ideas ? Have u tried using SPs with OUT params using MS JDBC Driver ? If you have, can u please post the code ? Thanks !!!

  4. #4
    Join Date
    Jan 2002
    Location
    INDIA
    Posts
    9

    Cool OUT parameter problem solution !!!

    Hi !!

    I've solved the problem with OUT parameters !! This seems to be a problem with the ODBC stack of Microsoft !! Problem does not arise with other drivers !! This problem arises not only with the ODBC-JDBC driver but with apps like Visual Basic, VC++, etc with use MS ODBC stack !!

    The solution:

    Do not return Resultsets with OUTPUT parameters !! This does not work. The solution is to split the stored procedures into two procedures, one returning the OUTPUT parameter (if required) and another returning the resultset. Another workaround would be to include the OUTPUT parameter as another Column in the Resultset !! MS ODBC, JDBC client drivers do NOT allow you to return OUTPUT parameters with resultsets !! If you return either one of them alone no problem comes !!

    Hope this helps you people out there facing the same problem

    - madhan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •