Viewing 15 posts - 3,301 through 3,315 (of 8,416 total)
karthikeyan-444867 (5/25/2010)
Microsoft SQL Server 2005 - 9.00.4220.00 (Intel X86)
Shame. SQL Server 2008 SP1 CU5 is required to make the OPTION (RECOMPILE) trick fly.
Never mind. Try it anyway, and...
May 25, 2010 at 4:24 am
karthikeyan-444867 (5/25/2010)
So it should be faster than cluster index scan. Right?
The Constant Scan just provides the literal constants in your query to the UDF that comes next - in the...
May 25, 2010 at 4:22 am
Pravin Patel-491467 (5/25/2010)
May 25, 2010 at 4:12 am
Ken McKelvey (5/25/2010)
EDIT: Sorry Paul - I did not notice you had posted.
No worries. I do it all the time. Glad to get in first for once 🙂
In...
May 25, 2010 at 4:06 am
Whatever figure you decide on, remember to send 80% of it to the people on here that have helped you over the last year 😀
More seriously, try to think if...
May 25, 2010 at 3:53 am
Rows in a table have no intrinsic order, so you need something to define (or remember) the insertion order:
CREATE TABLE dbo.Test59
(
[RowID] ...
May 25, 2010 at 3:47 am
DECLARE @dt TABLE (dt DATETIME NOT NULL PRIMARY KEY);
INSERT @dt
SELECT '20090101' UNION ALL
SELECT '20090210' UNION ALL
SELECT '20090312' UNION ALL
SELECT '20090415' UNION ALL
SELECT '20100510';
SELECT ...
May 25, 2010 at 3:23 am
And try this:
SELECT @ID =
STUFF
(
...
May 25, 2010 at 3:04 am
karthikeyan-444867 (5/25/2010)
I tried with 'DYNAMIC SQL'. But the ecexution time still remain same.
You know the drill...'actual' execution plan, table definitions, indexes, sample data.
By the way, what exact version of SQL...
May 25, 2010 at 2:55 am
Karthik,
Grant Fritchey (5/24/2010)
In your case, the multi-statement function is what the constant scan represents, and it is indicative of poor performance.
The Constant Scan operator is an in-memory table of constants....
May 25, 2010 at 2:50 am
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
http://www.sommarskog.se/dyn-search.html
Select Emp_Name, Emp_Surename, Emp_Shomareshenasname, Edarekol_Id, Vahed_Id
from Employee
where (Emp_Name = Case when @VarEmp_Name is not null Then @VarEmp_Name Else Emp_Name end)
And ...
May 25, 2010 at 2:33 am
Which version of SQL Server are you using, and exactly what information would you like to see?
May 25, 2010 at 2:28 am
In case you hadn't noticed, that was Gail's blog entry that I pointed you at 🙂
May 25, 2010 at 1:52 am
This example shows an exactly equivalent logical representation.
Notice that exactly the same physical execution plan is produced.
Also notice that EXCEPT does an implicit DISTINCT on the first table.
DECLARE @A TABLE...
May 25, 2010 at 1:50 am
I believe your colleague is referring to this:
http://sqlinthewild.co.za/index.php/2009/09/15/multiple-execution-paths/
You should be aware of the concept, but don't draw any unshakeable conclusions - there are very few absolutes in SQL Server and...
May 25, 2010 at 1:15 am
Viewing 15 posts - 3,301 through 3,315 (of 8,416 total)