Viewing 15 posts - 19,441 through 19,455 (of 22,226 total)
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
You need to modify the code page in your query window to appropriately display the data. I'm actually not entirely sure how to do that.
"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:44 am
We built a similar system. I outline the design and our tests in this article [/url]at Simple-Talk. To summarize, we create a version table, to which all the other tables...
"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 6:21 am
Did you update all the statistics after the migration?
Generally, there are exceptions, I've found SQL Server 2005 to be a bit faster, after some adjustments. You may want to check...
"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 6:15 am
You should just go through and update all the statistics, everywhere. Statistics are pretty different from 7 to 2000 and even more so from 2000 to 2005.
You'll want 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
October 17, 2008 at 6:08 am
Nothing really. The N is meant for use with string constants, the way you used it. The CAST is meant to work with just about any structural object that you...
"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 6:02 am
Couldn't you ensure the distribution this way?
WHEN (DATEDIFF(DAY, [Date on Waiting List], GETDATE()) / 7) BETWEEN 4 AND 8
THEN 2
And why aren't you using WEEK (or ww or...
"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 6:00 am
There's no real way to know this. If the same database you have in production was on a machine, all by itself, with no users, it might take 1 minute...
"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 5:55 am
jaggity (10/16/2008)
"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 5:50 am
Viewing 15 posts - 19,441 through 19,455 (of 22,226 total)