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 Query2' results and messages window.

SQL SERVER – Query to Find Column From All Tables of Database

August 6, 2008
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Stored Procedure, SQL System Table

How many AdventureWorks tables have an EmployeeID column? My query on sys.tables and sys.columns finds any column from all tables, with schema names.

Read More
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
Previous 1 … 307 308 309 310 311 312 313 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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