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 - Data Warehousing Interview Questions and Answers - Introduction

SQL SERVER – Data Warehousing Interview Questions and Answers – Introduction

July 25, 2007
Pinal Dave
SQL Interview Questions and Answers
Data Warehousing, Database, DBA, SQL Download, SQL Scripts

The start of my Data Warehousing Interview Questions and Answers series, beginning with the basics: what is data warehousing and why companies use it.

Read More
A row of brass bell cranks with one pulled and its wire taut

SQL SERVER – 2005 – Server and Database Level DDL Triggers Examples and Explanation

July 24, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL Trigger

DDL triggers fire when someone changes the schema. How to write one, what EVENTDATA gives you, and how to get back in if one locks you out.

Read More
Wall covered with many vintage clocks showing different times

SQL SERVER – UDF – Function to Get Previous And Next Work Day – Exclude Saturday and Sunday

July 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Inspired by a ColdFusion post by Ben Nadel, here is the UDF I use to get the previous or Next Work Day for any date, skipping Saturday and Sunday.

Read More
SQL SERVER - UDF - Get the Day of the Week Function

SQL SERVER – UDF – Get the Day of the Week Function

July 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Utility

Get the day of the week as a name in SQL Server: a UDF using DATEPART with CASE, plus the simpler DATENAME(dw, GETDATE()) a reader suggested.

Read More
Painted fishing buoys hanging on a harbor wall in color groups, a few bare, one red buoy among the blue

Grouping Current Connections by Program Name and Host Name

July 22, 2007
Pinal Dave
SQL Tips and Tricks
DBA, SQL Connection, SQL DMV, SQL Login, SQL Server

Group connections by program name, host, and login, then inspect client addresses and idle sessions without trusting client labels blindly.

Read More
SQL SERVER - Fix : Error Msg 1813, Level 16, State 2, Line 1 Could not open new database 'yourdatabasename'. CREATE DATABASE is aborted.

SQL SERVER – Fix : Error Msg 1813, Level 16, State 2, Line 1 Could not open new database ‘yourdatabasename’. CREATE DATABASE is aborted.

July 21, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Scripts

Msg 1813 says CREATE DATABASE is aborted when you attach a database with a corrupt log. My step by step fix rebuilds the log and needs a server restart.

Read More
SQL SERVER - Fix : Error Msg 4214 - Error Msg 3013 - BACKUP LOG cannot be performed because there is no current database backup

SQL SERVER – Fix : Error Msg 4214 – Error Msg 3013 – BACKUP LOG cannot be performed because there is no current database backup

July 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Scripts, SQL Server

Fix the SQL Server error Msg 4214 and Msg 3013, where BACKUP LOG fails because no current database backup exists. Here is why it happens.

Read More
Convert Query Results.

SQL SERVER – 2005 – SSMS – View/Send Query Results to Text/Grid/Files

July 19, 2007
Pinal Dave
SQL Performance
SQL Download, SQL Error Messages, SQL Joins, SQL Scripts, SQL Server DBCC, SQL Server Security

Three ways to send query results to text, grid or file in SSMS: the shortcuts CTRL+T, CTRL+D and CTRL+SHIFT+F, the toolbar, or the menu bar.

Read More
SQL SERVER - SPACE Function Example

SQL SERVER – SPACE Function Example

July 19, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

Does SQL Server have a SPACE function? Yes. SELECT SPACE(100) returns 100 spaces, and a short example uses it to join last and first names.

Read More
SQL SERVER - Restore Database Without or With Backup - Everything About Restore and Backup

SQL SERVER – Restore Database Without or With Backup – Everything About Restore and Backup

July 18, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Download, SQL Scripts

Everything about restore and backup readers ask: can you restore without a backup? No. Here is the right restore order and a plan to stay safe.

Read More
Previous 1 … 561 562 563 564 565 566 567 … 588 Next
  • Books
  • Testimonials
  • Privacy Policy

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