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
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
A curved brass strip over a straight ivory bar between dark wooden end blocks, beside two ochre stones.

ACOS: Check the Cosine Domain Before Calculating Angles

May 4, 2008
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL Server

ACOS calculates an angle from a supported cosine ratio. Keep invalid and missing inputs visible while displaying valid radians at a chosen scale.

Read More
Five rectangular ceramic dishes tied with a sage ribbon on a wooden shelf.

PERCENT_RANK Versus CUME_DIST: What Ties Change

May 3, 2008
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Function, SQL Server

PERCENT_RANK versus CUME_DIST answers different ranking questions. Keep peers intact and compare missing scores and singleton groups.

Read More
Previous 1 … 758 759 760 761 762 763 764 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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