« first day (2995 days earlier)      last day (1873 days later) » 

1:31 AM
user image
9
Now I just need to meet the euro folks and I'll have a full set of dba.se trading cards
5
 
 
2 hours later…
3:56 AM
I must say, it was good to meet you
3
 
 
3 hours later…
7:21 AM
Sounds like SO has had a good night
 
Good morning
 
Morning
 
8:03 AM
Morning
 
morning heapsters
 
Morning guys. I have a question here. Is creating a "dynamic" association table even a good practice?
Example : The association table has "ForeignID" and "ForeignSource". Depending on the ForeignSource it will successfully retrieve data when join with multiple table.
Sample query I'm not sure would work or not :
Declare @UserInputForeignSource varchar(50)
Set @UserInputForeignSource = 'Customer'

SELECT * FROM AssociateTable t1
LEFT JOIN Customer t2 ON t1.ForeignId = t2.id AND @UserInputForeignSource = t1.ForeignSource
LEFT JOIN Vendor t3 ON t1.ForeignId = t3.id AND @UserInputForeignSource = t1.ForeignSource
Correction: Should I even consider such practice?
 
8:20 AM
Morning all!
 
Morning
 
 
2 hours later…
10:00 AM
Come to the next drinkies then ...
I'll get around to organising it at some point.
2
 
11:28 AM
@JamesYTL The query will probably be more efficient if you express it as a union.
Seperate queries for each join, filtered by the predicate. Union them together. This will probably result in a more efficient query overall. It will give the query optimiser much more scope for taking short cuts.
 
11:45 AM
Help I need an adult.
Are 'U' and 'X' lock modes compatible on a key? We're getting some odd deadlocks here
I just can't understand why SQL would be granting a 'U' lock on a row, then an 'X' lock on the same row (key)
 
Sly
morning all
 
12:32 PM
morning
 
@George.Palacios Right, that doesn't seem possible.
 
X isn't compatible with anything
also - i feel like there was a way better looking lock compat matrix in the official docs somewhere
but it's not on google page 1 now so it clearly never existed
 
@PeterVandivier Haha!
There are a couple of tables on this long docs page.
 
@George.Palacios is it showing that X is requested (rather than granted)?
 
@PeterVandivier It's granting a U, then an X
I'm guessing it might be something to do with Read Committed mode with RCSI on
@PeterVandivier Ah nevermind I'm an idiot. They're on separate keys. Mystery solved
It's two plans competing to update the same row
 
12:39 PM
lololo
well i'm glad the mystery is solved, back to the Mystery Machine
 
Bloody hobbit ID's
 
sneaky hobbitses
 
It is MY row. My precious.
Said query the first.
 
12:46 PM
Exactly
 
a btrieve value
thats an amazing name
 
1:26 PM
@George.Palacios Makes more sense than Hydroxybenzotriazole
 
@TomV Damn. That was subtle.
Wait, dry hobbits are explosive?!
 
1:51 PM
@George.Palacios only in case insensitive contexts
 
2:14 PM
(HoBT <> HOBt)
 
2:25 PM
Which is most often the case (if you pardon the pun) with SQL Server
 
2:39 PM
iirc, this chat room gets timed out if there's not enough puns-per-day
 
This chat room runs on JEAGL
9
 
3:07 PM
Hi friends...
 
3:43 PM
Hi
 
3:54 PM
Has anyone installed a wildcard certificate on a core server 2016? I mean, using PowerShell
Sorry, a IIS server
 
 
3 hours later…
6:27 PM
@Lamak Of course it was. You were all like "Querido diario, Hoy ha sido el mejor día de todos. Billinkc es mas guapo en persona"
 
@billinkc I mean....the last part was a given though, can't be uglier than that avatar
 
Debateable
 
well….I did have some hope to see you in your kilt though...
in st patrick's of all days too
 
7:04 PM
What? No kilt?
 
yeah, so disappointing
 

« first day (2995 days earlier)      last day (1873 days later) »