« first day (4405 days earlier)      last day (463 days later) » 

1:37 AM
@HannahVernon Two semi-legit use cases I've used it for: 1. The data handed to you sucks, is denormalized, and you're not allowed to change it prior to de-duping it. 2. With the FIRST_VALUE() / LAST_VALUE() window functions to get the first / last values of multiple columns, and am feeling lazy / don't want a second layer of code from enumerating the rows with ROW_NUMBER() before filtering on the results of that expression, and performance doesn't matter much in the use case.
 
 
2 hours later…
3:15 AM
I'm not saying to never use it, just that it's usually a red-flag when I see it during a code review.
 
4:05 AM
kinda like when I see WHERE [some_datetime] BETWEEN @start_date and @end_date. That's just gotta go.
 
4:50 AM
@HannahVernon Yea no doubt. Definitely agree, and same I usually find it as a red flag when I see other developers using it too lol.
 
 
2 hours later…
7:15 AM
Morning
 
 
1 hour later…
8:36 AM
Morning
 
 
1 hour later…
9:47 AM
Enabling Change Tracking on one table in QA takes 50 sec, and I have no idea why. It's not a SCH-M lock
 
10:18 AM
@SeanGallardy r u on Mastadon?
 
10:51 AM
It seems like the other processes are waiting on a sys.sysrowsets. Still no idea why it takes so long, but at least I found @JoshDarnell's blog post joshthecoder.com/2018/06/29/locks-on-system-tables.html
2
 
 
1 hour later…
11:55 AM
@JohnK.N. I don't have any social media at all
 
You have the Heapā„¢
 
12:32 PM
@JohnK.N. I know what it is...but sounds complicated
 
 
3 hours later…
3:04 PM
@Zikato change tracking was a mistake
 
@Zikato Hooray \o/
Makes me feel special.
 
3:35 PM
0
Q: 2022: a year in moderation

JNat As we say goodbye to the old year and welcome the new one, we have a tradition of sharing moderation stats for the preceding calendar year. As most of you here are aware, sites on the Stack Exchange network are moderated somewhat differently to other sites on the web: We designed the Stack Exch...

 
no moderation here
beat it
 
moderation was a mistake
 
4:23 PM
defend the moderators
4
 
amen
 
5:06 PM
Quote from a very large company:
> Our Developers add NOLOCK to every query by default without exception.
 
Large companies are the absolute worst
I have, of course, encountered places like that
One was v surprised at the amount of work they needed to do to switch to RCSI
If only there were some kind of global setting for isolation level
 
5:49 PM
@SeanGallardy Yikes.
 
6:32 PM
user image
2
 
@PaulWhite I like how SQL Database has optimistic locking by default.
 
@PaulWhite connection strings i suppose
 
7:02 PM
> Microsoft TEAMS may also affect the quality of the broadcast
lol
I'm going to go out on a limb and say the fact that there are about 72 anti-virus/process inspectors/egress prevention/anti-malware suites running on each workstation is not helping either.
 
@HannahVernon šŸ˜‚šŸ˜‚šŸ˜‚šŸ˜‚šŸ˜‚
 
talk about a time suck lol
 
7:30 PM
@ErikDarling I wasn't thinking of that, just setting the isolation level once at connection time as @Zikato said. Plenty of things ought to be set a particular way at the start. Isolation level is just one of them.
 
apparently we did 450,000 security patches in 2022
as if that's some kind of important metric
(I'm watching our year end report broadcast)
 
8:03 PM
... wow
 
8:18 PM
@SeanGallardy is there a way to get the password hash for a credential similarly to using LOGINPROPERTY([name], 'PasswordHash') as you would do for a login?
sqlpackage.exe is generating a CREATE CREDENTIAL statement when the password doesn't match, so there must be a way.
I'll ask the q. on main
 
@HannahVernon, I did something similar for certificates. Would that be useful?

https://straightforwardsql.com/posts/cross-db-access-with-module-signing/#demo-time
 
@Zikato its quite similar. Nice post btw
 
@PaulWhite that's a lot of words to agree with me man
 
You cannot set an isolation level in the connection string though
 
You seemed to be suggesting using the connection string. I'm talking about issuing a SET command after the connection is established
Look at us all agreeing using many words
 
8:51 PM
I know many words. Big words. Best words. I am very smart
 
@Zikato okay
 
That's a transaction, not a connection string. You're looking for this
https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.connectionstring?view=dotnet-plat-ext-6.0
I'll send the invoice later
 
that's what i see skilled developers© use to take advantage of snapshot isolation in professionally crafted databases
 
That maybe so, but you can reuse a single connection string for all your app's database code. You still have to set each transaction separately
 
doesn't the jdbc driver allow for that?
 
9:07 PM
one invoice at a time, please
@HannahVernon I've scanned the documentation and couldn't find anything
 
@Zikato thanks for looking
 
that looks like it would do it, but i am not a skilled or professional developer
 
What are you all wobbling on about
 
9:17 PM
still, it's not a connection string. It's a connection class
 
Calling a method on a connection object isn't the same as setting it at connection time in the connection string
 
Yeah, I think it's time for bed. Good morning everyone
 
Amateur developers. V unprofessional
Tears of a clown
 
you're v. picky with these things
sometimes
somethings
r gud enuf
 
That's heaps of words to say you agree with explicitly setting an isolation level for the connection but it can't be done in the connection string
ANYWAY
Putting NOLOCK hints on every object in every query is dumb and unnecessary
Like large companies
 
9:57 PM
can you edit the transcript for me
so that last line says "r gud enuf"
and then delete all evidence
i don't wanna look dumb in front of mustaccio
 
very droll
apparently spelling that with only one l was a mistake
 
10:28 PM
@HannahVernon Interesting, I'm not really sure. I don't think so, but there could be something.
I've only used that executable a handful of times, I'm not sure what it uses as its base
There is a modified date, that would have been my first go to
outside of that you're talking about grabbing the value from the sysobjvalues table
Which would require DAC
 
thanks for looking into it.
I appreciate the confirmation that it would be DAC; no way SQLPackage is doing that :-)
@SeanGallardy that's interesting though
 
I'll take a look at the official question tomorrow
:D
 
cheers
 
> i don't wanna look dumb
worry not, I wasn't looking
 
10:52 PM
why thank you
it has many available costumes and personalities for you to choose from
parasols are extra
 
Expedited parasols even more so
 
11:20 PM
@ErikDarling so how would you do something like that?
group on the grouped within group group group
 
row number works well
 
derp. i'll check it out
 

« first day (4405 days earlier)      last day (463 days later) »