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
Gouache painting: two identical lengths of linen tape lie side by side on a loom bench, each standing for one day

CAST to date: Remove Time Without Moving the Day

December 8, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

CAST to date keeps the calendar day from a typed datetime2 value. The example preserves the original time and contrasts actual removal with a display that merely hides it.

Read More
Gouache painting: four raised beds stand in a row along a garden path

LEAD Defaults: Missing Rows Differ From NULL Values

December 7, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Order By, SQL Server

LEAD defaults handle a missing following row. Keep that boundary separate from a present row containing NULL and choose replacement policy explicitly.

Read More
Gouache painting of a document passing through a schema-shaped stencil

Validate an XML Document in T-SQL With an XSD Schema by Jacob Sebastian

December 2, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL XML

To validate an XML document in SQL Server, store an XSD in a schema collection and type the variable or column with it. Jacob Sebastian’s lesson is kept, and I added tests on SQL Server 2025 that show the error number for each kind of bad document and what DOCUMENT and CONTENT accept.

Read More
Gloved hands lifting a honeycomb frame from a stacked wooden beehive in a meadow, smoke drifting nearby

What Is Installed? Finding Every SQL Server Component

November 28, 2009
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Server, SQL Server Installation, SQL Server Services

Finding every SQL Server component starts with the Setup discovery report, then checks services, engine versions, and separate client tools.

Read More
A saucepan of stock reduced to a thick sauce, a hand filling a small jar from it beside a heap of vegetable scraps.

Pre-Aggregating Data for Fast Dashboards

November 26, 2009
Pinal Dave
SQL Performance
Business Intelligence, Data Warehousing, SQL Performance, SQL Server, SQL View

Pre-aggregating data can make dashboards fast through summary tables or indexed views when grain, refresh, and reader consistency are clear.

Read More
SQL SERVER - Comma Separated Values (CSV) from Table Column

SQL SERVER – Comma Separated Values (CSV) from Table Column

November 25, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, CSV, SQL Scripts, SQL Server, SQL XML

The script I use most often to build Comma Separated Values (CSV) from a table column with FOR XML PATH. I think XML is the best option for code and speed.

Read More
Three small plain lockboxes of different sizes with separate brass keys grouped on an oak table.

TDE, Column Encryption and Always Encrypted Compared

November 20, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Security

Compare SQL Server encryption options by the threat they address, where keys live, what applications must change, and how recovery is tested.

Read More
Previous 1 … 347 348 349 350 351 352 353 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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