Viewing 15 posts - 19,531 through 19,545 (of 22,219 total)
It sounds like parameter sniffing. Try adding WITH RECOMPILE to the procedure and then run it again. That won't help tune it, but it will prevent you getting a bad...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 29, 2008 at 11:09 am
If it's ASAP, look it up in Books Online. That's what the documentation is for.
It really depends on whether or not you're calling a scalar or table valued function.
A scalar...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 29, 2008 at 11:06 am
Funny that we both fixed the JOIN as well as putting in the IF.
Well, normally I'd say to stay out of my head, but since you posted first, I'll try...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 29, 2008 at 9:11 am
jlp3630 (9/29/2008)
DECLARE @brand_id INT;
SET @brand_id =...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 29, 2008 at 9:01 am
Exactly right.
It also brings up nullability, which should be used as sparingly as you can.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 29, 2008 at 8:37 am
Oh, and files and file placement. Minimum, split the data and the log to two different drives. After that, it depends on the types of drives you're working with, the...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 29, 2008 at 8:15 am
Unless there's a very good reason for it, most tables should have a clustered index. Be sure that, even if the database is normalized, it has appropriate primary and foreign...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 29, 2008 at 8:11 am
I'd suggest running a trace while the events are occurring. Collect the data out to a file. You can then import it back into a table on a different server...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 29, 2008 at 7:33 am
The individual users are validated through AD and the group they belong to. So we only have to give access to the group. It is a trusted windows connection.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 28, 2008 at 4:24 am
You're just more diligent than I am. If I can't get it installed, I toss my hands up & move on. Since I've started working exclusively on virtuals when I'm...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 28, 2008 at 4:17 am
My most recent set of beta testing is with the Visual Studio Team System Database Edition. They've got a new release coming out to support SQL Server 2008, but it's...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 26, 2008 at 9:31 am
Is there a question in there somewhere?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 26, 2008 at 8:34 am
A view is just a query. They can be somewhat optimized, but since they usually don't include much in the WHERE clause, there's little that can be done. So, if...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 26, 2008 at 8:33 am
You might want to get the developers to put their database structures into source control. That way a given development database can be rebuilt from scratch. Further, as they start...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 26, 2008 at 8:27 am
We connect AD groups to roles within a database and assign priveleges to the role. It works really well. We just don't get into managing individual logins.
The major shortcoming to...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 26, 2008 at 8:25 am
Viewing 15 posts - 19,531 through 19,545 (of 22,219 total)