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
Six blank wooden blocks fit a bounded composing tray while a spare rests outside

Readable IDs: A Bounded Computed Invoice Number

May 11, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Computed Column, SQL Server

Create readable IDs with a computed invoice number while retaining the numeric key. Enforce the six-digit domain and plan format changes before growth.

Read More
SQL SERVER - Function Property - Deterministic or Non-Deterministic

SQL SERVER – Function Property – Deterministic or Non-Deterministic

May 10, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

How do you tell if a user defined function is deterministic or non-deterministic? One OBJECTPROPERTY call with IsDeterministic gives you the answer.

Read More
Colored ceramic beads in a pale shallow tray beside an empty tray and a separate blue bead.

XQuery distinct-values: Deduplicate Atomic Values, Not Nodes

May 9, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

XQuery distinct-values removes repeated atomic values rather than selecting representative source nodes. I rebuild a small sorted XML result from repeated text. The example also keeps an empty document in view.

Read More
SQL SERVER - 2005 - Find Tables With Foreign Key Constraint in Database - Part 2

SQL SERVER – 2005 – Find Tables With Foreign Key Constraint in Database – Part 2

May 8, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL System Table

Joffery improved my script to find tables with foreign key constraint in a database, adding the ON UPDATE and ON DELETE rules and a little ordering.

Read More
SQL SERVER - Create Database Error in Windows Vista

SQL SERVER – Create Database Error in Windows Vista

May 7, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Utility, Vista

A reader on Vista got a create database error, Msg 262 CREATE DATABASE permission denied in database master. The fix is the same one from my earlier post.

Read More
SQL Server Management Studio - Logins.

SQL SERVER 2005 – FIX Error: 18456 : VISTA Windows Authentication

May 6, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server Security, Vista

My Vista Windows Authentication login failed with Error 18456 after installing SQL Server 2005, while sa worked. Adding my login as administrator fixed it.

Read More
SQL SERVER - Find Table in Every Database of SQL Server - Part 2 Extension

SQL SERVER – Find Table in Every Database of SQL Server – Part 2 Extension

May 5, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, Undocumented SQL

Two more ways from Simon Worth to find table in every database of SQL Server, both built on sp_msforeachdb, one saving results to a temp table.

Read More
Previous 1 … 766 767 768 769 770 771 772 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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