Viewing 15 posts - 766 through 780 (of 6,678 total)
Without a domain - you need to have local accounts on both systems with exactly the same username and password. And even then - you can end up having issues...
October 11, 2021 at 7:56 pm
If SQL Server is restarted - or the server is restarted - then those jobs that were running at the time will show up as canceled. If that is not...
October 10, 2021 at 2:49 pm
just use straight convert with the correct destination type (e.g. no VARCHAR without specifying a size - bad practice!!) and with the correct format - no need for substring...
October 8, 2021 at 9:12 pm
I would definitely convert that scalar function to an inline-table valued function. You don't actually need a separate view to implement @Phil's solution - which can be done using either...
October 7, 2021 at 9:44 pm
I would disagree with the normal way as using DelimitedSplit8K - if the goal is to split out to individual columns, using that utility would require a secondary pivot/cross-tab (and...
October 4, 2021 at 7:14 pm
Well - you can avoid this issue using a slightly different approach. I would create an iTVF to split the elements and then cross apply to that function.
October 4, 2021 at 6:04 pm
Finally found the reason for the error. Thought add that so anybody who have this issue can benefit.
On the secondary database , properties, Advanced, Enable Contained Databases Option should...
September 30, 2021 at 3:29 pm
Just curious - but do you have the option 'Optimize for Adhoc Workloads' enabled on that server? I would also review the parameterization setting on the database - the default...
September 30, 2021 at 3:12 pm
You should also not use SELECT to set the variable - use SET instead:
DECLARE @SQL NVARCHAR(4000);
SET @SQL = 'SELECT * FROM TableA; ';
...
September 29, 2021 at 9:37 pm
If you enable automatic seeding - then you only have to restore the database to the primary and add the database back to the AG. So your steps would be:
September 28, 2021 at 6:54 pm
@JeffModen - I rather like Peter's version to get the Nth Weekday outlined here: https://weblogs.sqlteam.com/peterl/2009/06/17/how-to-get-the-nth-weekday-of-a-month/
And we had a discussion about my changes to his function here: https://www.sqlservercentral.com/forums/topic/get-particular-date-from-a-month/page/3
I would think using...
September 24, 2021 at 9:28 pm
What are you looking at to determine that the instance was not upgraded and instead was installed side-by-side?
September 23, 2021 at 4:13 pm
Or is it possible that the backup process is switching the recovery model before performing backup - then switching it back to full? Those are the only reasons I can...
September 22, 2021 at 7:32 pm
Peter Larrson created the function outlined here: https://weblogs.sqlteam.com/peterl/2009/06/17/how-to-get-the-nth-weekday-of-a-month/
I updated that function and showed it here: https://www.sqlservercentral.com/forums/topic/get-particular-date-from-a-month
September 22, 2021 at 7:13 pm
Viewing 15 posts - 766 through 780 (of 6,678 total)