Viewing 15 posts - 61 through 75 (of 80 total)
Gail,
After reading your reply I thought that it might be because of table variables as you said but interestingly, its the same using the permanent tables also.
>>Just be careful...
January 25, 2009 at 11:52 am
Gail, Good to know. Then whats the reasoning behind the differences in logical reads for the 3 plans.
--Orig
(2 row(s) affected)
Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0,...
January 25, 2009 at 10:02 am
In the below mentioned version, your code snippet worked just fine. Which version are you using?
Microsoft SQL Server 2005 - 9.00.3282.00 (X64)
Aug 5 2008 00:48:00
Copyright (c) 1988-2005...
January 24, 2009 at 10:10 pm
Jeff, point taken. I will avoid that next time. I was just demonstrating a technique.
January 24, 2009 at 2:36 pm
Gail is correct and just to complement what she said, avoid using correlated subqueries if you can solve the problem with a simpler join.
In Correlated subquery, inner query is executed...
January 24, 2009 at 2:01 pm
Jeff is right. If the data set is large then you are better off with Numbers table approach. But if you are doing small data sets or just a variable...
January 24, 2009 at 1:07 pm
There are no built-in SQL server functions that handle this. You have to write this yourself although this problem has been solved in many ways as Chris pointed out earlier.
--Creates...
January 24, 2009 at 1:54 am
I don't have BI studio handy to test but here is what I can come up with.
=iif (FORMAT(Fields!DueDate.Value,"d MMM yy") = "6 Jun 79", "TBA", FORMAT(Fields!DueDate.Value,"d MMM yy"))
Also on a...
January 24, 2009 at 1:45 am
Set based solutions tend to be faster than the RBAR operations while taking less system resources. Doing a task 100 times is much likely to take more time than doing...
January 24, 2009 at 1:20 am
Have you looked at the Database Publishing wizard?
January 24, 2009 at 1:04 am
Hello,
SQL Server Express edition service pack 3 is not just another SP but an actual upgrade. Even if you run the .exe, it will reinstall not just apply SP3.
January 24, 2009 at 1:00 am
Although SQL 2K5 has robust built-in email support via Database mail, its not available in Express edition. You have to use CDOSYS to make it work for Express edition. SQL...
January 24, 2009 at 12:57 am
It helps to know if this is occuring in SQL 2K5 or SQL 2K8?
January 24, 2009 at 12:21 am
You could try using one of the mentioned tools (http://www.karaszi.com/SQLServer/info_generate_script.asp) to transfer the data. I prefer using the Database publishing wizard.
January 24, 2009 at 12:18 am
You can use this script to get all the objects in a specified schema and loop thru to update the statistics.
select * from sys.objects o join sys.schemas s
on o.schema_id=s.schema_id
join sys.indexes...
January 22, 2009 at 1:08 am
Viewing 15 posts - 61 through 75 (of 80 total)