Viewing 15 posts - 76 through 90 (of 6,676 total)
The problem isn't in the PS portion - it is in the SQL query. You need to enclose the 'linked' server reference in the query - although I have no...
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, 2024 at 5:13 pm
I don't see a unique index on the columns ExternalReference, RegionID and CreatedBy. That means you can have multiple rows with those 3 columns - including multiple rows with the...
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 20, 2024 at 8:15 pm
The proposed solutions seem to be a bit more code than is needed:
SELECT *
, ActualID = substring(ss.Str1, patindex('%[1-9]%', ss.Str1), 25)
...
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 19, 2024 at 4:09 pm
The proposed solutions seem to be a bit more code than is needed:
SELECT *
, ActualID = substring(ss.Str1, patindex('%[1-9]%', ss.Str1), 25)
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
May 17, 2024 at 8:17 pm
In your connection string - make sure you include the Encrypt option and/or pass in the option to trust the server certificate. The newer drivers default this to true -...
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 15, 2024 at 7:41 pm
An availability group is defined in SQL Server - so you can have a single windows cluster of xx nodes hosting as many instances of SQL Server that you need. ...
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 11, 2024 at 3:13 pm
So either this is a very bad interview question - or there are missing details from the question. There is no way you can answer the question correctly - so...
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 5, 2024 at 3:42 pm
AG group is in synronus- automatic with windows failover setup
Can any one reply on this when primary is down not accessible, also automatic failover not occurred to secondary 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 4, 2024 at 4:21 pm
The problem here is the $ in the PS script. SQL Server Agent is attempting to use that as a token - and that is causing the failure. The only...
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 2, 2024 at 9:55 am
Hi, yes that is my concern that BEGAN TRAN; and COMMIT TRAN; might not be improving things and could expose the query to holding a lock should something go...
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
April 27, 2024 at 4:53 pm
I tried incorporating Jeffrey's suggestion, but the ancient VS version I have to work with keeps crashing in the expression builder.
So, I decided to use the hardcoded solution 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
April 24, 2024 at 7:01 pm
Since all of the joins to the derived tables (selects in the from/join) - there is no benefit to even using the sub-queries. Removing the sub-queries and refactoring to simple...
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
April 24, 2024 at 6:25 pm
Well, hardcoding would be an option, though this would require some maintenance issues if customers decides to need to look further into the past.
The source system is an Axapta...
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
April 23, 2024 at 6:46 pm
As a starting point - to insert into a table that has an IDENTITY column you MUST specify the column list excluding the IDENTITY column and cannot use SELECT *...
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
April 22, 2024 at 10:02 pm
The issue with partitioning is that the archive table must reside in the same filegroup as the main table - in the same database. If the goal is to move...
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
April 22, 2024 at 9:46 pm
Viewing 15 posts - 76 through 90 (of 6,676 total)