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
Tool window showing data types.

SQL SERVER – How to Identify Datatypes and Properties of Variable

December 15, 2013
Pinal Dave
SQL Tips and Tricks

Need a variable’s datatype, precision, scale, length or collation in code? SQL_VARIANT_PROPERTY shows the properties of variable values, with examples.

Read More
A boat keel with boards aligned along it and another small group lying crosswise

Clustered Key Choice for Date Range Queries: Date or Identity

December 14, 2013
Pinal Dave
SQL Tips and Tricks
Clustered Index, SQL DateTime, SQL Identity, SQL Index

Should you cluster on OrderDate? Measure one month of orders on three designs and see what each one costs in reads before you rebuild a table.

Read More
MySQL - How to Create Stored Procedure

MySQL – How to Create Stored Procedure

December 13, 2013
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Scripts

Confused by semicolons when you create stored procedure code in MySQL? Change the DELIMITER first, then reset it. Here is a simple example.

Read More
SQL SERVER - Optimal Memory Settings for SQL Server - Notes from the Field #006

SQL SERVER – Optimal Memory Settings for SQL Server – Notes from the Field #006

December 12, 2013
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Backup and Restore

No amount of memory is ever enough. Tim Radney explains the optimal memory settings for SQL Server, the setting people most often miss on a new server.

Read More
A channel zester preserves one curled orange ribbon beside a heap of fine zest

Exporting CSV Files Without Losing Leading Zeros or Dates

December 11, 2013
Pinal Dave
SQL Tips and Tricks
CSV, Excel, SQL DateTime, Unicode

A postal code like 00501 turns into 501 in a spreadsheet. See where the zero is lost, how to build a correct CSV line, and why quotes alone do not help.

Read More
Rows of white coffee mugs on shelves, ready for the work week

SQL SERVER – Working with Business Days in SQL Server – A Different Approach

December 10, 2013
Pinal Dave
SQL Tips and Tricks
Excel, SQL Scripts, SQL Server

I recommend that you download XLeratorDB and try this problem along with me, this is going to be a fun exercise and something new to learn about Business Days.

Read More
Round wooden pieces fit a blue sorting frame while an angular red piece remains outside.

SQL SERVER – How to Allow Only Alphabets in Column – Create Check Constraint to Insert Only Alphabets

December 9, 2013
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server

Allow only alphabets in a SQL Server column with an explicit ASCII-letter rule. These tested examples reject empty strings, NULL, spaces, digits, and punctuation while explaining collation and existing-data checks.

Read More
Previous 1 … 453 454 455 456 457 458 459 … 845 Next
  • Books
  • Testimonials
  • Privacy Policy

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