SQL & Development home

Back Home Up Next


Code Format  Language & Coding  Programming Objects  Date Programming  Geospatial  Source Code Control  XML Coding  Coding Reference Websites

 

Code Formatting Standards and Naming Conventions

Suggested Object Naming Conventions

 

Leszynski Naming Conventions for Microsoft Solution Developers

[not at all specific to T-SQL]

Hungarian Notation - The Good, Bad and the Ugly

[not at all specific to T-SQL]
A commentary on one notation method.

T-SQL Coding Standards
By Brian Walker MSDN...or a .pdf version
.
 

T-SQL Formatting
By Robert Sheldon at Simple-Talk.

  

An online code "beautifier"

 

But also take a look at DevArt's "SQL Complete" product...don't miss the free Express Edition (they integrate into SSMS)...

        ...and Red-Gate's "Refactor" product.

 

And here's another, "Code Prettifier" found at Simple-Talk

From the developers at wangz.net.

 

 

From the developers at Red-Gate.

 

The Code Prettifier formats SQL, C#, and VB code.

 

Structured Query Language, Coding, Programming, and Coding Standards

Don't forget to see my library & reference book list.

 

See my Text Editor Shortcuts document

  

History on the SQL language

 

Comparison of Different SQL Implementations

 

SQL Server Tutorials - Lesson 08 Transact-SQL Expressions

  

Beware of the System Generated Constraint Name

A DatabaseJournal.com article by Gregory Larsen.

Twiki, an "Open Source Wiki for the Enterprise"

Useful for documentation efforts.

Logical Query Processing Steps

From Itzik Ben-Gan's outstanding book <see page for more detail>.

Creative Solutions by Using a Number Table

By Greg Larsen for Simple Talk.

Regular Expression Library (RegExLib.com)

Useful for a number of programming languages including SQL.

Calling a Web Service from within SQL Server

By Gregory A. Larsen, at DatabaseJournal.com.

Adventure Works Cycles Storefront 2000

Sample code for an e-commerce site for a ficticious sportings goods manufacturer.

Using a Parent Child Hierarchy in SQL Server to Implement a Custom Security Scheme

By Ray Barley from MSSQLTips.com

13 Things You Should Know About Statistics and the Query Optimizer

by Fabiano Amorim at Simple-Talk.

10 Ways to Suck at Programming

by Donnie Garvich, primarily an article on web application programming.

Twiki, an "Open Source Wiki for the Enterprise"

Useful for documentation efforts.

Simple T-SQL Proper Case User-Defined Function

From Jeff Smith, a Boston Dev.

Logical Query Processing Steps

From Itzik Ben-Gan's outstanding book <see page for more detail>.

Creative Solutions by Using a Number Table

By Greg Larsen for Simple Talk.

Tibor Karaszi's (MVP) "Ultimate Guide to the DATETIME Datatypes"

Found on his website, www.karaszi.com.

Integrating SharePoint Data with SQL Server (This web-services approach offers minimal coding)

SQL Server Magazine, InstantDoc #101656, by Anup Kafle.

Sending E-mail from SQL Server 200X

From DevX.com.

T-SQL LAB 2 - Writing Conditional WHERE Clauses

A SQLServerCentral.com resource by Jacob Sebastian, which also describes usage of sp_ExecuteSQL versus the EXEC command.

Microsoft Access & SQL Server

 

A multi-part series by Tim Ford at MSSQLTips.com, tips 1470, 1471, 1480, 1482, 1490, and 2023.

More links on Microsoft Access Integration w/ SQL Server

 

Using the LIKE Operator with SQL Wildcards

   

A look inside .NET DLLs with Reflector

Have you ever had a compiled DLL and wondered what was inside it?

From TechRepublic, posted March 4, 2008.

Links to the APPLY Operator:  

Free eBook from Simple Talk,
"Defensive Database Programming"

by Alex Kuznetsov.

fabFORCE.net (DBDesigner4 visual database design tool for MySQL)

Very cool database design tool (open source) if you develop with MySQL.

Send Email from SQL Server Express Using a CLR Stored Procedure

By Greg Robidoux at MSSQLTips.com.

An blog post on Scalar Subqueries

An MSDN blog post by Craig Freedman.

Pioneering Active Server Pages

ASP and ASP.Net resources from the "15 Seconds" website, such as Using ASP with SQL-DMO for "anywhere" management. Also Visual Studio (2005) Tutorials!

Send Email from SQL Server Express Using a CLR Stored Procedure

By Greg Robidoux at MSSQLTips.com.

An blog post on Scalar Subqueries

An MSDN blog post by Craig Freedman.

Free eBook on software pricing suggestions,
"Don't Just Roll the Dice
A Usefully Short Guide to Software Pricing
"

By Neil Davidson of Simple-Talk (Red Gate).

Querying Active Directory in SQL Server  
An excellent article on Defensive Error Handling From Simple-Talk, by Alex Kuznetsov, with code samples and good examples using Try...Catch.

Create a SQL Server Data Dictionary in Seconds using Extended Properties

From MSSQLTips.com by Ken Simmons.

Displaying Sorted Hierarchies (SQL Spackle)

From SQLServerCentral.com by Jeff Moden.

Creating Tray Applications in .NET: A Practical Guide

From Simple-Talk.com by Michael Sorens; a November 4, 2010 post.

SQL & the JOIN Operator

From SQLServerCentral.com by Wagner Crivelini.

A Visual Explanation of JOINs

From CodingHorror.com, by Jeff Atwood. Nice diagrams.

Visual Representation of SQL Joins

From CodeProject.com.

The Red Gate Guide to SQL Server Team-based Development

A Simple-Talk free eBook by Phil Factor, Grant Fritchey, Alex Kuznetsov, and Mladen Prajdić.

 

Programming Object Coding

Simple T-SQL Proper Case User-Defined Function

From Jeff Smith, a Boston Dev.

Breaking the Spell on Stored Procedures and Functions

When do use sprocs v. functions? Excellent article and broader than the title.

#2537 Should I use a view, a stored procedure, or a user-defined function?

From aspfaq.com.

Interesting article on Stored-Procedure basics...a number of valuable points made

An Addison-Wesley site reference by Ken Henderson, who also wrote "The Guru's Guide to T-SQL"...an excellent resource!

"Don't Avoid the Unknown"

A SQLMag article (Instant Doc#47010) by Itzik Ben-Gan on Nulls in SQL Server.

Wikipedia article on NULL

Recommended by student Julie Vanbuskirk. Good examples of several NULL issues.

"Should I Use Identity or Not?"

A SQLMag article (Instant Doc#48165) by Itzik Ben-Gan.

"Gaps in SQL Server Identity Columns"

From MSSQLTips.com by Chad Boyd.

SQL Server Service Broker Example on How to Configure, Send and Receive Messages

From MSSQLTips.com by Jayakumar Krishnan.

How to Call a SharePoint Web Service from a SQL Server CLR Function

From MSSQLTips.com by Ray Barley.

 

Date Programming

T-SQL Function Finds Almost Any Kind of Date

SQL Server Magazine, InstantDoc #97590

Automate Date/Time Conversions

by Susan Perschke in SQL Mag, InstantDoc 94954.

T-SQL Function Finds Almost Any Kind of Date

SQL Server Magazine, InstantDoc #97590

Tibor Karaszi's (MVP) "Ultimate Guide to the DATETIME Datatypes"

Found on his website, www.karaszi.com.

 

Geospatial Coding

Microsoft SQL Server Spatial Data homepage

 

Beginning Spatial

A reference website, BeginningSpatial.com, from author Alastair Aitchison.

 

     

 

Check out /spatial_results_tab

Integrating SQL Server 2008 Spatial Capabilities with Microsoft Virtual Earth (now Bing)

From SQLMag.com by Tyler Chessman, InstantDoc #100528.

David Lean's ("Dave Does Data") Microsoft blog

Ed Katibah's ("Spatial Ed") blog

Tons of great posts.

Johannes Kebeck's blog

He is a Bing Maps Technology Specialist for Microsoft.

Isaac Kunen's blog

Again, tons of great posts.

Powerful Geographic Visualisations Made Easy with SQL Server 2008

From SQl-Server-Performance.com by John  O'Brien (MVP).
Visualizations with Management Studio

Part #1

Part #2

Bing Maps API documentation

From MSDN.

Bing Maps Developer Center

Web and Windows resources and more.

Bing Maps Interactive SDK

From Microsoft.com. Geocoding.

Silverlight Map Data Connector

From Codeplex.com

AJAX Map Data Connector

From Codeplex.com

GeoRSS.org

Reference website for creating GeoRSS feeds.

How to Implement a Custom HTTP Handler in .NET

 

(For example, if I wanted to create a custom GeoRSS handler)

From MSDN.

SQL Server Spatial Tools project on Codeplex

Provides useful functions.

Open Geospatial Consortium (OGC)

Official website.

Point Set Theory and the DE-9IM Matrix

From CodeHaus.org. Useful resource, nice diagrams and examples.

World Atlas, Longitute & Lattitude

From WorldAtlas.com.

SQL Server 2008 Spatial Tools

 

(Shape2SQL, and SQLSpatial Query Tool)

Free tools at www.SharpGIS.net, SQL Server 2008 Spatial Tools", by Morten Nielsen.

SharpMap, Geospatial Application Framework for the CLR

Free tools at Codeplex.com.

SpatialReference.org

Reference website.

"The Shapely Manual"

From GISPython.org

MapCruzin website

"Your home for Community Mapping and Participatory GIS Software, Tools, Maps, Shapefiles, and Tutorials".

US Census

Free cartographic boundary files.

 

Source Code Control Solutions

 

Microsoft's VisualStudio TeamEdition

There are about six different TeamEdition editions!

SourceGear

Tools for Small and Midsize Teams.

Seapine ALM (Application Lifecycle Manager)

 

AccureRev

 

List of Free Source Control Version Control Software apps

From www.TheFreeCountry.com

Subversion, an Open Source Source-Code Control Application

Often abbreviated as "SVN".

Excellent article on (non-Microsoft) Source-Code Control solutions for Visual Studio

Found at "The Code Project".

Affordable Source Code Control for Visual Studio

Found at "stresscrack", the blog of Chris Coughlin.

Database Source Control - The Cribsheet

By William Brewer, of Simple-Talk. The article talks about what it takes to bring database development under source code control.

Oh, don't forget that Red Gate now has a source code control product. :)

 

XML Coding

 

XML Tutorial

An excellent tutorial from W3Schools.com

XPath Tutorial

A tutorial from W3Schools

XQuery Tutorial

A tutorial from W3Schools

Another XML Tutorial found at: XML-Training-Guide.com

And a ton of other resources.

XQuery tutorials from the provider of Stylus Studio

Stylus Studio provides XML tools.

Free eBook, "The Art of XSD - eBook",
By Jacob Sebastian

From Simple-Talk. Ouch...it's 467 pages.

Free WYSIWYG XML Editor from Altova, Authentic 2010

There is a "Community Edition", which is free, and an Enterprise version which is not free.

Commercial examples of Custom XML Markup Languages:  
Scripts to Use XML to Insert and Update Rows in a SQL Server Table From MSSQLTips.com by Wayne Ackman. It has nested FOR XML Path statements and is just generally an interesting XML dev script.
SQL Server XML Bulk Loading Example From MSSQLTips.com by Tim Cullen. It discusses the recurring need to load XML. Interesting content.

 

Reference Websites

 

Pioneering Active Server Pages

ASP and ASP.Net resources from the "15 Seconds" website, such as Using ASP with SQL-DMO for "anywhere" management. Also Visual Studio (2005) Tutorials!

ASP101.com

"The Place ASP Developers Go".

List of ADO Connection Strings from CodeProject.com

Resources, such as a list of ADO Connection Strings by Carols Antollini.

www.ConnectionStrings.com

Examples of many connection strings across many RDBMS and other data sources such as Active Directory.

DotNETJunkies.com

   

fabFORCE.net (DBDesigner4 visual database design tool for MySQL)

Very cool database design tool (open source) if you develop with MySQL.

FreeVBCode.com

 

SQLJunkies.com

 

SQLServerCentral.com

Resources, such as an Intro to SQL-DMO.

SQLTeam.com

Reference website.

Getting Started with Silverlight A Microsoft reference. References videos and tutorials and includes Expression Blend info as well.

Free eBook on Visual Studio 2010 exam preparation  (exams 70-515, 70-511)

From Accelerated-Ideas.com.