Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Concurrent result sets: msg#00025

db.tds.freetds

Subject: RE: Concurrent result sets

Hi John,

Yes, I guess you could say that this is a limitation of the TDS protocol.
The protocol (at a very very simple level) works as follows:

1) client sends command to SQL server (a SQL statement for example)
2) SQL server sends results to client

Consider the case where the Client sends a SQL "select" to the server which
retrieves many rows.
The server sends back down the wire some result set meta data (describing
the result set - datatypes etc.), followed by all the results of the query.

When a client does a "fetch" of the results using whichever API (dblib with
dbnextrow, etc.) The client is reading the results from the wire.
In most cases (BIG caveat follows) the "fetch" of a data row does not
involve any further interaction with the server, it simply reads the next
chunk of data from the wire.
Microsoft sometimes refer to this interaction as a "firehose" - the client
is "hosed" with the results of the command, which it must then process.
When we talk about not allowing more than one active result set per
connection, what we're saying is that the client has to finish processing
the data that has been "hosed" down to it, before it can send another
command.

The BIG caveat I mentioned, and I notice that Freddy has referred to, is
cursors.
With cursor operations, the client can "fetch" data from the server in small
chunks.

So, the client would open a cursor, sending a query to the server.
Each subsequent "fetch" is then an atomic "call-response" with the server,
you tell the server how many rows to fetch, and the server sends just that
number of rows.

This leaves the connection open to take other commands, whilst the first
resultset is still "open".

Hope this explains things.


Bill

> -----Original Message-----
> From: John Anderson [SMTP:ardour@xxxxxxxxxxxx]
> Sent: 29 July 2003 10:09
> To: FreeTDS Development Group
> Subject: [freetds] Concurrent result sets
>
> This is somewhat off-topic, but I'm not sure where else I can find an
> answer to this question. urls welcome ;-)
>
> According to some MS docs I read, the win32 MS SQL Server ODBC driver
> does not allow more than one active result set per connection. If I
> understood correctly, this is a limitation of the underlying TDS
> protocol. Is this the case?
>
> All information gratefully received.
>
> thanks
> John
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS@xxxxxxxxxxxxxxxxx
> http://lists.ibiblio.org/mailman/listinfo/freetds


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation