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
Administrator Command Prompt window.

SQL SERVER – Automatically Store Results of Query to File with sqlcmd

September 12, 2013
Pinal Dave
SQL Tips and Tricks
sqlcmd

Want to store results of query to file automatically without SSMS? Here is how to do it with sqlcmd and its -o option, step by step.

Read More
SQL SERVER - Simple Puzzle with UNION - Part 5

SQL SERVER – Simple Puzzle with UNION Part 5

September 11, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Union clause

In Puzzle with UNION Part 5, the final part, two almost identical queries return the same answer, yet their execution plans are very different. Why?

Read More
Sql server execution plan.

SQL SERVER – Simple Puzzle with UNION Part 4

September 10, 2013
Pinal Dave
SQL Tips and Tricks
SQL Union clause

Puzzle with UNION Part 4 is for readers who want to think: three queries using UNION, a subquery and NOT EQUAL TO return the same result. Compare their plans.

Read More
SQL SERVER - Simple Puzzle with UNION - Part 3

SQL SERVER – Simple Puzzle with UNION Part 3

September 9, 2013
Pinal Dave
SQL Tips and Tricks
SQL Union clause

Simple Puzzle with UNION Part 3 has three T-SQL scripts on the UNION clause, and only one is correct. Can you spot it without running them in Management Studio?

Read More
Plain metal counting tokens sit in separate shallow trays on a quiet wooden desk.

How to Check What SQL Server Licensing You Are Actually Using

September 8, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Installation

Check SQL Server licensing evidence with edition and CPU queries, then reconcile visible processors with host inventory and your agreement.

Read More
A shed shelf of clay pots, several turned upside down among growing plants.

Soft Delete With an IsDeleted Column: Indexes, Views and Keys

September 7, 2013
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Server, SQL View

Design soft delete with an IsDeleted flag, filtered unique keys and indexes, a live-row view, and a measured archive process.

Read More
Query Execution Plan.

SQL SERVER – Simple Puzzle with UNION – Part 2

September 6, 2013
Pinal Dave
SQL Puzzle
SQL Union clause

Another back to basics puzzle with UNION: run three queries using UNION ALL, ORDER BY and DISTINCT, then compare their execution plans.

Read More
Previous 1 … 467 468 469 470 471 472 473 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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