Feed on
Posts
Comments

Archive for the ‘SQL Coding Standards’ Category

Very frequently I have been asked to create a page, post or article where in one page all the important concepts of SQL Server are covered. SQL Server 2008 is very large subject and can not be even covered 1000 of pages. In daily life of DBA there are few commands very frequently used and [...]

Read Full Post »

SQL SERVER - Guidelines and Coding Standards complete List Download
Coding standards and guidelines are very important for any developer on the path of successful career. A coding standard is a set of guidelines, rules and regulations on how to write code. Coding standards should be flexible enough or should take care of the situation where [...]

Read Full Post »

To express apostrophe within a string, nest single quotes (two single quotes).
Example:
SET @sExample = ‘SQL’’s Authority’

When working with branch conditions or complicated expressions, use parenthesis to increase readability.
IF ((SELECT 1
FROM TableName
WHERE 1=2) ISNULL)

To mark single line as comment use (–) before statement. To mark section of code as comment use (/*…*/).

Avoid the [...]

Read Full Post »

Use “Pascal” notation for SQL server Objects Like Tables, Views, Stored Procedures. Also tables and views should have ending “s”.
Example:
UserDetails
Emails

If you have big subset of table group than it makes sense to give prefix for this table group. Prefix should be separated by _.
Example:
Page_ UserDetails
Page_ Emails

Use following naming convention for Stored [...]

Read Full Post »

I have previous written article about SQL SERVER Database Coding Standards and Guidelines Complete List Download. I just received question from one of the blog reader is there any way we can just prevent violation of company policy. Well Policy Management can come into handy in this scenario.
If our company policy is to create all [...]

Read Full Post »

I recently came across very nice article about optimization tips for SQL Server 2005. Here is the list of those 12 tips.
Twelve Tips For Optimizing Sql Server 2005 Query Performance
1. Turn on the execution plan, and statistics
2. Use Clustered Indexes
3. Use Indexed Views
4. Use Covering Indexes
5. Keep your clustered index small.
6. Avoid cursors
7. Archive old [...]

Read Full Post »

There are four basic SQL Operations or SQL Statements.
SELECT - This statement selects data from database tables.
UPDATE - This statement updates existing data into database tables.
INSERT - This statement inserts new data into database tables.
DELETE - This statement deletes existing data from database tables.
If you want complete syntax for this four basic statement, please download [...]

Read Full Post »

I am very pleased to write my 500th post. After 500 posts, I still have same feeling when I wrote first post on this blog. I would like to thank my family for their continuous support in writing this blog. Most of all I want to thank all of YOU for being wonderful readers of [...]

Read Full Post »

SQL SERVER - Cursor to Kill All Process in Database
SQL SERVER - Find Stored Procedure Related to Table in Database - Search in All Stored procedure
SQL SERVER - Shrinking Truncate Log File - Log Full
SQL SERVER - Simple Example of Cursor
SQL SERVER - UDF - Function to Convert Text String to Title Case - Proper [...]

Read Full Post »

Best SQLAuthority Articles on Other Popular Sites
SQL SERVER - UDF vs. Stored Procedures and Having vs. WHERE (SQL Server Magazine)
SQL SERVER - Pre-Code Review Tips - Tips For Enforcing Coding Standards (dotnetslackers.com)

Read Full Post »

Best Downloads on SQLAuthority.com
SQL SERVER - Query Analyzer Shortcuts
SQL Server Interview Questions and Answers Complete List Download
SQL SERVER - Download SQL Server Management Studio Keyboard Shortcuts (SSMS Shortcuts)
SQL SERVER Database Coding Standards and Guidelines Complete List Download
SQL SERVER - Data Warehousing Interview Questions and Answers Complete List Download

Read Full Post »

Each organization has its own coding standards and enforcement rules. It is sometime difficult for DBAs to change code following code review, as it may affect many different layers of the application. In large organizations, many stored procedures are written and modified every day. It is smart to keep watch on all stored procedures, at [...]

Read Full Post »

About two months ago I reviewed book SQL Server 2005 Practical Troubleshooting: The Database Engine. Yesterday I received a request from reader, if I can write something from this book, which is not common knowledge in DBA community. I really like the idea, however I must respect the Authors copyright about this book. This book [...]

Read Full Post »

Few days ago, I was searching MSDN and I stumbled upon following two global variables. Following variables are very briefly explained in the BOL. I have taken their definition from BOL and modified BOL example to displayed both the global variable together.
@@CONNECTIONS
Returns the number of attempted connections, either successful or unsuccessful since SQL Server was [...]

Read Full Post »

I was glad when I discovered this Extended Stored Procedure myself. I always used different syntax to retrieve server information. Many of information I was looking up using system information of the windows operating system.
Syntax:
EXEC xp_msver

ResultSet:
Index Name [...]

Read Full Post »

White paper describes the use of virtual copy Storage Area Network (SAN) snapshots in a load-balanced scalable querying environment for SQL Server 2005 Analysis Services.
This architecture provides the following improvements

Improves the utilization of disk resources
Optimizes cube processing operations
Supports dedicated snapshots for specific users at different points in time

In selecting a snapshot implementation for use with [...]

Read Full Post »

I just came across PDF published by Microsoft to promote SQL Server 2005. I find few things very interesting. I will list them here.
NASDAQ

NASDAQ, the world’s first electronic stock market replaced its aging mainframe computers with Microsoft® SQL Server™ 2005 on two 4-node clusters to support its Market Data Dissemination System (MDDS).
Every trade processed in [...]

Read Full Post »

I have been working as Director of Technology in leading software industry in Las Vegas. I am responsible for Team Building and Product Management.The most important elements of Scrum are. These are presented below.
Scrum is organized around the following roles:

Product Owner - Determines what functionality is needed
ScrumMaster - Leads the Scrum and is primarily responsible [...]

Read Full Post »

This article focuses on integration techniques specific to Microsoft Office Visio 2007 and Microsoft SQL Server 2005. Using Visio 2007, you can connect Visio shapes to data that was generated outside Visio. A large amount of data can be captured in a SQL Analysis Services database. Being able to analyze that data in a visual [...]

Read Full Post »

I am researching SQL Server 2008. Those who are asking me questions about SQL Server 2008, please refer following link. I will post my tutorials and articles very soon.
Here is SQL Server 2008 Book Online link.

Read Full Post »

Older Posts »