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
SQL SERVER - MySQL - Order Column by Nearest Value for Any Integer

SQL SERVER – MySQL – Order Column by Nearest Value for Any Integer

November 27, 2013
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Order By, SQL Scripts

How do you order column values by how close they are to any integer, such as -5? Here is a script that works the same way on SQL Server and MySQL.

Read More
SQL Server Configuration Checking Tool.

SQL SERVER – SQL Server Configuration Checking – A Must Do for Every DBA – Notes from the Field #004

November 26, 2013
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Backup and Restore

Still running on default settings? Mike Walsh explains why configuration checking is a must do for every DBA and how to fit SQL Server to your business.

Read More
SQL SERVER - Export Data AS CSV from Database Using SQLCMD

SQL SERVER – Export Data AS CSV from Database Using SQLCMD

November 25, 2013
Pinal Dave
SQL Tips and Tricks
CSV, SQL Scripts, SQL Server

We often import CSV into SQL Server, but how do you export data as CSV with SQLCMD? Two simple commands, one with column headers and one without.

Read More
Backup settings for database restore.

SQL SERVER – FIX : Error 3154: The backup set holds a backup of a database other than the existing database – SSMS

November 23, 2013
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Error Messages, SQL Scripts

Error 3154 says the backup set holds a backup of a different database. Here is how to fix it in SSMS, plus the T-SQL RESTORE WITH REPLACE option.

Read More
Three pale ceramic bowls, two filled with blue and terracotta stones and one empty, beside two loose stones.

XQuery Comparisons: General Equality Is Not Singleton Equality

November 22, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

XQuery Comparisons use different rules for general sequence operators and singleton value operators. I make equality and inequality visible side by side. A general unequal-pair result is not always the inverse of an equal-pair result.

Read More
A man in glasses smiling.

SQL SERVER – vCPUs – How Many Are Too Many CPU for SQL Server Virtualization ? – Notes from the Field #003

November 21, 2013
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Backup and Restore

Do not blame virtualization for slow servers. David Klee explains how many vCPUs are too many for SQL Server virtualization and how to set them up right.

Read More
A heavily loaded canvas log sling beside a small bundle of kindling

SELECT * Cost: Why Wide Result Sets Slow Exports

November 20, 2013
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Index, SQL Performance

The query starts fast but the export crawls. A small demo shows how much a wide text column adds, and what to measure on your own server.

Read More
Previous 1 … 301 302 303 304 305 306 307 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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