Viewing 15 posts - 1,561 through 1,575 (of 6,676 total)
I was thinking more about this - realized we can do this:
SELECT weekend_day_count=y/7-x/7+(y+1)/7-(x-1)/7
FROM (VALUES(DATEDIFF(DAY,-53690,'1899-01-01') + 1,DATEDIFF(DAY,-53690,'1900-01-14') + 1))x(x,y)
We can specify the anchor date as...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 20, 2020 at 9:05 pm
I agree with you, Steve. I do have one observation and one question.
Where I currently work there are a LOT of Excel and MS Access applications out there. I'm...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 19, 2020 at 8:13 pm
Just one more thing - be aware of the implicit conversions that DATEDIFF performs when using the DATE or DATETIME2 data types or string dates. Unless you really need dates...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 18, 2020 at 3:47 pm
We can make a simple change to Jacob's solution to fix the problem:
DECLARE @test_dates TABLE (start_date DATE, end_date DATE);
INSERT INTO @test_dates (start_date,end_date) VALUES
('20180301','20180430'), ...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 17, 2020 at 4:19 pm
How are you importing the CSV file into the database? What is the agent job doing - is it just running T-SQL code or is it executing something else?
For something...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 15, 2020 at 7:49 pm
I always imagined doctors dictating into a voice recorder, and then other people in the office actually deal with the paperwork. If that's not how it works, then that's...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 15, 2020 at 7:28 pm
In the OLEDB destination - change the commit and batch sizes from the default values. The default values essentially send all 70 million rows as a single transaction which then...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 14, 2020 at 9:55 pm
Shifting gears a bit, I wish that they had actually standardized the underlying stored date and time as decimal values where the integer portion is the number of days...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 13, 2020 at 11:56 pm
Ah... almost forgot. One of the things that MS did very, VERY wrong is how they interpret the (secondary ANSI) format of YYYY-MM-DD when used for direct conversions from...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 13, 2020 at 4:22 pm
Scott? Again???? :):):)
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 13, 2020 at 3:24 am
Declare @schedStart varchar(25) = '2020-06-07-12.30.00.00000';
Select @schedStart
, stuff(stuff(stuff(@schedStart, 11, 1, ' '), 14, 1, ':'), 17, 1, ':')
...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 12, 2020 at 9:18 pm
Thanks,
I have read & done this already & the current issue is accessing SSIS via the Tools >> Extensions because it doesn't appear in the available choices from File...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 12, 2020 at 6:52 pm
Jeffrey Williams wrote:Scott? 🙂
Sorry... had a "Scott" on my mind from a different post. Corrected my previous post.
🙂
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 12, 2020 at 6:45 pm
Scott? 🙂
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 11, 2020 at 6:44 pm
After installing Visual Studio - you use the Visual Studio Installer to modify the installation and add/remove these items. This is clearly documented in the links provided.
Jeffrey Williams ― Charles R. Swindoll How to post questions to get better answers faster
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
Managing Transaction Logs
October 11, 2020 at 5:22 pm
Viewing 15 posts - 1,561 through 1,575 (of 6,676 total)