Viewing 15 posts - 10,711 through 10,725 (of 22,213 total)
shahgols (6/20/2012)
Msg 536, Level 16, State 5, Line 1
Invalid length parameter passed to the SUBSTRING function.
I "fixed" it by adding the...
June 20, 2012 at 10:36 am
shahgols (6/20/2012)
Most excellent, thank you very much!BTW, when is your SS 2012 Performance Tuning book coming out?
Just got released today.
June 20, 2012 at 10:34 am
Procedure cache comes & goes to a degree. Sounds like you're fine. Personally, I'd turn on the ad hoc optimization. It doesn't hurt anything, but it can help a little.
June 20, 2012 at 8:18 am
Every query goes into the cache. Not just stored procedures or prepared queries (parameterized queries). All the ad hoc ones go there too (except when you've enabled 'Optimize for Ad...
June 20, 2012 at 6:35 am
I just see this self-referencing foreign key
ALTER TABLE [dbo].[AT] WITH CHECK ADD CONSTRAINT [FK_AT_AT] FOREIGN KEY([AT_id])
REFERENCES [dbo].[AT] ([AT_id])
It joins the same table to itself.
June 20, 2012 at 4:44 am
You can pull stuff straight out of the cache using dynamic management objects (DMO). The main couple that you're going to be interested in are sys.dm_exec_query_stats and sys.dm_exec_sql_text. Here's the...
June 20, 2012 at 4:39 am
matthew.peters (6/19/2012)
Thanks for the solutions, they're all great ideas, I'm looking to change the query structure first and see how that goes.
two questions
...
June 20, 2012 at 4:15 am
mvillegascuellar (6/19/2012)
Thanks guys for the quick response.These are queries not stored procedures.
Second I would like to capture both table hints and query hints.
Even with queries, they're stored in cache. You'll...
June 19, 2012 at 7:13 pm
Nothing wrong with Olla scripts at all. I do thing Michelle Ufford's are also worth a look[/url]. They're simpler and easier to deal with I think.
You might also want to...
June 19, 2012 at 3:44 pm
Duplicate question. Please direct all answers to this post.
Please don't cross-post in the different discussion groups. Most of them are read by the same people. It just leads to confusion.
June 19, 2012 at 3:38 pm
True. If the queries age out of cache you're in trouble. But, you'll get the most active queries immediately and you can capture more by rerunning the query against the...
June 19, 2012 at 3:16 pm
All the hints included in a query are stored with the execution plan, so you could query the plans, using XML, to pull the information out of the DMVs. There...
June 19, 2012 at 3:07 pm
It's xml_deadlock_report event, which is the deadlock graph.
June 19, 2012 at 11:08 am
Hmmm... A couple of points. I encrypted a proc and made a deadlock occur with it. I did get back the statement information as part of the XML deadlock graph...
June 19, 2012 at 9:04 am
Oh, you're pulling it from the extended event data. That's great. Well done. Still, doesn't change things. I'm not sure how encryption affects it. I'm going to try to set...
June 19, 2012 at 8:34 am
Viewing 15 posts - 10,711 through 10,725 (of 22,213 total)