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 SERVER - Backup and Restore Database Using Command Prompt - SQLCMD

SQL SERVER – Backup and Restore Database Using Command Prompt – SQLCMD

February 8, 2013
Pinal Dave
SQL Video
SQL Backup and Restore, SQL in Sixty Seconds, SQL Scripts, SQL Server, sqlcmd

Good DBAs automate the boring work. Here is a simple script to run Backup and Restore of a database from the command prompt with SQLCMD.

Read More
An egg poised on a small piercer before cooking

Warning Before SQL Login Passwords Expire With DaysUntilExpiration

February 3, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security

A Friday-night login failure is avoidable. One small query warns you weeks ahead, if somebody owns the warning.

Read More
Two rows of tulips, one all red and one in randomly mixed colors.

Generating Random Numbers Per Row: RAND, NEWID and CRYPT_GEN_RANDOM

February 2, 2013
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL Random, SQL Server

Generate random numbers per row with NEWID or CRYPT_GEN_RANDOM, compare seeded RAND, inspect bucket spread, and pick a row without a sort.

Read More
SQL SERVER - Difference Between NOLOCK and NOWAIT Hints

SQL SERVER – Difference Between NOLOCK and NOWAIT Hints

February 1, 2013
Pinal Dave
SQL Tips and Tricks
Query Hint, SQL Lock, SQL Scripts, SQL Server

Should you use NOLOCK when NOWAIT errors out on a lock? Here is the difference between NOLOCK and NOWAIT, and why neither guarantees a valid answer.

Read More
A wall hatch in a kitchen pass with an entire loaded tray being sent through in one movement.

SQL SERVER – Significance of Table Input Parameter to Stored Procedure

January 31, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Stored Procedure

Pass a whole table into a stored procedure instead of forming and parsing XML. Here is why a table input parameter to stored procedure saves round trips.

Read More
A hand threading loose bagels from a tray onto one long red string at a bakery stall

JSON_ARRAYAGG and JSON_OBJECTAGG: Building JSON From Rows in SQL Server 2025

January 29, 2013
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL Server

Build customer arrays with JSON_ARRAYAGG and settings objects with JSON_OBJECTAGG in SQL Server 2025, with explicit order and null rules.

Read More
A single brick building with four separate front doors in a row along the pavement, each with its own doormat and letter slot.

SQL Server Instance or Database: What Is the Difference?

January 27, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Installation

A SQL Server instance is the engine and a database is one set of data inside it. What each level owns, why a login and a user are different objects, and which line to draw when you separate customers or teams.

Read More
Previous 1 … 280 281 282 283 284 285 286 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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