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
Two glued boards held in red clamps on a workbench while the next board waits.

Waiting for an Agent Job to Finish Before the Next Step Runs

February 9, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server, SQL Server Agent

Wait for an Agent job to finish by polling its current sysjobactivity row, enforcing a timeout, and checking sysjobhistory outcome.

Read More
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
SQLAuthority News - Delhi Women Safety - 2400th Blog Post - A Milestone

SQLAuthority News – Delhi Women Safety – 2400th Blog Post – A Milestone

February 7, 2013
Pinal Dave
Personal
SQL Milestone

My 2400th blog post is not a boast. After the sad event in Delhi, I write as a father and husband about women safety and why it matters to every Indian.

Read More
Gouache painting of colored beads spilling from a wooden scoop into a shallow brass-railed tray.

Generate Random Values in SQL Server: SQL in Sixty Seconds #042

February 6, 2013
Pinal Dave
SQL Video
SQL Function, SQL in Sixty Seconds, SQL Random, SQL Scripts

To generate random values in SQL Server, pick the function by the job: RAND for one value, CHECKSUM(NEWID()) for a value on every row, CRYPT_GEN_RANDOM for tokens. The tests here count 100,000 draws and show where the common formulas go wrong.

Read More
SQL SERVER - Fix: Error: 1505 The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name and the index name

SQL SERVER – Fix: Error: 1505 The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name and the index name

February 5, 2013
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Error Messages

Error 1505 says the CREATE UNIQUE INDEX statement terminated because a duplicate key was found. The word key confuses many developers, so I explain it simply.

Read More
SQL SERVER - Fix Error: 8111 - Cannot define PRIMARY KEY constraint on nullable column in table - Error: 1750 - Could not create constraint. See previous errors

SQL SERVER – Fix Error: 8111 – Cannot define PRIMARY KEY constraint on nullable column in table – Error: 1750 – Could not create constraint. See previous errors

February 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

New developers often hit Error 8111 when they try a PRIMARY KEY constraint on nullable column, followed by Error 1750. Here is why it happens and how to fix it.

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
Previous 1 … 499 500 501 502 503 504 505 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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