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
SQL Datetime Formatting Tool Window.

SQL SERVER – Display Datetime in Specific Format – SQL in Sixty Seconds #033 – Video

November 21, 2012
Pinal Dave
SQL Video
Database, SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Server Management Studio

Date formats change from country to country. This SQL in Sixty Seconds video shows two ways to display datetime in a specific format in SQL Server 2012.

Read More
SQL SERVER - Using RAND() in User Defined Functions (UDF)

SQL SERVER – Using RAND() in User Defined Functions (UDF)

November 20, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

Using RAND() in a user defined function throws Msg 443, invalid use of a side-effecting operator. Here is a simple workaround that lets a UDF use a random value.

Read More
SQL SERVER - Removing Leading Zeros From Column in Table

SQL SERVER – Removing Leading Zeros From Column in Table

November 19, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

Most people ask how to keep leading zeros in SQL Server. This time a reader wanted to remove leading zeros and white space from a column, so here is a script.

Read More
A line of falling wooden dominoes on a floor, with one red domino turned sideways to stop the chain.

Automating SQL Server Patching With PowerShell

November 18, 2012
Pinal Dave
SQL Tips and Tricks
Cumulative Update, PowerShell, SQL Patch, SQL Server, SQL Setup

Automating SQL Server Patching with PowerShell means staging a verified package, running Setup quietly, checking logs, and stopping on failure.

Read More
A packed crate of film cans on a doorstep, the projector with its red strap left behind.

Restoring a TDE Protected Database on Another Server

November 17, 2012
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server, SQL Server Encryption, SQL Server Security

Restore a TDE protected database on another SQL Server by moving its certificate and private key, then verify encryption state.

Read More
SQL in Sixty Seconds rename example.

SQL SERVER – Rename Columnname or Tablename – SQL in Sixty Seconds #032 – Video

November 14, 2012
Pinal Dave
SQL Video
Database, SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Server Management Studio

Picked the wrong name for a column or a table? This SQL in Sixty Seconds video shows how to rename a column and a table in SQL Server.

Read More
Two identical cottages side by side, one in midday sun and one at night

Storing UTC and Local Time Side by Side

November 13, 2012
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL DateTime, SQL Function, SQL Server

Store UTC and local time consistently, preserve offsets, handle daylight saving changes, and filter timestamps with clear boundaries.

Read More
Previous 1 … 321 322 323 324 325 326 327 … 455 Next
  • Books
  • Testimonials
  • Privacy Policy

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