This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Three empty rectangular ceramic dishes in a wooden tray beside a blank cream folio and vermilion ribbon.

FORMATMESSAGE: Build a Message Without Raising an Error

September 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

FORMATMESSAGE returns formatted text without raising an error. Match placeholders to typed arguments and keep formatting separate from control flow.

Read More
Two brass keys beside a small open wooden cabinet, one hanging inside and one resting on blue cloth.

RIGHT: Zero Padding Can Remove Significant Digits

September 10, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

RIGHT can make zero padding look correct while quietly removing significant digits. I validate the allowed numeric range before creating a fixed-width label. The suffix expression alone cannot tell whether the input fits.

Read More
An open key cabinet on the stone wall of a mountain hut, a brass key on its hook above a coiled rope and lantern.

Doing Remote DBA Work Well

September 10, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Consulting, DBA, SQL Monitoring

Remote DBA work succeeds with controlled access, current runbooks, agreed change windows, and communication that makes every action visible.

Read More
SQL Server Command Prompt.

SQL SERVER – 2005 – Start Stop Restart SQL Server From Command Prompt

September 9, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility

Start, stop or restart SQL Server from the command prompt with net start mssqlserver and net stop mssqlserver. A batch file can run both together.

Read More
SQL SERVER - UDF - User Defined Function - Get Number of Days in Month

SQL SERVER – UDF – User Defined Function – Get Number of Days in Month

September 8, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

A simple user defined function that returns the number of days in month for any date, with the leap year rule for February built in.

Read More
SQL SERVER - Correlated and Noncorrelated - SubQuery Introduction, Explanation and Example

SQL SERVER – Correlated and Noncorrelated – SubQuery Introduction, Explanation and Example

September 7, 2007
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Sub Query

What is the difference between correlated and noncorrelated subqueries? I explain both kinds with simple AdventureWorks examples.

Read More
Sqlcmd command prompt window.

SQL SERVER – 2005 – Introduction and Explanation to sqlcmd

September 6, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility, sqlcmd

An introduction to sqlcmd, the SQL Server 2005 command prompt utility that runs ad hoc T-SQL statements and scripts, and how it improves on isql and osql.

Read More
Previous 1 … 536 537 538 539 540 541 542 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com