Viewing 15 posts - 46,306 through 46,320 (of 49,571 total)
You don't need an extended procedure for that. You should also not be considering writing extended procs unless you have a very good grasp of C++. It's waaay easy to...
June 9, 2008 at 1:02 pm
Set up a profiler trace with the events you want. The default template is mostly good (though you may want to check TextData for either RPC completed or SQLBatch Completed....
June 9, 2008 at 12:54 pm
You've run into a classic case of parameter sniffing (or more accurately, the lack thereof). See this article[/url] for some details on the cause.
Recommendation: Split into 2 stored procs. Pass...
June 9, 2008 at 12:49 pm
I don't have the time right now to do a full analysis, but one thing I noticed from the exec plan is that the row estimates are off. Way off.
Estimated...
June 4, 2008 at 2:42 am
It's how scalar functions show up in exec plans. Very irritating.
June 4, 2008 at 2:32 am
Please post the code of the view, the table and index definitions and the execution plan (in xml formal, zipped and attached to a post)
June 4, 2008 at 2:30 am
Change your app so that it does use stored procedures and restrict table access. You can check for key words, but it's not a sure thing. There are ways to...
June 3, 2008 at 6:52 am
One example he gave to me a while back on this subject concerned TOP and ROWCOUNT.
UDFs are my pet peeve in execution plans at the moment. I wish there was...
June 3, 2008 at 6:42 am
How many rows do the 2 queries return?
June 3, 2008 at 5:51 am
I've seen cases where the batch % is way off, but IME it hasn't been the norm. Maybe I'm just working with simpler queries
Generally I've found that odd joins (cross...
June 3, 2008 at 5:44 am
SQL Server Performance Tuning Distilled (by Sajal Dam) is a good book. It's for SQL 2000, not 2005, but is still a very worth while read. The principles of good...
June 3, 2008 at 5:37 am
Run a checkDB on that database, see if you have any other errors. How old is your most recent backup?
You said the databases were fine after the move off the...
June 3, 2008 at 4:51 am
george sibbald (6/3/2008)
so surely /3Gb switch ok up to 16GB RAM, remove for anything over that.:)
Nope. Even under 16GB you risk starving the kernal of memory.
Personally I would not...
June 3, 2008 at 1:28 am
Make sure the app is pointing at the right database.
Make sure that you don't have 2 copies of the procedure in different schemas
June 3, 2008 at 12:32 am
Select into isn't limited to coming from a single table. Imagine something like this (example from BOL)
SELECT c.FirstName, c.LastName, e.Title, a.AddressLine1, a.City, sp.Name AS Province, a.PostalCode
INTO dbo.EmployeeAddresses
FROM Person.Contact AS c
JOIN...
June 3, 2008 at 12:27 am
Viewing 15 posts - 46,306 through 46,320 (of 49,571 total)