Re: Bug with Multiple Result Sets?
- From: Wes Clark <WesClark@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Feb 2006 16:16:28 -0800
If you look at my posting from before, I already recoded my test program to
properly detect update counts as well as result sets. If DBCC is returning
update counts, then why do the JTurbo driver, the jTDS 1.0 driver, and the MS
2000 JDBC driver, when running the same commands against the same database,
not return them? I would need to define and execute a stored procedure
which actually does return an update count to demonstrate the other drivers
can handle update counts. The difference in behavior is not the 2005 SQL
Server engine, but the driver. Here are my results running your program with
all the drivers:
Class being loaded com.microsoft.sqlserver.jdbc.SQLServerDriver
URL being used:
jdbc:sqlserver://localhost:2005;selectMethod=direct;databaseName=AdventureWorks;user=sa;password=***
STAT_HEADER Results
Name: PK_Address_AddressID
Update count is: 1
DENSITY_VECTOR Results
Columns: AddressID
Update count is: 1
HISTOGRAM Results
RANGE_ROWS: 0
RANGE_ROWS: 1062
RANGE_ROWS: 95
RANGE_ROWS: 18431
RANGE_ROWS: 21
Update count is: 5
Update count is: 0
Class being loaded com.microsoft.jdbc.sqlserver.SQLServerDriver
URL being used:
jdbc:microsoft:sqlserver://localhost:2005;selectMethod=direct;databaseName=AdventureWorks;user=sa;password=***;
STAT_HEADER Results
Name: PK_Address_AddressID
DENSITY_VECTOR Results
Columns: AddressID
HISTOGRAM Results
RANGE_ROWS: 0
RANGE_ROWS: 1062
RANGE_ROWS: 95
RANGE_ROWS: 18431
RANGE_ROWS: 21
Class being loaded com.newatlanta.jturbo.driver.Driver
URL being used:
jdbc:JTurbo://localhost:2005/AdventureWorks/user=sa/password=***
STAT_HEADER Results
Name: PK_Address_AddressID
DENSITY_VECTOR Results
Columns: AddressID
HISTOGRAM Results
RANGE_ROWS: 0
RANGE_ROWS: 1062
RANGE_ROWS: 95
RANGE_ROWS: 18431
RANGE_ROWS: 21
Update count is: 0
Class being loaded net.sourceforge.jtds.jdbc.Driver
URL being used:
jdbc:jtds:sqlserver://localhost:2005/AdventureWorks;user=sa;password=***
STAT_HEADER Results
Name: PK_Address_AddressID
DENSITY_VECTOR Results
Columns: AddressID
HISTOGRAM Results
RANGE_ROWS: 0
RANGE_ROWS: 1062
RANGE_ROWS: 95
RANGE_ROWS: 18431
RANGE_ROWS: 21
Notice there are no update counts reported from the other drivers.
"Evan T. Basalik (MSFT)" wrote:
I just got some feedback from DEV and it looks like this is not a bug. Instead, what you are seeing is by-design. The problem is that dbcc returns an update.
count after each result set. Therefore, when you check getMoreResults, it properly shows false b/c the next item is an update count, not a result set.
- References:
- Re: Bug with Multiple Result Sets?
- From: Angel Saenz-Badillos[MS]
- Re: Bug with Multiple Result Sets?
- From: Evan T. Basalik (MSFT)
- Re: Bug with Multiple Result Sets?
- From: Evan T. Basalik (MSFT)
- Re: Bug with Multiple Result Sets?
- Prev by Date: Re: Connect client to server
- Next by Date: Re: Connect client to server
- Previous by thread: Re: Bug with Multiple Result Sets?
- Next by thread: Re: Bug with Multiple Result Sets?
- Index(es):
Relevant Pages
|
Loading