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
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
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
Previous 1 … 504 505 506 507 508 509 510 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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