Click here to Skip to main content
Click here to Skip to main content

SQL Server: A Query Slow in SSMS, Fast in Application, WHY?

, 9 Jan 2013 CPOL
Today, a colleague asked me, why his simple selectquery is taking around 3000ms (3 Seconds) to execute while, same query is quite fast when executed from application. Answer is simple: SQL Server Management Studio use RBAR-Row By Agonizing Rowmethod to fetch rows and inform row by row to SQL Server

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

aasim abdullah
Team Leader CureMD
Pakistan Pakistan
Aasim Abdullah is working as SQL Server DBA with CureMD (www.curemd.com) based in NY, USA. He has been working with SQL Server since 2007 (Version 2005) and has used it in many projects as a developer, administrator, database designer. Aasim's primary interest is SQL Server performance tuning. If he finds the time, he like to sketch faces with graphite pencils.
Follow on   Twitter   Google+

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 9 Jan 2013
Article Copyright 2013 by aasim abdullah
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid