Viewing 15 posts - 2,836 through 2,850 (of 8,416 total)
Probably a deadlock.
Using a NOLOCK hint (also known as READ UNCOMMITTED) allows you to read 'dirty' data - data that has not been committed yet. You saw rows that...
July 29, 2010 at 3:39 am
Waiting for the kettle to boil, so I have a minute to spare...
CREATE TABLE dbo.Test
(
...
July 29, 2010 at 3:33 am
Very slight variation on the theme:
SELECT P.FirstName,
P.LastName,
PayPeriod = ISNULL(TA.PayPeriod, '?')
FROM ...
July 29, 2010 at 3:16 am
sporoy (7/29/2010)
Estimated CPU Cost w/o hint: 83, w/hint:1,56
Operator Cost w/o hint: 0.0051, w/hint: 0.01
So optimizer considers only operator cost? Do you...
July 29, 2010 at 2:58 am
Without a doubt best to avoid the cursor here, *but* there are ways to achieve the task if that's not possible for some reason.
Option 1 is to FETCH from the...
July 29, 2010 at 2:25 am
Tara-1044200 (7/28/2010)
any idea why this would use temp table?
Probably due to the settings (like Collation Compatible, Use Remote Collation) you specified on the linked server. Please post an estimated...
July 29, 2010 at 2:05 am
Just to clarify about the ORDER BY: the index on SentTarih is already in sorted order (by definition) so no explicit sort is required.
Your clustered index is in a different...
July 29, 2010 at 1:38 am
sporoy (7/29/2010)
Paul you are right, by using order by, optimizer chooses to use the index, why is that behaviuor?
Using ORDER BY, if the query optimiser chose to scan the table,...
July 29, 2010 at 1:26 am
The simple answer is it is because the optimiser estimates that a table scan would be cheaper.
Try the same query just SELECTing col1, instead of all columns (*), removing the...
July 29, 2010 at 12:39 am
The statistics that were considered interesting to the query optimiser are stored with the compiled plan, but this information is not exposed to users.
The real question is, why do you...
July 28, 2010 at 7:01 am
You're welcome.
July 28, 2010 at 6:56 am
But my favourite would probably be this:
DECLARE @SampleData
TABLE (
id INTEGER NOT...
July 28, 2010 at 6:20 am
There are many different ways to write a query to do this, here's a popular one:
DECLARE @SampleData
TABLE (
id ...
July 28, 2010 at 6:09 am
Some references for you to help you understand the things people have said:
The behavior of the IDENTITY function when used with SELECT INTO or INSERT .. SELECT queries that contain...
July 28, 2010 at 4:23 am
GilaMonster (7/26/2010)
Jack Corbett (7/26/2010)
Wow, Honeywell is hiring a database guy. Based on the databases I've seen behind Honeywell products you are the first.
That's not something I'd like to hear...
July 27, 2010 at 7:22 am
Viewing 15 posts - 2,836 through 2,850 (of 8,416 total)