« first day (2131 days earlier)      last day (2742 days later) » 

7:00 AM
💤
 
"morning"
 
7:37 AM
Thank god it's friday
 
 
2 hours later…
10:23 AM
How did it get to Friday?
 
10:40 AM
@Philᵀᴹ with a scheduled maintenance
 
 
2 hours later…
1:05 PM
0
Q: Is "Do not prefix your tables with tbl" really a problem?

Rafael PiccinelliI'm watching some Brent Ozar videos ( Like this one ) and he says to not prefix tables with TBL. On the internet I found some blogs saying it adds nothing do documentation, and it says that "it takes longer to read it ". It this really a problem? Because i'm prefixing tables with tbl since my ...

This should be in , not
 
@ypercubeᵀᴹ wrdI wrdlike wrdyour wrdcomment
3
 
1:32 PM
One scenario where knowing beforehand whether an object in an unfamiliar script is a table or a view can be useful is when you want to quickly find it in SSMS's Object Explorer. However, you can relatively easily sp_help yourself in this case.
 
@AndriyM How often do you need that?
I mean even if you need it, when you are writing code for the same database, you will become familiarized at some point and know which are tables and which are views.
 
I guess consultants might have that scenario more often than others.
 
Do I win a prize for the column naming conventions used here?
 
@Philᵀᴹ Yes. And bonus points for the nvarchar(50) + nvarchar(15) primary keys.
 
And this beauty, with tbl prefixes, data type column prefixes, and a splash of tmp_ too:
I've got a linked server setup between these two schemas - it's a proper headache trying to query between the two
dtPaymentDate is my favourite
 
1:42 PM
I lik ethe Number column that is nvarchar(50). You must have long and weird numbers in there.
4
 
@Philᵀᴹ I'm disappointed - surely you have a table where they preface column names with the current table name. You know, for when those columns suddenly become detached the DBSurgeon can reattach them
 
@Philᵀᴹ Perhaps @dezso would appreciate.
 
2:00 PM
@AndriyM In SSMS you can just hover over the object name and the tooltip will tell you
 
@TomV Indeed. I never relied on that feature, though, which is probably why I couldn't think of it right away.
 
2:42 PM
@ypercubeᵀᴹ The n in nvarchar means number, right?
5
 
Or possibly n00b.
2
 
2:55 PM
Thank you @Shanky. Your last comment has answered my question. I don't know a way of marking comments as the accepted answer. — Stackoverflowuser yesterday
sigh
 
typical StackOverflow user
 
@Lamak I'll work on spreading the sickness :D
 
yeah, you should keep doing that :-)
 
3:30 PM
"does anyone have a good place to start other than the Best Practices Documentation for using Dynamic memory with SQL server." .... — Philᵀᴹ 9 secs ago
 
Reading Comprehension 101.
 
@AndriyM no
we have the proverbial disaster Friday today, so I just unpreciate everything.
 
Sorry about that.
 
@dezso what's disaster Friday?
you doing DR tests or something else? like devs requiring urgent prod fixes on Friday afternoon close to beer o'clock?
 
@Marian when you wish yourself a calm last day of work, and then everything crashes, at the same time
 
3:43 PM
argh, sorry mate
 
(and then you make it worse by changing the wrong stuff)
@Marian now that you say, I'd promised them to roll something out
 
uhm.. indeed, looks like an agitated Friday
 
^^ true story, dat
 
Awesome
Get ready to protect it :P
 
And remove 1,000,000 off-topic comments.
 
4:17 PM
0
A: Is adding the ‘tbl’ prefix to table names really a problem?

dezsoFor the funs: as a Hungarian, I really don't see any value in the original Hungarian notation - and any similar attempt when naming database objects.

 
@PaulWhite this one appeared to me in the HNQ list too
 
Great.
 
@dezso How unappreciative of you. Appreciated.
So, Brent essentially contributed two HNQ questions today, starring in both.
 
@dezso What sort of an "answer" to the question is that?
@AndriyM Perhaps he tweeted them? Haven't checked. Should do, I guess.
 
In which I probably go a little overboard answering a Stack question: http://dba.stackexchange.com/questions/154227/pagination-in-sql/154248#154248 PasteThePlan comes in so handy for this.
 
4:32 PM
@Lamak Thanks!
 
no problem
 
For example, in PostgreSQL a view is in reality a table, too: postgresql.org/docs/9.6/static/rules-views.html - so there the difference is even less important. — dezso 27 mins ago
@dezso a view is a table everywhere, according to the SQL standard. Just not a base table ;)
But I'll try to keep myself from commenting further on that q. We don't want to give Paul more work, on removing comments
 
@PaulWhite you guys have a crazy wild life over there
This is what nightmares are made of! Australian woman's snap of mammoth huntsman spider terrifies arachnophobes!… https://twitter.com/i/web/status/794127846272733184
 
yikes
 
5:06 PM
@ypercubeᵀᴹ Appreciated :)
(obligatory)
 
5:22 PM
9 answers now
 
@PaulWhite I guess they are on par
and this was the best I could produce today
 
Oct 2 at 12:48, by Tom V
Answer only as good as question --blam
 
I removed it, after earning some undeserved unicorn points
 
5:34 PM
@dezso Cheers.
OMG the thing I dread most in life: email from a family member that starts, "my computer is slow..."
 
@PaulWhite at least it's not 'the database is slow'
 
@dezso Yeah but if you think SE people are bad at formulating questions...
 
Favourite thing I've read on the internet in a while:
"Everyone has a test environment. Some people are lucky enough to have a separate environment to run production in as well."
10
 
6:10 PM
Hello all
 
6:24 PM
> I want a trigger that ...
Whenever I see such a question, I want to comment:
> And I want Monica Belucci but what are my chances ...
 
@ypercubeᵀᴹ Also asked on SO.
This sounds like an interesting project, do let us know if you have a question! — Shadow 8 hours ago
 
7:22 PM
how bizarre of a question
24
Q: Is there any way to bring an egg to its natural state (not boiled) after you cook it?

SuhanyThis is probably a stupid question, but I'm curious now after I opened the refrigerator looking for eggs to make a cake and there was only one and it was cooked. Is there any way to undo that, whether at home or an industrial way?

 
7:56 PM
debugging multi-threaded race conditions is a royal pain
Why don't regular apps have a locking mechanism by default
:33320192 :)
 
That was rather efficient. I guess fourteen rubber ducks are better than one.
Not real rubber ducks, of course, just stand-ins, but still
 
8:12 PM
@AndriyM /ducks
 
8:25 PM
o.O
 
 
2 hours later…
10:49 PM
"This adds a large amount of overhead to the query." Not necessarily. If the query returns 30 rows, sorting them is inexpensive. — ypercubeᵀᴹ 1 min ago
They must be Brent Ozar's followers ;)
 
11:29 PM
I shouldn't be storing binary files in an SQL database right? I'm using SQL Server. The files would range from a few kbs up to around 50 Mbs. It'll be mostly images but also PDFs and other documents.
The main reason I'm asking is because my approach is currently to just store the files in a folder and then store the path in a table. But SQL Server has the FILESTREAM type which seems to do the same, but I'm not sure.
Looks like FILESTREAM isn't an option at the moment, so a filepath it is.
 
11:50 PM
@WilliamMariager why isn't it an option?
@WilliamMariager There are pros and cons in either case
76
Q: Files - in the database or not?

Jack DouglasWhat is the best place for storing binary files that are related to data in your database? Should you: Store in the database with a blob Store on the filesystem with a link in the database Store in the filesystem but rename to a hash of the contents and store the hash on the database Something ...

 
@ypercubeᵀᴹ Well, I guess it's an option if I run an actual server. Currently just using a standard SQL Server+Database option on Azure.
 
@WilliamMariager Oh. I have no idea about Azure.
 
Currently setting up a cloud file service, and then I'll couple the two. Should work well.
 

« first day (2131 days earlier)      last day (2742 days later) »