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 - Adding Column Defaulting to Current Datetime in Table

SQL SERVER – Adding Column Defaulting to Current Datetime in Table

May 10, 2013
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts, SQL Server

How do you add a column that fills in the current datetime when a row is inserted? A sample table and a column with a default value that does it for you.

Read More
An almost empty canoe rack on a dock with one red canoe left, while unreturned canoes sit on the far shore

Connection Pooling Problems: Timeouts, Leaks and Max Pool Size

May 9, 2013
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL DMV, SQL Error Messages, SQL Server

Diagnose connection pooling timeouts with session counts, sleeping activity, open transactions, and client settings that divide pools.

Read More
A goods train on one track with its oldest wagon uncoupled and rolling onto a side track

Table Partitioning Is Not Sharding: What Partitioning Really Gives You

May 7, 2013
Pinal Dave
SQL Tips and Tricks
Data Warehousing, SQL Performance, SQL Server, Table Partitioning

See why partitioning is not sharding, build monthly partitions, inspect elimination, and switch a month out for simpler data management.

Read More
Two hands set a landscape painting into a new wooden frame, the old frame leaning empty.

Adding IDENTITY to an Existing Column With ALTER TABLE SWITCH

May 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Server, SQL Table Operation, Table Partitioning

Add IDENTITY to an existing column with an empty matching table, ALTER TABLE SWITCH, a reseed, and full dependency checks.

Read More
A needle threader drawing one strand through one eye beside covered needles

UNMASK on One Column: Granting Unmasking in SQL Server 2022

May 2, 2013
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server 2022, SQL Server Security

Support needs phone numbers but not salaries. Here is how to unmask one column, and what that permission does not do.

Read More
A hand raising a single vermilion pennant on a flagpole above a harbor full of moored boats.

Adding a NOT NULL Column With a Default to a Big Table

May 1, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Column, SQL Constraint and Keys, SQL Server, SQL Table Operation

Add a NOT NULL column with a default safely, distinguish metadata changes from row updates, and plan a staged Standard edition rollout.

Read More
A lazy susan with seven colored bowls, including a red one, around a ring.

Weekday Logic That Works Under Any DATEFIRST Setting

April 27, 2013
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Make weekday logic independent of DATEFIRST with a normalized offset or a known Monday, then test every date in a full year.

Read More
Previous 1 … 273 274 275 276 277 278 279 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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