Comments on: Use What Works: Prefixing Database Tables With ‘tbl’ https://thomaslarock.com/2012/10/use-what-works-prefixing-database-tables-with-tbl/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Mon, 27 Mar 2023 16:55:26 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: How to build Database REST APIs crossing multiple schemas https://thomaslarock.com/2012/10/use-what-works-prefixing-database-tables-with-tbl/#comment-91994 Mon, 27 Mar 2023 16:55:26 +0000 http://thomaslarock.com/?p=9532#comment-91994 […] Here’s the opposite take from our friends in SQL Server land where they advocate always puttin… […]

]]>
By: Thomas LaRock https://thomaslarock.com/2012/10/use-what-works-prefixing-database-tables-with-tbl/#comment-52722 Thu, 02 May 2019 17:14:00 +0000 http://thomaslarock.com/?p=9532#comment-52722 In reply to Greg Low.

Well now, I’m not sure this post aged well. Then again, maybe it did.

The thoughts contained in this post seem…old. I wouldn’t use tbl_, or vw_, or any other prefixes these days. Wayne Snyder was the one, years ago, that helped me to understand that the name of the object should offer the consumer a clear understanding.

We spent a lot of energy discussing prefixes in this post, and in the comments, but I don’t see anyone talking about the most important thing here: the data.

Greg, you know as well as I do, when it comes to working with data for ML purposes, the attribute names are often misleading. For example, an attribute of IsCustomer…is that a customer when the report was run, or was that row updated later, after entered into the CMS?

You know, I should write a new post at this point.

Thanks for stopping by Greg, and for getting some words flowing from my fingers again. It’s been a while.

Cheers!

]]>
By: Greg Low https://thomaslarock.com/2012/10/use-what-works-prefixing-database-tables-with-tbl/#comment-52674 Thu, 02 May 2019 03:00:46 +0000 http://thomaslarock.com/?p=9532#comment-52674 I’m in the “don’t use them camp”. If you want a simple example, ask yourself if a proc that’s sp_ is a system stored proc or an extended stored proc. Think it’s a system stored proc? Are all the extended stored procs xp_ prefixed? Go check it out. SQL Server has sp_ in both lists and xp_ in both lists.

They clearly had to change the implementation but weren’t game to change the names.

]]>
By: ThomasLaRock https://thomaslarock.com/2012/10/use-what-works-prefixing-database-tables-with-tbl/#comment-10554 Mon, 17 Mar 2014 13:01:00 +0000 http://thomaslarock.com/?p=9532#comment-10554 In reply to Daniel Liuzzi.

Yep…refactoring…and failing to clean up properly afterwards is a headache for lots of reasons.

]]>
By: Daniel Liuzzi https://thomaslarock.com/2012/10/use-what-works-prefixing-database-tables-with-tbl/#comment-10551 Sat, 15 Mar 2014 11:59:00 +0000 http://thomaslarock.com/?p=9532#comment-10551 In reply to Pedro Azevedo Lopes.

In that case you also have to consider that “tblCustomer” might actually be a view, because the guy who made the refactoring was too lazy to update the prefix.

If you’re doing offline review without proper CREATE scripts for the objects you’re reviewing, blindly trusting a prefix, you are risking the accuracy of your review.

]]>
By: What’s that object? | Base Table https://thomaslarock.com/2012/10/use-what-works-prefixing-database-tables-with-tbl/#comment-10219 Tue, 10 Dec 2013 19:30:32 +0000 http://thomaslarock.com/?p=9532#comment-10219 […] article from Thomas LaRock on why he tibbles. Read the comments, especially from Gail […]

]]>
By: SQLWorld https://thomaslarock.com/2012/10/use-what-works-prefixing-database-tables-with-tbl/#comment-7708 Wed, 12 Dec 2012 18:09:00 +0000 http://thomaslarock.com/?p=9532#comment-7708 In reply to Karen.

It sure is.. “caring”….. oops! I meant “Karen” LOL

]]>