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 - T-SQL Script to Take Database Offline - Take Database Online

SQL SERVER – T-SQL Script to Take Database Offline – Take Database Online

April 24, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts

A reader asked how to bring a database back online. This short T-SQL script will take database offline with ROLLBACK IMMEDIATE and then online again.

Read More
SQL SERVER - Update Statistics are Sampled By Default

SQL SERVER – Update Statistics are Sampled By Default

April 23, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Statistics

A reader asked if statistics are sampled by default. They are, and a one million row test table proves it. You can set the rate up to 100%.

Read More
SQL SERVER - Create Primary Key with Specific Name when Creating Table

SQL SERVER – Create Primary Key with Specific Name when Creating Table

April 22, 2010
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts

How do you create a primary key with specific name while creating the table itself? One CREATE TABLE statement can define and name the constraint.

Read More
Max worker threads window.

SQL SERVER – Find Max Worker Count using DMV – 32 Bit and 64 Bit

April 20, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL System Table

Does doubling the CPUs double the worker threads? No. Use sys.dm_os_sys_info to find Max Worker Count, and see the formula for 32 bit and 64 bit.

Read More
A small stack of plain closed books beside one open blank notebook in soft window light.

Keeping Up With SQL Server Without Drowning

April 18, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Make keeping up SQL Server knowledge manageable with release-note reviews, one deep topic each quarter, and a small record of relevant changes.

Read More
A pilot seen from behind walking around a small propeller plane at dawn, a red streamer on one wing

A Daily DBA Checklist You Can Run as One Script

April 16, 2010
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Monitoring, SQL Scripts, SQL Server Agent

Run a daily DBA checklist that reports stale backups, failed jobs, offline databases, recent errors, low volume space and current blocking.

Read More
Gouache painting: in a railway yard, a long straight track runs left to right

geometry STCrosses: Crossing Depends on the Intersection Dimension

April 14, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STCrosses uses the dimension and interior position of the intersection to define crossing. I compare it with endpoint contact and collinear overlap. A shared point or segment does not automatically satisfy that definition.

Read More
Previous 1 … 262 263 264 265 266 267 268 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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