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 - 2005 - Get Field Name and Type of Database Table

SQL SERVER – 2005 – Get Field Name and Type of Database Table

August 5, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table

How do you get the field name and type of a table in SQL Server 2005? Imran Mohammed answers with sp_help and an INFORMATION_SCHEMA.COLUMNS query.

Read More
Gouache painting of a wooden board with five round wooden knobs on a cream wall, a blank vermilion tag hanging from the middle knob

Who Changed a Server Setting in SQL Server? How to Find Out

August 4, 2008
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Log, SQL Scripts, SQL Server Configuration

Who changed a server setting in SQL Server? The error log records what changed and when, and the default trace adds the login, the computer and the program. Tested with one harmless change that is put back at the end.

Read More
SQL Server query window showing query execution.

SQL SERVER – 2005 – Difference Between INTERSECT and INNER JOIN – INTERSECT vs. INNER JOIN

August 3, 2008
Pinal Dave
SQL Performance
SQL Joins, SQL Scripts

What is the difference between INTERSECT and INNER JOIN? Both can return common rows, and AdventureWorks examples show how the two compare.

Read More
SQL server query results.

SQL SERVER – Effect of Order of Join In Query

August 2, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Joins, SQL Scripts, SQL Server

Does the order of join in a query change the result? With AdventureWorks, I show two queries that return the same rows, only in a different order.

Read More
SQL SERVER - 2008 - Get Current System Date Time

SQL SERVER – 2008 – Get Current System Date Time

August 1, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Several ways to get the current system date time in SQL Server 2008, from GETDATE to the newer functions, with a quick video on the topic.

Read More
A brass sextant on a coil of rope on a boat deck at dawn, a red scarf tied to the rail

SQL SERVER – 2008 – Find Current System Date Time and Time Offset

July 31, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts

SQL Server 2008 adds SYSDATETIMEOFFSET, which returns the current system date time along with its time offset from GMT. One line shows how.

Read More
Gouache painting of a cream wrapped gift with a red ribbon on a patio table beside a pitcher of lemonade and a paper party hat

How to Calculate Age Correctly in SQL Server

July 30, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

Calculate Age in SQL Server by counting completed birthdays, not calendar years. This post compares DATEDIFF, a DATEADD correction and a compact integer version on a bike club table, handles February 29 birthdays and ends with a reusable function for age on any date.

Read More
Previous 1 … 745 746 747 748 749 750 751 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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