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
A compact wooden organizer holding several simple measuring tools on a softly lit workbench.

The Dynamic Management Views Worth Knowing by Heart

August 16, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Use dynamic management views to inspect active requests, waits, cached queries, index activity, and file space without guessing at server health.

Read More
SQL SERVER - 2005 - Difference and Similarity Between NEWSEQUENTIALID() and NEWID()

SQL SERVER – 2005 – Difference and Similarity Between NEWSEQUENTIALID() and NEWID()

August 16, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts

NEWSEQUENTIALID() and NEWID() both create a uniqueidentifier GUID. NEWID() is random while NEWSEQUENTIALID() is sequential, as my test table shows.

Read More
SQL SERVER - Insert Data From One Table to Another Table - INSERT INTO SELECT - SELECT INTO TABLE

SQL SERVER – Insert Data From One Table to Another Table – INSERT INTO SELECT – SELECT INTO TABLE

August 15, 2007
Pinal Dave
SQL Performance
SQL Scripts, SQL Stored Procedure

How to copy data from one table to another without a cursor: INSERT INTO SELECT for an existing table, or SELECT INTO to create a new table.

Read More
A wooden coin-sorting tray with coins stacked by size, one large coin stuck in the wrong channel, a bag of coins beside it.

GROUP BY Done Right

August 14, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Group By, SQL Joins, SQL NULL, SQL Server

GROUP BY Done Right separates row filters from group filters, handles NULL groups, and avoids totals inflated by careless joins.

Read More
SQL SERVER - What is SQL? How to pronounce SQL?

SQL SERVER – What is SQL? How to pronounce SQL?

August 14, 2007
Pinal Dave
SQL Tips and Tricks
Database, DBA

What is SQL and how do you pronounce SQL? It stands for Structured Query Language, and it is said as S.Q.L. (ess-cue-ell), not sequel.

Read More
SQLAuthority News - Author Visit - Database Architecture and Implementation Discussion - New York, New Jersey Details

SQLAuthority News – Author Visit – Database Architecture and Implementation Discussion – New York, New Jersey Details

August 13, 2007
Pinal Dave
SQL Performance
DBA, SQL Backup and Restore, SQL Index, SQLAuthority Author Visit

Notes from my database architecture meeting in New York and New Jersey: backup routines, index optimization and the maintenance tasks we discussed.

Read More
SQL SERVER - Fix : ERROR : Msg 1033, Level 15, State 1 The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.

SQL SERVER – Fix : ERROR : Msg 1033, Level 15, State 1 The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.

August 12, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts

Msg 1033: the ORDER BY clause is invalid in views unless TOP or FOR XML is used. My workaround moves ORDER BY to the SELECT that calls the view.

Read More
SQL SERVER - UDF - Validate Integer Function

SQL SERVER – UDF – Validate Integer Function

August 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

ISNUMERIC() returns 1 for plus, minus and currency signs, so it is not a safe check. I share the UDF I use to validate integer values instead.

Read More
SQL SERVER - 2005 - Find Stored Procedure Create Date and Modified Date

SQL SERVER – 2005 – Find Stored Procedure Create Date and Modified Date

August 10, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

A simple script on sys.objects that shows the stored procedure create date and modified date, handy for audits and for watching changes to your objects.

Read More
SQL SERVER - 2005 - List All The Column With Specific Data Types

SQL SERVER – 2005 – List All The Column With Specific Data Types

August 9, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts, SQL System Table

A handy script to list all columns with specific data types in a database. We used it to find TEXT columns and change them to VARCHAR(MAX) in SQL Server 2005.

Read More
Previous 1 … 558 559 560 561 562 563 564 … 588 Next
  • Books
  • Testimonials
  • Privacy Policy

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