« first day (4321 days earlier)      last day (684 days later) » 
00:00 - 19:0019:00 - 00:00

12:23 AM
So has anyone used SSDT to manage their DDL changes, and does it always generate a script to redeploy every single Table in the database?...or is the Vendor of my company's ERP system just dumb?
1:04 AM
We use Azure DevOps (on-premises) with Visual Studio 2022 for all code including T-SQL. Works great, but there are a lot of things to get correct.
Sqlpackage.exe has a lot of options.
1:58 AM
Yea I figured this one is more so on the ERP Vendor, not Microsoft lol.
I wouldn't mind, except they also love storing files in the database, which takes forever to upgrade, even though there's no schema changes.
@HannahVernon So your T-SQL is part of a project / solution / repo in Azure DevOps?...is it a database project or how do you go about managing the database in DevOps?
 
2 hours later…
3:46 AM
@J.D. yah the project files are .sqlproj, so essentially SSDT
It's so awesome
Git repo with all the benefits
Commits go into a branch named after the Jira ticket with merge into /dev
We have automatic deploys into the dev SQL Server instance, and manual deploys into QA, UAT, and finally Prod
Because chamges to table structures are stupid rebuilds
one of these days I'll blog the setup
4:18 AM
Interesting, yea I'd definitely read about it if you did. We use on-prem Azure DevOps too but the database layer is the only thing not managed, source controlled, or pipelined through it currently. Deploys are semi-manual unfortunately.
I'm starting to think more about DevOps for our process lately but just want to be careful not to get too stupid with how we implement it based on some of the poor implementations I've seen other people do and some of my past experiences with oddities in doing database projects in Visual Studio.
 
3 hours later…
7:06 AM
Morning
 
1 hour later…
8:34 AM
Morning
@Hannah, I ran one your scripts (resize TLOG) against a database and got some funny results back.
ALTER DATABASE [DATABASE] MODIFY FILE ( NAME = N'database_log', SIZE = 8192MB , FILEGROWTH = 1024MB );
ALTER DATABASE [DATABASE] MODIFY FILE ( NAME = N'database_log', SIZE = 16384MB );
ALTER DATABASE [DATABASE] MODIFY FILE ( NAME = N'database_log', SIZE = 24576MB );
ALTER DATABASE [DATABASE] MODIFY FILE ( NAME = N'database_log', SIZE = 32768MB );
ALTER DATABASE [DATABASE] MODIFY FILE ( NAME = N'database_log', SIZE = 40960MB );
ALTER DATABASE [DATABASE] MODIFY FILE ( NAME = N'database_log', SIZE = 49152MB );
Major Version is 13
The last growth step looks like this:
6	2	76772540416	512	0	0	0	0	00000000:00000000:0000	0025706a:00003990:0006
6	2	77309411328	8192	0	0	0	0	00000000:00000000:0000	0025706a:00003cb9:000a
8192?
Could this be a new bug?
8:51 AM
Or does the database compatibility level impact the handling of growth?
 
3 hours later…
12:05 PM
@J.D. Oh man, I have had that exact thing happen. I'm trying to remember what the specific problem was, but it was very tedious to track down. You basically have to compare the change script to what the table looked like at deploy time.
And you can't just look at the changes in the specific table. In one case, the difference was the ANSI_NULLS was different when the script was run vs. when the table was created previously.
@JohnK.N. that's unexpected behavior. When I get a chance and am in front of a PC will look into it.
@JoshDarnell it's important that client settings match exactly between your source control version and what's existing in the target database, otherwise sqlpackage.exe will rebuild stuff that makes you think you're doing it wrong.
QUOTED_IDENTIFIER is one good one.
@JohnK.N. - I reopened this just now.
12:24 PM
@HannahVernon Yep, exactly.
I think one could write a book on all the wrinkles that come with deploying from source control.
Every green field database should use source control out of the gate though, because it forces good behavior in so many ways.
2
Circular cross-database references will fuck up even the best laid plans.
12:49 PM
@JoshDarnell Yea I was reading on that very thing yesterday. Apparently any different set options may cause such an issue. I'm guessing that's probably what I'm seeing with my Vendor's ERP system upgrades lol.
We had a developer who had set quoted identifier on in their ssms options for a while. So their code looked identical to what was in the database except it changed if another developer subsequently modified their code. Tracking that down was painful.
@HannahVernon How do you handle more complex cases like cross-database dependencies, complex features (e.g. replication), or things dependent on changes outside the database such as distributed transactions and enabling MSDTC on the server?
There are some things you can change via the database project but many infrastructure items are probably best managed with powershell desired state
Morning heap
1:12 PM
Morning
1:47 PM
ugh u ppl
Morning Erik
🦇
how are everyone's sinuses this morning
fine ty
yours?
rocking and rolling
must be all that sea air
have you tried powershell
I hear adding layers of abstraction and automation fix most problems
Or at least mask the problems with new ones
Bit like using regex
1:59 PM
bit... mask... regex...
why paul
have we not paid sufficient tribute
@PaulWhite such is life
At 3am
Best time to get things done. Fewer annoying humans around
Not that I'm in the mood to get things done, but it's the principle
@ErikDarling rough for sure, couldn't breathe at all at the gym through them.
have you tried a plant-based diet
i tried one for a month. i mostly felt cold and tired.
2:14 PM
coffee is a plant
As is deadly nightshade
And yet plutonium isn't
@PaulWhite Sounds like I'd have worse issues :/
Yeah but at least you'd be too sick to whine about it
Take one for the team
I've been practicing empathy btw
Is it working
who can be bothered to check
2:22 PM
that's the spirit
@PaulWhite 🤷‍♂️
I'll keep at it
sounds like trying
This might be the craziest logic I've witnessed on execution plans:
> [...] different plans from different application servers, connected to a SQL Server on a NUMA box. What we see is, that on one application server we have a different access plan for the same SQL statement than for all the other application servers. It seems NUMA explains how two different plans can exists for the same statement, when the application servers are connected to different NUMA nodes.
brain explodes
2:25 PM
How do I respond to that?
@SeanGallardy And it definitely wasn't the SET options?
I'm flabbergasted
@Charlieface MUST BE NUMA!
there was a question on here with similarly bad logic
numa node is a cache key now
apparently
2:26 PM
it was one of those "you're so wrong i don't even know where to begin" questions
Love that site
Also, I just couldn't respond to that, but the first email that came through said, "Double check the SET options for the same query run from different app servers"
🤣😂
if different app servers have different logins also check the default database
compat levels etc
No U Must Agree
Customer always right etc
yeah I responded and just said, check all the normal stuff first, numa has nothing to do with this.
2:30 PM
at least they didn't call it parameter sniffing
Upgrading to the cloud might help
The Microsoft share price
So I've heard, in the cloud you don't even need a DBA
hiyo
no morals
@SeanGallardy Looks like a NUMA problem
2:35 PM
I use greenshot and it does well, does anyone use something different for these types of screenshots?
also snagit
I love snagit
I wish they'd stop 'improving' it though
what don't you like about the improvements?
2:41 PM
they don't make anything better
this version is also the last complimentary license they are giving to MVPs
probably a good thing
but I like free things
you already have it
it'll only get worse, like SQLPrompt
I like the prospect of having newer free things
@PaulWhite yeah, good point
2:43 PM
Millenial detected
snagit hasn't gone too far down the SQLPrompt road yet, but I fear it will
the recent versions have just felt slightly harder to use
It has a bunch of nice features, it seems. Not sure how many I'd use but offers what greenshot has and more
@PaulWhite true, it started to feel a little more bloated
I started using it for screen video recording over camtasia for its simplicity
One solution is to buy an Apple. The thing will be flat out 100% of the time so you won't notice bloat
@Lamak camtasia won't even open on my macbook pro anymore
2:52 PM
@SeanGallardy I use Greenshot too, personally.
just deleted it
@ErikDarling tried using it a couple of times, but was too much for what I needed
it was good for recording training, back when it was all on windows
i'm switching over to streamlabs with my new setup though
@PaulWhite sqlprompt is brutal
also. hello everyone
@ErikDarling I was using OBS
Oh StreamLabs looks NICE
I'm going to check that out for sure now
3:05 PM
@swasheck hallo!
@SeanGallardy i got a whole new setup with a nikon z30 and wireless mic
maybe you can come up here and finally record all that ha/dr training
Funny you say that, I have the first module ready and was going to start recording. I have a logitech webcam... :D
@HannahVernon how's it going? i keep popping in and then not coming back. not sure why
The GF was looking to get away for the holidays, she might be down with some NYC action
High resolution isn't always your friend
3:08 PM
@SeanGallardy better be a brio
no resolution is my only friend, have you met me
@ErikDarling It's an older brio, yeah
@swasheck it's going well thanks! You?
I think you told me to get it
@HannahVernon wish i could say, "great!" but it's not. that's ok. i'm still alive and so's the family
@SeanGallardy i have a spare if you're broke on account of microsoft stock being a boat anchor
3:11 PM
@ErikDarling MSFT is at its lowest point in a year this morning. Poor Microsoft.
@swasheck glad your alive ♥
@swasheck seth!, hi!
thx
@Lamak what's up, buddy?
everything's ok, thanks
and you are alive, I see
@ErikDarling Yeah, nothing like being down $120 for the year
3:17 PM
Morning
@Lamak i am, indeed
that's good....great, even
@HannahVernon Thanks. At it.
you're welcome
what's new in Heapland?
3:25 PM
4837837378339 pages of transcript
time to flush
partitioning maybe
makes everything faster
I hope The Heap is a Heap
Oct 22 at 11:10, by Paul White
please consult the transcript
3:27 PM
lol
3:37 PM
@ErikDarling me 2
@SeanGallardy PicPick
@Lamak 👆🏼
@swasheck SQL Prompt Softtree solutions - SQL Assistant
@JohnK.N. does it grind SSMS to a halt?
> SQL Assistant will boost your database development productivity by 300% and more.
Not over 9000 detected
i like how that's highlighted, @SeanGallardy
It worked, drew my eyes right in...
@swasheck Nope
3:44 PM
i mean, in fairness, intellisense works OK for me
where i work everyone loves dbatools and redgate bundles
IntelliSense in Visual Studio is amazing
IntelliSense in SSMS is 🤡
what about ADS?
Dead to me
Doesn't work
🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡
Useless
3:46 PM
me? or ads?
ADS is the worst piece of software it's ever been my misfortune to install
wait. measuring efficiency by counting how many characters were added?
@JohnK.N. Your mileage may vary.
3:48 PM
Apparently
It's not 300% though
i've had a few stinkers. ADS isnt the worst, but it's way down there.
also, the fact that they just install it for you
that makes it crummy
Gotta bundle when no one wants your crap
Then you can talk about all the installs you have
instead of marking it dead
and making real improvements
64-bit SSMS will release with SQL Server 2022
sweet. more memory address space for sqlprompt to consume
3:51 PM
I type proc scroll down the suggestion list to create procedure, hit ENTER, add name and:
USE []
go

IF object_id('MyTestProc') IS NOT NULL
BEGIN
	PRINT 'Dropping procedure MyTestProc'
	DROP PROCEDURE [MyTestProc]
	IF @@ERROR = 0 PRINT 'Procedure MyTestProc dropped'
END
go

CREATE PROCEDURE [MyTestProc]
/***********************************************************
* Procedure description:
* Date:   03.11.2022
* Author: John
*
* Changes
* Date		Modified By			Comments
************************************************************
*
************************************************************/
I'd pay for a SQLPrompt Core that didn't include all the extra crap, and just did the productivity stuff. They could work on finishing that aspect too.
You can create headers and stuff. Automate things. Fully cusotmisable. Connect to MySQL, PostgreSQL, SQL Server, Oracle Database. Intregrates into SSMS, TOAD for Oracle, .... Ultra Edit, UE Studio, ....
People using source control for their databases and still keeping version history in procedure comments
Just an example.
3:54 PM
It's very common
No way affiliated.
Hefty price tag if you want the Pro Version.
I wonder when Azure Data Studio will offer a Pro version
> SoftTree SQL Assistant 12.1 for Oracle, SQL Server, Azure SQL, Hive, SparkSQL, Cassandra, DB2, Sybase, PostgreSQL, Redshift, Teradata, Netezza, Greenplum, MS Access, SQLite, MariaDB, MySQL, Snowflake, and MongoDB
All in one product.
If someone knows COM plumbing, we could create our own add-in
Every COM expert is permanently in a soft padded room by now
4:02 PM
I'd love to learn, but who has the time for look for GUIDs in a sea of GUIDs
Really is the least fun you can have without installing ADS
I got used to having sql prompt now...missing it in my work pc, can't install it for some reason
I tired ADS once, to query a database hosted on a MS platform. I had 50$ to spend on "free" Azure stuff. After a query took 5 minutes to return one result from a table with one record, ....
...well I gave up.
@Lamak Just asking the obvious: Runas ....?
nah, my new work pc has the whole user limiting thingy imaginable
companies love to prevent their employees being productive
4
4:11 PM
tried running psexec -s -i -h cmd.exe (or something) to have a CMD prompt in the SYSTEM context?
But that might be locked down too.
@PaulWhite yeah, and multinationals love it even more...they don't realize we are in south america!, we don't need rules
that's for first world countries
sounds like you're against the international rules-based order
prepare to be sanctioned
they can take away my sql prompt, but they can't take my freeDOMMMMMM
or something like that
@JohnK.N. tabs detected
4:29 PM
I can't believe I went this long until coffee. No wonder I was dragging (even if I did get the kids to daycare on time for the first in weeks)
Sounds like the installer advice is better than the docs advice
Might explain why he's seeing multiple plans cached for the same query
OPTION(DECOMPILE);
I still can't get over that
like wow
> How do graph databases avoid clustering issues from relationship hops?
I understand each word individually, but the overall meaning eludes me.
4:43 PM
you and everyone except the person who wrote it
Googling for "relationship hops" shows that it's about dumping your boy/girlfriend every two weeks or so.
I used the buffalo thing yesterday at work, good usage, will save for use again
@mustaccio 😂😂😂😂😂😂😂😂😂😂😂😂
I guess one might get some clustering issues if one's pool of candidates is not very large.
GraphDBs are a scam, change my mind
1
Q: Why is SQL Server setup recommending MAXDOP 8 here?

Brent OzarI'm running SQL Server 2022 RC1 setup on an AWS i3.16xlarge with 2 sockets, 2 NUMA nodes, 32 logical processors per node, 64 logical processors altogether. Setup is recommending MAXDOP 8: But if you click on that link for configuring MAXDOP, the recommendations say: Based on that KB article, MA...

4:53 PM
@Lamak it's spelled "freedumb" in the US
I guess I should answer that one
The simple answer is that MAXDOP 8 is always the right choice
Weird AWS chips and HT aside, I suppose SQL Server is doing the right calculation?
"the people who write the installer and the people who write the docs are on separate teams who have no means through which they may communicate with each other, due to the precipitous fall of $MSFT$"
ha ha perhaps
error log info added
is it a soft NUMA thing?
so is brent just publicly trolling microsoft with this? :D
5:08 PM
he would never
shame on me for entertaining the notion
but no, it seems like a genuine question
@ypercubeᵀᴹ *fewer
@PaulWhite i respect this pedantry
@PaulWhite ?
I have no idea but "Based on that KB article, MAXDOP should be 16" is wrong. Based on that article, it should be "at 16 or less". ;) — ypercubeᵀᴹ 2 mins ago
16 or fewer
5:14 PM
16 or less should be 16 or fewer
I'm copying the article verbatim
1. It's a joke about being pedantic in English about "less" vs "fewer"
2. I don't see your quoted text anywhere in the linked docs article
metapedantry ftw
jeaglpedantry even
mind := blown
5:19 PM
set to 16 or less would be fine
set to 16 cores or fewer would also be fine
no one knows the rules anyway
it's just funny
it was funnier before, but now its less funny
it's going to be funnier when I delete that non-comment
@PaulWhite Oh, I deletes my comment. Brent may have a point there. but his wording pointed to not the correct part I think
fewer funnies makes for less funny
always a happy day when a comment is deleted
5:21 PM
dbcc shrinkquestion
another valuable page added to the transcript
transcript free space
No answer from Sean yet
I assume Top Men are on the case
"this answer brought to you by the ADS team"
fighting words
I see Israel had another election and Netanyahu won this time
5:26 PM
Watch out or the BDS crew will come
@PaulWhite if you dont win, just call a new election and try again
5:47 PM
@swasheck Gotta love parliamentary forms of government.
do i, though?
And Israeli politics is such a crapshoot at the moment and Netanyahu is just sort of a scourge upon it. One can hope he has to step down when/if he's sentenced for his corruption charges.
It’s hard to tell that corruption is illegal
If it were DC would be empty
Good point
6:00 PM
Strange idea of fun
people are strange
When you're a stranger
Shadowy figures come out of the rain
thanks. was hoping someone would catch it
Faces look ugly
6:02 PM
only when you're strange though
or when you're alone
Women seem wicked
And they should fix those cobblestones
@PaulWhite sounds like. SQL Server conference
Anyway seems great to have a written Constitution
seemed like a good idea at the time
6:05 PM
Shame no one can agree what the words mean
The Dead South are AWESOME just have to say that
my favourite band recently
what's a dead south
the opposite of an alive north
6:07 PM
Don't get me started on the Zombie West
which is worth 2 Ollie Norths
So basically useless
Unless you want to illegally sell arms in defiance of Congress
unless you're looking for a fall guy for an ex dead president
That too
or to divert illegal funds
6:09 PM
that too
Is there anything illegal that guy can't do?
he's white and well-connected so i think that he probably believed he could do anything he wanted to do
How odd
6:12 PM
sidebar ... butterfingers are a crap candy
rolling back
To a save point
psh. who uses those. ALL-OR-NOTHING
6:16 PM
will brent be able to cope with the $8 a month that blue check is gonna cost him?
poor dude
It's a pretty simple algorithm
so ... at the risk of being shouted down vociferously ... anyone mess around with DuckDb?
The Twitter bot too
6:40 PM
@swasheck no, but I've got a tiny amount of experience using RocksDB, which doesn't btw.
As a rule, I avoid any database named after an animal, figure from Greek/Roman mythology, or that sounds like a Pokemon character.
Or with "Data" in the name.
these are good rules
@bbaird so, no "penguin zeus data pikachu db"?
@PaulWhite But what kind of day is it when an answer is moved to a comment?
6:45 PM
also if its touted as a NoSQL database, it's a NoGo for me
@J.D. as long as the comment was deleted, we're all good :-D
@Lamak I make an exception for PZDPDB
good
Hey Google, what time is it in Wellington, NZ
@HannahVernon Narrator: "It wasn't...": dba.stackexchange.com/questions/49278/…
@J.D. it is now
6:49 PM
@HannahVernon 7:49 am
is that pre sleep time or post sleep time?
or are you actually sleeping now
@HannahVernon Hats off to you for going the extra mile and deleting both comments lol.
Depends when I feel tired
@J.D. good lord those comments weren't needed
They rarely are
6:52 PM
@Zikato Am I high or is there no discrepancy? The rec is like: don't set it higher than 16... and the installer is recommending 8, which, last I checked, is less than 16.
Doesn't set it to 15 tho
Everyone knows you have to keep DOP as powers of two or the query plan isn't cached.
I'm trying to think of some other weird "rule" people use to justify doing dumb things but that's just what came to mind.
@J.D. typically a normal day, when someone without the ability to leave a comment decides to anyway
"Gotta use NOLOCK, iT'S fAsTER!"
@bbaird 15 is a power of 2
Just not an integer one
😀
6:56 PM
As a someone who holds a degree in mathematics and routinely would hang around people who went on to receive doctorates in the field, I should have anticipated that.
That's Dr Logarithm to you
It's all very weird though
They should've just prevented MAXDOP 0 and be done with it
None of this DOP feedback nonsense
@bbaird Oh, I haven't actually read that. I only read Paul's blog posts and transcript
doesn't mean that @bbaird isn't high though
00:00 - 19:0019:00 - 00:00

« first day (4321 days earlier)      last day (684 days later) »