Viewing 15 posts - 541 through 555 (of 7,466 total)
By now, you know the solution.
Want to make it even better, do not use a SCALAR value function, but turn it into a (in-line)Table valued function !
In most cases, performance...
July 15, 2022 at 6:33 am
Instead of a WHILE loop you could try a numbers table or tally function approach
declare @string varchar(255) = 'EMA_20210526T211254_0000_MRNMM0000001240_PMS110460PAT000001287_PID15235307_OR_Dr';
select string_agg(v.chr, '') within group (order by...
July 14, 2022 at 2:31 pm
Thank you for the feedback
July 14, 2022 at 5:11 am
Issue resolved for me. I have audits configured on my SQL Servers to write to a network share. The share had gone down, so when the server restarted, connections...
July 13, 2022 at 5:37 am
$Filename = $('Job_Runs_{0}.log' -f (get-date($OtherDate) -Format 'yyyy-MM-ddTHH-mm-ss'))
$Filename
July 12, 2022 at 1:19 pm
July 12, 2022 at 6:54 am
If you chose to use "managed backups" it will figure it out itself.
If you chose not to use managed backups ( as it's always been ), you decide what...
July 12, 2022 at 6:34 am
ref: "Troubleshoot query time-out errors"
ref: "How to detect query timeout errors with Extended Events"
July 12, 2022 at 6:30 am
#using Powershell
Get-Date -UFormat "%A %B/%d/%Y %T %Z"
$Time = Get-Date
$Time.ToUniversalTime()
#Using .Net
[System.TimeZoneInfo]::GetSystemTimeZones( )
[System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId( (Get-Date), 'Greenwich Standard Time')
July 12, 2022 at 6:27 am
If I understood well, a natural join is supposed to have no ON-clause as it uses matching column names
July 8, 2022 at 12:39 pm
Are all your sql server 2016 instances upgraded up to the latest sp/cu ?
July 8, 2022 at 12:37 pm
Keep in mind, to be able to see the tables relationships, you need to be granted "View Definition" at database level
GRANT view definition TO [youraccount/group]
July 7, 2022 at 1:52 pm
What do you mean with "second occurrence of a character" ?
I cannot see that in your "Left(Replace..." example.
Have you seen these questions/articles ?
July 7, 2022 at 12:40 pm
July 7, 2022 at 12:24 pm
Viewing 15 posts - 541 through 555 (of 7,466 total)