RE: Slow response time from Java compared to Query Analyzer
From: Carb Simien [MSFT] (CarbinoS_at_online.microsoft.com)
Date: 11/22/04
- Previous message: Carb Simien [MSFT]: "Re: Padding using Type 4 Drivers"
- In reply to: Utkarsh Mohta: "Slow response time from Java compared to Query Analyzer"
- Next in thread: Utkarsh Mohta: "Re: Slow response time from Java compared to Query Analyzer"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Nov 2004 23:04:57 GMT
--------------------
| From: Utkarsh Mohta <umohta@mmm.com>
| X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
| Subject: Slow response time from Java compared to Query Analyzer
| Mime-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Message-ID: <efJqLaN0EHA.1308@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.sqlserver.jdbcdriver
| Date: Mon, 22 Nov 2004 13:02:14 -0800
| NNTP-Posting-Host: 67.41.129.85
| Lines: 1
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.sqlserver.jdbcdriver:6503
| X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver
|
| Hi,
| I have an application in Java WSAD 5.1 which uses the SQL Server
| database. I use the microsoft jdbc type 4 driver.
| The query execution time for a particular query is 800 MS from the java
| program while in SQL query analyzer it is 100 MS.
| I am using prepared statement in my query from Java.
|
| I am already setting the datasource parameter
| sendStringParametersAsUnicode to false
|
| Thanks
|
|
| *** Sent via Developersdex http://www.developersdex.com ***
| Don't just participate in USENET...get rewarded for it!
|
A bunch of questions:
1. What SelectMethod are you using in your connection string?
2. What is the query execution plan you observe in both scenarios if you
run SQL Profiler (Query Analyzer vs. JDBC)?
3. Can you execute the query in a standalone Java console app and see the
same results?
4. Does this problem occurs for all queries or just the one you are testing?
Please post your Java code, table schema, and indicate the number of rows
that exist in the table.
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.
- Previous message: Carb Simien [MSFT]: "Re: Padding using Type 4 Drivers"
- In reply to: Utkarsh Mohta: "Slow response time from Java compared to Query Analyzer"
- Next in thread: Utkarsh Mohta: "Re: Slow response time from Java compared to Query Analyzer"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|