Viewing 15 posts - 4,606 through 4,620 (of 6,036 total)
You can change collation for this particular column.
January 2, 2007 at 2:32 pm
> But, even you, my old friend, are still saying the OR "will let SQL Server to use index if there is one". The real fact of the matter...
January 2, 2007 at 3:59 am
What?
Then what is that:
AND p.Rqrd = t.TypeId ?
It's clear join.
And this kind of WHERE clause eliminates any chance of NULL values coming from either table.
So, you can replace CROSS JOIN...
January 2, 2007 at 3:48 am
Jeff, the same way I can easily proof that walking is faster than driving a car. I just need to build special scenario for this.
Your point is not about query,...
January 1, 2007 at 4:23 pm
There is an easier way.
Turn on Profiler, do whatever you wamt to do manually in EM, copy SQL commands executed by EM from Profiler to QA and slightly modify them...
December 29, 2006 at 5:58 pm
Only if you don't use index.
Or half of values in the column = NULL.
In my experience it ALWAYS dramatically decreases execution time.
December 29, 2006 at 12:37 pm
WHERE (T1.Col1 >= @date OR T1.Col1 IS NULL)
December 29, 2006 at 4:22 am
You must create both view and SP using it ON REMOTE SERVER.
And then just call it from here.
December 28, 2006 at 7:06 pm
Why nobody mentioned query hints yet?
And if you use more than 10% of rows in table (either for join or to return in resultset) there is no point to use...
December 28, 2006 at 7:03 pm
Who told you such cr.p about views?
If you do it right view is more efficient than query in SP.
December 28, 2006 at 6:52 pm
So, you SP is just single SELECT?
That's why you came up with idea of COUNT(*) from SP.
To encapsulate complex joins you must use VIEWs, not SPs.
Then your SP will become...
December 28, 2006 at 5:52 pm
So what?
What you gonna do if there are some employees?
Pass the resultset to application?
And if there are no employees you won't pass anything but several bytes overhead for empty recordset.
December 28, 2006 at 5:12 pm
So, you are adding extra call for SP just to count rows in recordset?
Your company spent too much money on server and now you need to make it occupied?
Don't you...
December 28, 2006 at 4:47 pm
So, if you don't use actual data returned by sp_GetAllEmployees, why you need this SP at all?
December 28, 2006 at 4:26 pm
Why you need this SP if you don't use its result?
December 28, 2006 at 3:52 pm
Viewing 15 posts - 4,606 through 4,620 (of 6,036 total)