<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx</link><description>Here’s a quick question for you. Do you abbreviate the names of schemas in SQL Server? I ask because I see that a lot of people do and quite frankly I don’t really see a justification for it. Let me show you what I mean. What is more meaningful? This:</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#22963</link><pubDate>Mon, 08 Mar 2010 23:28:21 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22963</guid><dc:creator>Nathan Griffiths</dc:creator><description>&lt;p&gt;I've never seen anywhere using three-letter schema names but your comments are right, I can't think of any justification for naming schemas like that either. We do use schemas and they are a great feature, but I have seen some instances where developers have started to treat the schema name as part of the object name, e.g. &amp;quot;Policy.Details&amp;quot; instead of &amp;quot;Policy.PolicyDetails&amp;quot; - this often leads to multiple tables with the same name on different schemas, e.g. &amp;quot;Contract.Details&amp;quot; and &amp;quot;Policy.Details&amp;quot; &amp;nbsp;- then someone refers to the &amp;quot;Details&amp;quot; table.... I think this can lead to unnecessary confusion.&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#22965</link><pubDate>Mon, 08 Mar 2010 23:44:37 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22965</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;I agree with Nathan, I don't see anything as obtuse as the example you cite, but as a counter-point I do agree that typing longer schemas can be annoying in many-table queries (one of the reasons I like dbo). &amp;nbsp;I am using schemas but I generally turn off IntelliSense as it seems to get in my way more often than it helps. &amp;nbsp;Every couple of months I give it another spin (both the built-in and the Red-Gate version) but I always tend to turn it off quickly.&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#22968</link><pubDate>Tue, 09 Mar 2010 00:18:23 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22968</guid><dc:creator>Tom Groszko</dc:creator><description>&lt;p&gt;Likely SQL developers do it for the same reason they obfuscate table name aliases. With intellesence typing is not an issue.&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23009</link><pubDate>Tue, 09 Mar 2010 05:38:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23009</guid><dc:creator>James @ BI Monkey</dc:creator><description>&lt;p&gt;All abbreviation in Column / Table / Filed names drives me nuts. There's no need for it, especially now intellisense is here to save your fingers. Why call a table ClmRecGrsAmt when you can call it ClaimRecievedGrossAmount, something that may actually make sense?&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23011</link><pubDate>Tue, 09 Mar 2010 08:55:19 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23011</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;Ah aliases....I must admit I do use aliases which are, inherently, abbreviations. I might have to admit to double standards here :)&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23013</link><pubDate>Tue, 09 Mar 2010 09:45:10 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23013</guid><dc:creator>Bill</dc:creator><description>&lt;p&gt;Our data modeling team are all former Mainframe COBOL folks and the naming standard for tables was 18 characters when I started. &amp;nbsp;After petitioning the Standards Committee, yes we have one, we were able to have the length of table names increased to 32 characters---ostensibly to make things more readable. &amp;nbsp;Now instead of SR_M_ADV_IVC_HST_S we get things like SHRCLASMSLSLD_PRTFFDSHRCLAS_VM&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23014</link><pubDate>Tue, 09 Mar 2010 09:57:17 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23014</guid><dc:creator>David Wynne</dc:creator><description>&lt;p&gt;Hello from the C# world - abbreviations and prefixes/Hungarian notation where long ago deemed a code smell. &amp;nbsp;Intellisence does much to negate the need, but the bottom line is about readability, maintainability and lots of other stuff that ends in ability.&lt;/p&gt;
&lt;p&gt;If you're basing architectural decisions on the &amp;quot;how quickly I can type a name&amp;quot; - you need to step back and ask yourself some questions.&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23015</link><pubDate>Tue, 09 Mar 2010 11:14:27 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23015</guid><dc:creator>Ben E</dc:creator><description>&lt;p&gt;David's hit the nail on the head there: naming conventions should be driven by clarity rather then brevity.&lt;/p&gt;
&lt;p&gt;Code should aim to be self-documenting as much as possible, which isn't going to happen if object names are unnecessarily abbreviated.&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23029</link><pubDate>Tue, 09 Mar 2010 13:59:01 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23029</guid><dc:creator>Eric Wisdahl</dc:creator><description>&lt;p&gt;Abbreviations in schema, table and column names drive me crazy. &amp;nbsp;Then again, so do aliases where you aren't referencing the same table multiple times. &amp;nbsp;Spell it out so that there is no ambiguity for the next person that comes along. &amp;nbsp;I don't need to search through the code to find out which table T39 belongs to... And I don't need to wonder what the Act schema should be used for (Actuarial? Accounting?).&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23054</link><pubDate>Tue, 09 Mar 2010 18:36:44 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23054</guid><dc:creator>WIDBA</dc:creator><description>&lt;p&gt;We have both - some abbreviations work cause they are so well known, when their is any ambiguity, we move towards a short word that makes sense. &amp;nbsp;I don't see the need for automatedpaymentsystem.outstandingcollections when AP will do. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;but as you mentioned, right/wrong does not apply. &amp;nbsp;too short and its obscure, too long and its cumbersome.&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23333</link><pubDate>Sat, 13 Mar 2010 18:56:26 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23333</guid><dc:creator>Home</dc:creator><description>&lt;p&gt;Two reasons&lt;/p&gt;
&lt;p&gt;1. Some database products has limit of chars in name&lt;/p&gt;
&lt;p&gt;2. Once your product support multiple databases, you must use the most restricted one&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23348</link><pubDate>Sun, 14 Mar 2010 14:51:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23348</guid><dc:creator>Dave F</dc:creator><description>&lt;p&gt;Much ado about nothing. Move on.&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#23937</link><pubDate>Thu, 01 Apr 2010 05:15:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23937</guid><dc:creator>Dave F</dc:creator><description>&lt;p&gt;Much ado about nothing.&lt;/p&gt;
</description></item><item><title>re: Why abbreviate schema names?</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/03/08/why-do-you-abbreviate-schema-names.aspx#28356</link><pubDate>Fri, 27 Aug 2010 09:22:16 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:28356</guid><dc:creator>Chris Anderson</dc:creator><description>&lt;p&gt;Defintely a balance. &amp;nbsp;Generally I err on the side of spelling out reasonably descriptive names for table and column names, but do abbreviate schemas names. &amp;nbsp;I think it's one of those things thats so pervasive in a particular app domain, that to constantly see it spelled out is counter-productive. &amp;nbsp;Think the people who use 'tbl*' as a naming convention for tables. &amp;nbsp;After about the third query you write, you're thinking &amp;quot;Yes, I know it's a table...&amp;quot;. &amp;nbsp;Given an hour or so orientation to a database, I would expect most db professionals to quickly acclimate a few abbreviated objects (e.g. that the 'rec' schema refers to 'reconciliation', or 'recreation', or 'recordsales', etc. whatever it means to that database)&lt;/p&gt;
</description></item></channel></rss>