Unix Technical Forum

SQL_MAX_ROWS

This is a discussion on SQL_MAX_ROWS within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hello Does using SQLSetStmtOption with 'SQL_MAX_ROWS' option really help in improving performance and reducing network traffic? Have you noticed ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:34 PM
shree
 
Posts: n/a
Default SQL_MAX_ROWS

Hello

Does using SQLSetStmtOption with 'SQL_MAX_ROWS' option really help in
improving performance and reducing network traffic?
Have you noticed and drastic difference in performance by using this?

Shree


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:36 PM
Gert E.R. Drapers
 
Posts: n/a
Default Re: SQL_MAX_ROWS

This has the same effect as using SET ROWCOUNT inside your statement and is
a fairly bad general coding practice, which might speed up you client
program, but puts the burden on the server, because it will have to execute
the complete SQL statement and throw away the remaining results, which is a
waste of resources on the server side.

Writing more selective SQL statements, or using the TOP operator will give
you a better performance on both the client and the server.

GertD@SQLDev.Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2003 All rights reserved.

"shree" <shreelak@hotmail.com> wrote in message
news:OFgq5DxnDHA.2200@TK2MSFTNGP12.phx.gbl...
> Hello
>
> Does using SQLSetStmtOption with 'SQL_MAX_ROWS' option really help in
> improving performance and reducing network traffic?
> Have you noticed and drastic difference in performance by using this?
>
> Shree
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com