Viewing 15 posts - 46 through 60 (of 6,648 total)
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...
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)
...
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...
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 -...
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. ...
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...
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...
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...
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...
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...
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...
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...
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 *...
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...
April 22, 2024 at 9:46 pm
This could just be normal parameter sniffing issues - there are a couple ways to handle this from SSIS.
First - unless you really need to be able to parameterize the...
April 22, 2024 at 9:24 pm
Viewing 15 posts - 46 through 60 (of 6,648 total)