Viewing 15 posts - 1,396 through 1,410 (of 5,843 total)
You simply MUST NOT order all rows to get one!! That is an immensely costly operation!
One quick-and-easy way is to get min and max ID values and create a WHILE...
December 9, 2015 at 6:07 am
1) Is this a virtual machine?
2) Do you have anti-virus running on it?
3) You could set up a profile trace to local disk to capture queries with large amounts of...
December 9, 2015 at 5:59 am
webrunner (12/4/2015)
Does anyone have any suggestions or references for how I can use ETL concepts for a data feed, as opposed to a data warehouse? A lot of the...
December 4, 2015 at 1:16 pm
I am 99% confident that there is a TIME element in the date fields that is messing things up. Assuming you don't CARE about the time, you have two options:...
December 4, 2015 at 1:08 pm
The simplest solution by far would seem to be fix the data. 🙂 Update all NULL start-date values to the minimum for the data type (1/1/1753 for full datetime for...
December 4, 2015 at 9:09 am
Jeff Moden (12/3/2015)
Aditya Daruka (12/3/2015)
Everything is not always about speed!
I am happy with tally function, great way...
December 4, 2015 at 7:02 am
ChrisM@Work (12/2/2015)
Shouldn't you be left-joining data to events?
Oh, duh! The event's table is the one that has ALL the rows that are needed. I think Chris has it.
December 2, 2015 at 9:41 am
What happens to the output if you remove the datediff and just show the min date instead?
December 2, 2015 at 9:22 am
I don't understand what the bigints have to do with it. For a real or virtual table of numbers that goes from 1-N:
select startnum + (num-1)
from numtable
where num <= rangevalue
December 1, 2015 at 6:18 pm
I was going to suggest Express Edition too if db sizes allow. If not, then you are probably into Standard Edition and per-core licensing, so then it becomes a matter...
November 30, 2015 at 11:57 am
Johnny B (11/23/2015)
We are a team of 6 DBA's for a government district servicing 6 vendor applications. Our servers are virtualized and consist of 2008 R2 and one legacy SQL...
November 23, 2015 at 6:27 pm
How can we help you with so little information? No code for the stored procedure, no code actually doing the blocking, object that is blocked, other code requesting the lock...
August 27, 2015 at 4:42 pm
You cannot time the restores based on no current connections to the database because in the finite time between determining no connections and getting the restore job kicked off any...
August 27, 2015 at 10:20 am
Eric Mamet (8/27/2015)
I don't have any experience of it though...
Has it got a reputation...
August 27, 2015 at 7:45 am
Robert W Marda (8/26/2015)
The deadlocks I see the most often are with two SPIDS having a page lock on...
August 26, 2015 at 1:14 pm
Viewing 15 posts - 1,396 through 1,410 (of 5,843 total)