Coding Standards

External Article

Transact-SQL Formatting Standards

  • Article

How should SQL code be formatted? What sort of indentation should you use? Should keywords be in upper case? How should lists be lined up? SQL is one of those languages that will execute however you treat whitespace and capitalization. However, the way SQL is laid out will effect its readability and the time taken to review and understand it. Standardisation of code layout is an important issue, but what standard should you adopt? Rob avoids a direct answer, but tells you the sort of answers you'll need to decide upon when creating a strategy for formatting SQL code.

2009-09-09

4,890 reads

External Article

SQL Code Layout and Beautification

  • Article

William Brewer takes a look at the whole topic of SQL Code layout and beautification, an important aspect to SQL programming style. He concludes that once you are tired of laying SQL out by hand, you had better choose a tool with plenty of knobs to twiddle, because nobody seems to agree on the best way of doing it.

2008-05-26

6,244 reads

Technical Article

domain admin recorded as dbo

  • Topic

I am a part of the domain admin on our server that houses our sql dbases.  Any changes I make to a dbase gives a stamp of dbo.  If I am not a part of the domain admin group the name stamp that is used is my login.  How can I be a part of […]

2005-03-23

5 reads

Technical Article

RE: auto grow

  • Reply

Just to verify - Does the Date Time Modified only get updated when an Auto Grow takes place or when the SQL Server Service is stopped/restarted. Thanks.

2003-05-29

1 reads

Technical Article

RE: Is there a difference?

  • Reply

It is better to put the most distinct restriction (date in this case) first anyway. You never know what surprises to expect from the optimizer. So why gamble? It become even more important when your queries become more complex, especially with joins. Look at the order here: SELECT ... FROM t1 JOIN t2 ON t1.c1 […]

You rated this post out of 5. Change rating

2003-05-06

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers