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
Separated brush parts with a spare metal ferrule protected in a small tin

Backing Up the Service Master Key and Database Master Keys

August 25, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security

A database backup does not carry the key that opens your encrypted data. Export both keys, restore one from its file, and see why the password matters.

Read More
SQL SERVER - Geography Data Type - Calculating Distance Between Two Points on the Earth - Day 18 of 35

SQL SERVER – Geography Data Type – Calculating Distance Between Two Points on the Earth – Day 18 of 35

August 18, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Datatype, SQL Scripts, SQL Server

The Geography Data Type in SQL Server 2008 stores points and areas on the earth and has a built-in function to calculate the distance between two points.

Read More
SQL SERVER - Ranking Functions - RANK( ), DENSE_RANK( ), and ROW_NUMBER( ) - Day 12 of 35

SQL SERVER – Ranking Functions – RANK( ), DENSE_RANK( ), and ROW_NUMBER( ) – Day 12 of 35

August 12, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, Ranking Functions, SQL Scripts, SQL Server

RANK( ), DENSE_RANK( ), and ROW_NUMBER( ) return the same results until your data has a tie. Day 12 shows how each ranking function handles tied values.

Read More
Gouache painting: two wooden posts stand at opposite ends of a meadow

geometry STLength: A Path Is Longer Than Its Chord

August 11, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STLength measures the segments of a line. The example contrasts that path length with the shortest distance between its endpoints, including a closed line.

Read More
A detached ceramic lid beside an empty pale cup and a blue cup holding a stone on sage cloth.

FOR XML XSINIL: Emit Missing Fields as Explicit Nil Elements

August 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

FOR XML XSINIL can represent SQL NULL with an explicit element carrying the xsi:nil attribute. I compare that output with ordinary element omission. An empty string stays a separate input in both versions.

Read More
SQL SERVER - Tips from the Development Series - Overriding Identity Fields - Day 9 of 35

SQL SERVER – Tips from the Development Series – Overriding Identity Fields – Day 9 of 35

August 9, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Identity, SQL Scripts, SQL Server

Identity fields give each new customer or invoice a unique number, even with many users entering data. Here is when and how to go about Overriding Identity Fields.

Read More
Theaters with rows of red seats.

SQL SERVER – Row Constructors – Day 6 of 35

August 6, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts, SQL Server

Before SQL Server 2008, 20 rows meant 20 INSERT INTO statements. Row Constructors let you insert them all in one statement. A simple example to try.

Read More
Previous 1 … 313 314 315 316 317 318 319 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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