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 - Binary Sequence Generator - Truth Table Generator

SQL SERVER – Binary Sequence Generator – Truth Table Generator

May 15, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Utility

A script that builds a 512 row truth table with its decimal value and binary sequence, using CROSS JOINs on a bit table. Add or remove joins to resize it.

Read More
SQL SERVER - Query to Find First and Last Day of Current Month - Date Function

SQL SERVER – Query to Find First and Last Day of Current Month – Date Function

May 13, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server, SQL Utility

Find the first and last day of the current month with one query. This Date Function example uses DATEADD, DAY and GETDATE and runs against today’s date.

Read More
SQL SERVER - Explanation SQL Command GO

SQL SERVER – Explanation SQL Command GO

May 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility

GO is not a T-SQL command. It tells SQL Server tools to send the current batch. Why a GO statement must sit on its own line, and how it ends a batch.

Read More
SQL SERVER - 2005/2000 Examples and Explanation for GOTO

SQL SERVER – 2005/2000 Examples and Explanation for GOTO

May 7, 2007
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Utility

How the GOTO statement jumps to a label in the same T-SQL batch. My explanation for GOTO covers the syntax, the rules and when I still use it.

Read More
SQL SERVER - UDF - User Defined Function to Find Weekdays Between Two Dates

SQL SERVER – UDF – User Defined Function to Find Weekdays Between Two Dates

May 5, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Utility

A user defined function that returns the number of weekdays between two dates, skipping Saturday and Sunday. It was written by Alexander Chigrik.

Read More
A≠a, case sensitivity.

SQL SERVER – Collate – Case Sensitive SQL Query Search

April 30, 2007
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Search, SQL Server, SQL Utility

Make a SQL Query Search case sensitive: add COLLATE Latin1_General_CS_AS to the WHERE clause so ‘casesearch’ matches one row instead of all four.

Read More
SQL SERVER - 2005 Security DataSheet

SQL SERVER – 2005 Security DataSheet

April 29, 2007
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Server Security, SQL Utility

The SQL Server 2005 Security DataSheet from Microsoft covers its security features, like automatic secured updates and encryption of sensitive data.

Read More
Previous 1 … 27 28 29 30 31 32 33 Next
  • Books
  • Testimonials
  • Privacy Policy

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