Viewing 15 posts - 241 through 255 (of 6,676 total)
This should work:
select *,
[test33] = CASE WHEN PrgFld NOT IN ('XXX') THEN ROW_NUMBER() OVER(PARTITION BY VID, Acc, nullif(PrgFld, 'XXX') ORDER BY OrdDate) ELSE 0 END
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
May 31, 2023 at 8:36 pm
Jeffery never said anything of the sort. Simply, if you do not need the extra precision of a datetime2, as well as the extra byte of storage required,...
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
May 31, 2023 at 6:16 pm
Forget about precision - I already stated that if you need that precision then use that data type. That isn't the issue - the issue is that there are known...
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
May 30, 2023 at 10:11 pm
I have been watching this conversation about COBOL - and I find it to be rather funny. I started working in this industry on a little known platform called MUMPS...
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
May 30, 2023 at 9:51 pm
Neither of these solve the OP's question:
For this particular scenario the following would also work with no need for the Partition By clause. Why get fancy when simple will...
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
May 30, 2023 at 9:20 pm
I think all you need is this:
SELECT *
, [test2] = CASE WHEN PrgFld NOT IN ('XXX') THEN ROW_NUMBER() OVER(PARTITION BY VID, Acc...
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
May 30, 2023 at 7:27 pm
Do you need to convert the dates ? Isn't this OK ?
INSERT INTO homes.Properties
VALUES
(1, 1, '12a, Station Street, Liverpool', 500, '2019-12-31' )
,(2, 1, '12c, Station Street,...
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
May 30, 2023 at 7:13 pm
Or you need to include that information in the calls to SQL Server - as in a parameter to a stored procedure (e.g. User, UserID, etc.)
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
May 18, 2023 at 8:30 pm
It really depends on the size of the team - and the knowledge and ability of all team members. I see no reason to limit a "DBA" from developing if...
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
May 17, 2023 at 9:24 pm
Using SSMS - run the following connected to that instance: SELECT @@VERSION.
If the version you see is SQL Server 2019 Express Edition - that would explain why SQL Server Agent...
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
May 17, 2023 at 9:10 pm
It all comes down to your RPO/RTO - and whether or not DPM can meet those requirements. The first test I would perform is a straight native compressed backup and...
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
May 17, 2023 at 9:08 pm
Change the size to a fixed MB - then shrink the file to as small...
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
May 12, 2023 at 10:09 pm
Let's deal with the first issue - the autogrowth setting is incorrect. You have it set to...
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
May 12, 2023 at 7:28 pm
Of course it will work. Put your database in simple mode, shrink your log file and go on. That's my daily work, works always and 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
May 12, 2023 at 7:17 pm
I have a few questions that need to be answered first. If the OP responds then we can see if there are any available options.
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
May 12, 2023 at 4:19 am
Viewing 15 posts - 241 through 255 (of 6,676 total)