Viewing 15 posts - 196 through 210 (of 1,162 total)
Sounds like you need a case statement:
select a.casecode, a.[Goal_Weighing],b.ddate, CASE WHEN b.ddate < GETDATE() THEN 0 ELSE 1 END as GoalBehindFlag
from [dbo].[VRep_Calc_1] as a
inner join [dbo].[VRep_Goals] as b
on a.casecode =...
June 10, 2013 at 3:10 am
Matthew Darwin (6/7/2013)
June 7, 2013 at 7:13 am
If we skew your test data so there's a lot of rows per "ServicerHistoryID" that are not the top 1, you can see the dramatic switch in the cost of...
June 7, 2013 at 4:22 am
Apply is definitely not the fasted method in any scenario, but there are plenty where it can outstrip other approaches.
In this particular comparison against Row_Number, although it's not the most...
June 6, 2013 at 10:48 am
No, can't think of any technical reasons not to do this. The 64gb limit in Standard Edition is per-instance.
June 5, 2013 at 9:50 am
Have you granted any server level permissions like sysadmin to the web user?
edit: 4 seconds too late!
June 5, 2013 at 6:00 am
GilaMonster (6/4/2013)
That's not a new limit. SQL 2008 R2 standard edition only supported 64GB of memory.
It was new to R2, though, I believe? 2008 allowed the OS limit in standard...
June 5, 2013 at 2:00 am
Lynn Pettis (6/4/2013)
From the definition of SID in sys.server_principals:
SID (Security-IDentifier) of...
June 4, 2013 at 6:42 am
They're typically Oracle terms. SID would most closely relate to SPID in SQL Server and PID to the OS level process ID.
There's no direct correlation to SQL Server, as in...
June 4, 2013 at 6:11 am
demonfox (6/4/2013)
As for...
June 4, 2013 at 3:49 am
The insert order isn't guaranteed to be the same between two inserts, so the identity trick may not work. Also, I suspect it may allocate identities before the error is...
June 4, 2013 at 3:31 am
I'm not running 2012 yet, but SSMS (at least in previous versions) is 32-bit only, and therefore the import/export wizard will only see 32-bit MySQL drivers, not 64-bit, so that...
June 3, 2013 at 9:06 am
If you want it to run on a particular day number each month, but move to the next day only on a Sunday, the built in scheduler won't be able...
May 30, 2013 at 5:39 am
Remember if you're not on Enterprise Edition, you will need the WITH(NOEXPAND) hint in all queries to actually make use of the indexes.
There is also a long list of things...
May 29, 2013 at 8:37 am
Partitioning can clearly improve query performance in a different way than indexing can. Partition elimination can be vital to query performance with very large tables, particularly in Data Warehousing, where...
May 24, 2013 at 7:43 am
Viewing 15 posts - 196 through 210 (of 1,162 total)