Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Database Command Timeouts: Performance Differences between .NET and Management Studio

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: Wed, Jan 04, 2012, 3:11 PM


Overview

Why are there performance differences when a SQL statement is called from .NET app vs when the same call is made in Management Studio?

http://stackoverflow.com/questions/2785354/why-are-there-performance-differences-when-a-sql-function-is-called-from-net-ap/2785368#2785368

Resolution

  • Google "parameter sniffing SQL Server"
  • For a specific stored procedure, recompile it, then immediately run it in Management Studio with the parameters of interest.

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.