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 - Restore Database Using Corrupt Datafiles (.mdf and .ldf)

SQL SERVER – 2005 – Restore Database Using Corrupt Datafiles (.mdf and .ldf)

April 7, 2008
Pinal Dave
SQL Interview Questions and Answers
SQL Backup and Restore, SQL Data Storage

Can you restore database using corrupt datafiles when there is no full backup and both .mdf and .ldf are damaged? My honest answer and the one thing to try.

Read More
Best Practices

SQL SERVER – 15 Best Practices for Better Database Performance

April 6, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server

Best practices for better Database Performance: keep only needed data, normalize tables, use lookup tables and small primary keys. I list 14; you suggest the 15th.

Read More
SQL SERVER - 2005 - Transferring Ownership of a Schema to a User

SQL SERVER – 2005 – Transferring Ownership of a Schema to a User

April 5, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

Transferring ownership of a schema to another user in SQL Server 2005 takes one ALTER AUTHORIZATION ON SCHEMA statement. A reader asked, so here it is.

Read More
The same nine mosaic pieces grouped by color in one tray and by shape in another.

SQL Server – Good Articles on Database Collation

April 4, 2008
Pinal Dave
SQL Tips and Tricks
Database, DBA, SQL Collation, SQL Server

Database Collation defines default character comparison rules for a database. I also inspect the columns and expressions involved.

Read More
A hand checking the seams of a finished quilt, a red spool of thread beside it

A Self-Review Checklist for Stored Procedure Changes

April 3, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server, SQL Stored Procedure, Testing

Use a self-review checklist for stored procedure changes: realistic data, plans, IO, NULL inputs, clean rollback, and a ready recovery script.

Read More
A stepped podium of coin stacks, with three people sharing the top step.

SQL SERVER – Find Nth Highest Salary of Employee – Query to Retrieve the Nth Maximum value

April 2, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

How do you find the Nth Highest Salary of an employee? I link my earlier answers and share reader Pravin Phatangare’s simple TOP query for the 6th highest salary.

Read More
A small brass bell beside a plain closed envelope and a soft folded cloth on a wooden desk.

What to Alert On, and What to Let Sleep

April 1, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Make SQL Server alerting actionable by tying thresholds to impact, checking missing work, reducing duplicates, and reviewing every overnight call.

Read More
Gouache painting: in a rehearsal room, a vermilion rug strip marks the center

DATEPART tzoffset: Read the Signed Offset in Minutes

March 31, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

DATEPART tzoffset extracts an offset in minutes. Preserve its sign, test sub-hour values and retain the source temporal type.

Read More
SQL SERVER - Introduction to Heap Structure - What is Heap?

SQL SERVER – Introduction to Heap Structure – What is Heap?

March 30, 2008
Pinal Dave
SQL Tips and Tricks
SQL Index

What is Heap? When table data has no logical order and no clustered index, SQL Server stores it as a Heap Structure. I explain pages and extents too.

Read More
Person icon in information card.

SQL SERVER – 2005 – List All Column With Identity Key In Specific Database

March 29, 2008
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Index, SQL Scripts, SQL Server, SQL System Table

Question I received in Email : How to list all the columns in the database which are used as identity key in my database?

Read More
Previous 1 … 534 535 536 537 538 539 540 … 589 Next
  • Books
  • Testimonials
  • Privacy Policy

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