Coding is always a fun but challenging job. Developers do not only have to execute the right output based on the business requirement but also need to maintain the right coding standards by using the optimum use of variable sizes and keeping in view the other best practices. I am going to provide a list of best practices and guidelines today, in this article. Many of us already may have been using these but I thought to gather those in a single page so that while developing, the code can be useful, keeping the standard intact.

Application to be used,

Database Design

Database Configuration Settings

Data modeling

Performance/Load Tests

Purging solution

Checking with the business team over a period to implement the correct data purging solutions which best fits your environment.

Database Objects

Indexing

Properties of Indexes

Transact-SQL

Version control/source control

Queries and Stored Procedures

SQL Server CLR

The Common language runtime (CLR) feature allows you to write stored procedures/trigger/functions in .NET managed code and execute the same from SQL Server.

Consultation

  • You can also a consultant with your in-house DBAs for any advice about Microsoft Best Practices and standard or use of correct indexes to be used.
  • You can seek training from any good external training providers.
  • Another good option is to use good third-party tools such as RedGate, FogLight, Idera, SQLSentry, SolarWinds and check the performance of the environment by monitoring the scripts.

Process Improvement

Hope that the above-advised guidelines would be useful. Do share if you use any other steps in your workplace which is found to be helpful.