Viewing 15 posts - 8,926 through 8,940 (of 39,771 total)
Often people use a dateadd/datediff combination to remove times, or to set to a base time.
SELECT DateAdd(Day, Datediff(Day,0, GetDate() -1), 0)
returns midnight of yesterday. That might be what you want....
November 25, 2015 at 3:07 pm
The way in which queries are formatted is very subjective. Some people like this:
select col1, col2, col3
from mytable
inner join myothertable on col1 = myfk
where time < getdate()
others prefer more indentation.
select...
November 25, 2015 at 3:04 pm
I'd also ask people in the company. It's possible someone runs SSIS or performs manual imports from their workstation.
November 25, 2015 at 3:01 pm
Alvin Ramard (11/25/2015)
Steve Jones - SSC Editor (11/25/2015)
November 25, 2015 at 2:59 pm
You could track the times in sys.jobactivity. You would need to create an average, or max, or whatever statistical calculation you want. Then you'd need to track the current execution...
November 25, 2015 at 2:57 pm
The spam problem is tough. Believe me, no matter what we do, people will find ways around it. Much of the spam isn't a user clicking and posting like you....
November 25, 2015 at 12:33 pm
I know this is old, but did you recover things?
Also, please don't set emergency or use repair allow data loss. You have errors in low numbered system objects, which are...
November 25, 2015 at 12:04 pm
Thanks for noting that I mirror Keith poorly. :hehe:
November 25, 2015 at 8:48 am
DonlSimpson (11/24/2015)
November 24, 2015 at 1:55 pm
I was using window functions, and this appeared to work, but it's a small sample size, so perhaps there's a flaw here:
SELECT t.*
FROM ( SELECT top 10
...
November 24, 2015 at 8:57 am
IMHO (11/24/2015)
Can you start to imagine criminals using the information intelligently to not directly sell the data but to make a secondary use of the information.
I think they call...
November 24, 2015 at 8:50 am
swwg69 (11/24/2015)
November 24, 2015 at 8:49 am
don't drop your framework or view on table design.
If I'm staging data here, pulling from unclean sources, do I need a PK or non-nullable columns? It's a perfectly valid design,...
November 24, 2015 at 8:47 am
What's previous?
The order of rows has no meaning in SQL Server. The way you insert them doesn't matter.
Right now your second row has a larger id and a later last...
November 23, 2015 at 7:53 pm
I'm not sure it's that hard to go from 2005 sp4+ to 2016. The core features are there and not much has been removed, though lots deprecated. I suppose if...
November 23, 2015 at 7:39 pm
Viewing 15 posts - 8,926 through 8,940 (of 39,771 total)