Viewing 15 posts - 19,426 through 19,440 (of 22,219 total)
If it's doing a seek operation, but it's still slow, I'm inclined to look at index fragementation or out of date statistics. You do have automatic update of statistics enabled,...
"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
October 20, 2008 at 7:33 am
I've been working on the whole concept of unit testing TSQL for quite a while. At this point, I'm a bit more in Phil's camp. We do "unit testing" as...
"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
October 20, 2008 at 6:45 am
danschl (10/17/2008)
Specifies that the query is optimized for fast retrieval of the first number_rows. This is a nonnegative integer. After the first number_rows are returned, the query continues execution...
"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
October 20, 2008 at 6:02 am
Still, that's information. I'll set up a test database over the weekend and try a couple of things.
I have to wonder why on earth it would matter...
"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
October 17, 2008 at 12:30 pm
Interesting.
What query or queries did you run against it to get a recommendation?
I can't imagine that the database would matter, but the one I'm using is the 2008 version of...
"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
October 17, 2008 at 12:07 pm
Execution plan?
"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
October 17, 2008 at 11:10 am
It will treat them, as much as it can, as a whole. But the more complicated the query, the longer it will take the optimizer to find a good plan....
"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
October 17, 2008 at 10:53 am
I'm sorry, no, I can't.
The basic structures look a lot like what you see in the article.
I've got another article coming out in the SQL Standard this month that compares...
"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
October 17, 2008 at 10:50 am
What do the indexes on these tables look like? For example, because of this statement:
AND ap.ProcedureID <> ap1.ProcedureID
If ProcedureID is the leading edge of the index used in 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
October 17, 2008 at 9:17 am
That really sounds almost identical to the system we did with history & inprocess tables. While we migrated between the two, the structures and queries were pretty much as I...
"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
October 17, 2008 at 8:59 am
You're referring to the same table twice for some reason. This should be enough
SELECT FIRST_NAME, USER_ID
FROM EMPLOYEE
LEFT OUTER JOIN USER_PGM_AUTHORITY ON EMPLOYEE.FIRST_NAME = USER_PGM_AUTHORITY.USER_ID
WHERE FIRST_NAME = USER_ID
The listing of...
"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
October 17, 2008 at 8:32 am
Oops. Missed that entirely. Thanks Matt.
"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
October 17, 2008 at 8:25 am
The second versioned system we created had an Inprocess and a History storage. The Inprocess was a multi-day or even multi-week approval process. Once approved, the new version and 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
October 17, 2008 at 8:24 am
The areas I've been looking at are:
http://msdn.microsoft.com/en-us/library/ms144250(SQL.90).aspx
and
http://msdn.microsoft.com/en-us/library/ms180175(SQL.90).aspx
I'm just not sure how this translates the data on the screen.
I tried this, but it didn't work:
select N'????????' COLLATE Chinese_PRC_BIN as china
...
"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
October 17, 2008 at 8:07 am
The areas I've been looking at are:
http://msdn.microsoft.com/en-us/library/ms144250(SQL.90).aspx
and
http://msdn.microsoft.com/en-us/library/ms180175(SQL.90).aspx
I'm just not sure how this translates the data on the screen.
I tried this, but it didn't work:
select N'????????' COLLATE Chinese_PRC_BIN as china
...
"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
October 17, 2008 at 7:57 am
Viewing 15 posts - 19,426 through 19,440 (of 22,219 total)