Viewing 15 posts - 31 through 45 (of 429 total)
Thanks Lowell. The NULL and the Or clause are business rules so won't be able to find my way around that.
I will try breaking the master proc and test with...
March 21, 2016 at 7:41 am
serg-52 (11/23/2015)
Create vbscript kind of https://gallery.technet.microsoft.com/scriptcenter/32e0146a-83fc-4ee1-af7b-52a57d57466c to run commands from file in parallel using...
November 23, 2015 at 6:35 am
Paresh Motiwala (8/5/2015)
I even copied one of the...
August 5, 2015 at 9:54 pm
Grant Fritchey (7/27/2015)
chandan_jha18 (7/27/2015)
The code that I executed kept on running for more than 26 hours and appeared to be doing nothing. After putting in a lot of research...
July 27, 2015 at 8:35 am
@Grant-
The code that I executed kept on running for more than 26 hours and appeared to be doing nothing. After putting in a lot of research and reading on...
July 27, 2015 at 6:28 am
marizarocio (7/20/2015)
our MS SQL Server Administrator deleted / dropped our MS SQL Server database accidentally.
Is there any form to recover what was deleted? there is no backup of that...
July 22, 2015 at 1:45 pm
Thanks Koen, John,Ken,Chris and Scott for all your suggestions. All the answers helped me to view the problem and its solution through different approaches.
Cheers!!
August 20, 2014 at 1:28 am
Koen Verbeeck (8/20/2014)
ScottPletcher (8/19/2014)
SELECT *
FROM YourTable
WHERE (SnapshotDate > @from AND SnapshotDate < @to)
OR...
August 20, 2014 at 1:26 am
ScottPletcher (8/19/2014)
SELECT *
FROM YourTable
WHERE (SnapshotDate > @from AND SnapshotDate < @to)
OR (SnapshotDate =...
August 20, 2014 at 1:22 am
Ken McKelvey (8/19/2014)
SELECT *
FROM YourTable
WHERE SnapshotDate > @from AND SnapshotDate < @to
OR (SnapshotDate = @from AND hourkey > 2)
OR (SnapshotDate = @to AND @to < 21)
Actually this looks pretty much...
August 19, 2014 at 7:13 am
John Mitchell-245523 (8/19/2014)
It's not entirely clear what your requirement is, but if I understand correctly, I think the simplest solution is to use a CTE or add a computed column...
August 19, 2014 at 7:08 am
Koen Verbeeck (8/19/2014)
Try this:
SELECT *
FROM Table
WHERE DATEADD(HOUR,HourKey,CONVERT(DATETIME,CONVERT(CHAR(8),SnapshotDate),112)) BETWEEN @from AND @to;
You did not provide any table DDL and sample data, so I could not test this query.
Thanks a lot. I...
August 19, 2014 at 7:06 am
Thanks Anthony and Eirikur. Both solutions are great. I will see how to use them in the package now so as to avoid conversions for such a massive 200 GB...
July 15, 2014 at 3:56 am
Thanks for your great solution using recursion. Now, I am in a spot of bother due to my own question. If I pre-populate the time frames lets say 1 year...
June 17, 2014 at 5:20 am
Koen Verbeeck (6/17/2014)
Wouldn't it be easier to just store the maximum entrydate you loaded in the last run.
Say you ran the initial load and the max entrydate...
June 17, 2014 at 3:57 am
Viewing 15 posts - 31 through 45 (of 429 total)