RE: MS JDBC Rowset size doubled ?

From: Carb Simien [MSFT] (CarbinoS_at_online.microsoft.com)
Date: 12/08/04

  • Next message: Pete Hollands: "RE: Kinda urgent Connection error messages"
    Date: Wed, 08 Dec 2004 00:14:03 GMT
    
    

    --------------------
    | From: bob@lifeasbob.com (Bob Horkay)
    | Newsgroups: microsoft.public.sqlserver.jdbcdriver
    | Subject: MS JDBC Rowset size doubled ?
    | Date: 1 Dec 2004 07:47:36 -0800
    | Organization: http://groups.google.com
    | Lines: 23
    | Message-ID: <e310ee8f.0412010747.62bc09ac@posting.google.com>
    | NNTP-Posting-Host: 168.137.0.16
    | Content-Type: text/plain; charset=ISO-8859-1
    | Content-Transfer-Encoding: 8bit
    | X-Trace: posting.google.com 1101916056 12601 127.0.0.1 (1 Dec 2004
    15:47:36 GMT)
    | X-Complaints-To: groups-abuse@google.com
    | NNTP-Posting-Date: Wed, 1 Dec 2004 15:47:36 +0000 (UTC)
    | Path:
    cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwi
    x.com!newsfeed.cwix.com!news.maxwell.syr.edu!postnews.google.com!not-for-mai
    l
    | Xref: cpmsftngxa10.phx.gbl microsoft.public.sqlserver.jdbcdriver:6521
    | X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver
    |
    | I'm a SQL Server DBA, doing some profiling and tuning on a SQL Server
    | database that is being accessed by a JDBC Driver.
    |
    | I am often seeing statements executed in the format of:
    |
    | Select Field1, Field2, Field3, * From TableA
    |
    | The problem with this is that the Developers explicitely listed the
    | fields in the select statement and some other process is appending the
    | *. This is doubling the row size returned.
    |
    | This is a MS JDBC Driver, running under IBM Websphere access SQL
    | Server.
    |
    | The developers claim they are not adding the asterisk and that SQL
    | Server is. I've never seen SQL Server add an asterisk to user query.
    | We are assuming that is the JDBC Driver.
    |
    | Unfortunately the developer is of course an off-site contractor, so
    | I'm reaching for any help before I call Microsoft PSS for support.
    |
    | Thanks
    | Bob Horkay
    |

    One possible cause is if the client code requests an updatable resultset.
    If you can check the Java code to see if CONCUR_UPDATABLE appears, then it
    would explain why the asterisk is present in the Profiler trace. The
    driver appends the * to the select list so that it can use a value for
    every column in the where clause it generates for the UPDATE statement it
    sends to the database to perform the actual update. It does the updates
    this way in order to uphold as much data integrity as possible.

    Carb Simien, MCSE MCDBA MCAD
    Microsoft Developer Support - Web Data

    Please reply only to the newsgroups.
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Are you secure? For information about the Strategic Technology Protection
    Program and to order your FREE Security Tool Kit, please visit
    http://www.microsoft.com/security.


  • Next message: Pete Hollands: "RE: Kinda urgent Connection error messages"

    Relevant Pages

    • RE: JDBC and handling of errors
      ... connect to an SQL Server and execute some stored procedures. ... JDBC driver. ... If I use our MS SQL Server 2000 Driver for JDBC driver as below, ...
      (microsoft.public.sqlserver.clients)
    • Re: FREETEXTTABLE returns no result for a complex freetext only on JDB
      ... The SQL Server 2000 JDBC driver isn't supported against SQL Server 2005. ... > vacant lot where their employee welfare facilities which had given way ...
      (microsoft.public.sqlserver.jdbcdriver)
    • MS JDBC Rowset size doubled ?
      ... I'm a SQL Server DBA, doing some profiling and tuning on a SQL Server ... This is a MS JDBC Driver, running under IBM Websphere access SQL ... The developers claim they are not adding the asterisk and that SQL ...
      (microsoft.public.sqlserver.jdbcdriver)
    • Re: sendStringParameterAsUnicode: How to insert unicode data corre
      ... After checking with Microsoft it turns out that transmitting Unicode ... requires a change in the data format sent to the JDBC Receiver channel. ... We have contacted SAP and Microsoft. ... We are using SAP XI and connecting it to SQL Server 2005 using JDBC. ...
      (microsoft.public.sqlserver.jdbcdriver)
    • RE: BUG: JDBC connection disconnected, cant reconnect
      ... we've replaced the MS JDBC driver with jTDS JDBC driver, ... There is really nothing the driver can do that will take down SQL Server. ... Our problem is that the JDBC connection running on the localhost ... and then we can't reconnect to the database ...
      (microsoft.public.sqlserver.jdbcdriver)