Viewing 15 posts - 23,551 through 23,565 (of 59,099 total)
There are a couple of ways that numbers may have been stored in a VARBINARY. One way is a direct conversion of the numeric value to binary represented by...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2014 at 6:40 am
The addition of a WHERE clause frequently changes the execution plan even if the same data is returned. Compare the two execution plans (one with and one without the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2014 at 6:20 am
The following line in your original code will also make it impossible for your query to use an index effectively...
AND (CONVERT(VARCHAR(10), BILLDATE, 21) BETWEEN '2013-05-01' AND '2014-05-27')
It should be written...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2014 at 6:16 am
nimalatissa (5/27/2014)
Basically I need to short this query with getting rid of these hundreds of CASE statements.
WHY? Have you proven that they are either a performance or resource usage...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2014 at 6:07 am
SET ROWCOUNT has always been slower than TOP for me. Further, it's been deprecated for a very long time (since SS 2005, IIRC). Here's the deprecation notice in...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2014 at 6:03 am
shiva N (5/28/2014)

I need how many days overall gap in Emp career by empID wise.
example :
EMPID Gap
101 10 days
102 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2014 at 5:49 am
I believe we have more to be gained from upgrading our 2012 stuff to 2014 than not.
Interesting and I'm curious. What is it that makes you say that?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2014 at 5:40 am
antonela (5/27/2014)
You're right.Unfortunately when I wrote the first post I didn't know the customer still uses 2005.
Ah... got it. Thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2014 at 8:00 am
Ryan Keast (5/27/2014)
I had the following script that used to work in SQL2000 but now that I have migrated it, it no longer does.
,TEN.[tncy-sys-ref]
+ CASE WHEN...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2014 at 7:58 am
The nearly 50% improvement you identified definitely makes it worth the try. But as the disks continue to get bigger and bigger, the chances of the tables living on...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2014 at 12:53 pm
Gratuitous attempt to slide crapola SPAM by, reported.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2014 at 12:35 pm
Koen Verbeeck (5/26/2014)
Jeff Moden (5/26/2014)
Then you could run a single stored procedure instead of multiple generated packages.But you could run the packages in parallel 😉
As you could with the T-SQL,...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2014 at 12:31 pm
TomThomson (5/26/2014)
Koen Verbeeck (5/26/2014)
Lynn Pettis (5/26/2014)
I think the answer here is hire a consultant.Not touching that one... 🙂
Well, Jeff has braved it but didn't comment on the normalisation bit of...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2014 at 12:16 pm
Heh... I normally avoid conversations about which normal form to use because even after such a discussion, people tend not to follow the best practices anyway. But to briefly...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2014 at 12:07 pm
GilaMonster (5/24/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2014 at 11:47 am
Viewing 15 posts - 23,551 through 23,565 (of 59,099 total)