Art

SQL Database Administrator/Developer. Background in developing OLTP/document based databases, SQLXML and performance tuning with an unhealthy fascination for the SQL query optimiser!

Blog Post

Denali

Is all set to be officially known as SQL 2012 and will be finally released in....... 2012!
Announced at the PASS...

2011-10-15

731 reads

Blog Post

SQLBits9

SQLBits9 – “Query across the Mersey” was held in the majestic Adelphi hotel. This was my first SQLBits experience and was...

2011-10-10

891 reads

Blogs

Generating Random Strings with GenAI

By

One of the things I’ve been experimenting with in AI is taking things other...

Heading to SQL Bits 2025

By

I’ll be at SQL Bits tomorrow, Saturday Jun 20, 2025 for the final day...

Exploring the Next Gen General Purpose Tier in Azure SQL Managed Instance

By

In a recent video, I took a hands-on look at the Next Gen General...

Read the latest Blogs

Forums

SSRS error: The Value for the image 'Image1' has a constant value...

By sgmunson

Full error message: SSRS error: The Value for the image 'Image1' has a constant...

XML_COMPRESSION for existing tables

By zoggling

We are in the process of upgrading to SQL Server 2022 and would like...

How to Choose the Right Tool for MS SQL to PostgreSQL Migration

By intellicon

Comments posted to this topic are about the item How to Choose the Right...

Visit the forum

Question of the Day

Adding Defaults

I have a table, called dbo.logger, in SQL Server 2022. I decide to add two new columns to this table with this code.

ALTER TABLE dbo.logger ADD CreateDate DATETIME CONSTRAINT dfGetDate DEFAULT GETDATE()
GO
ALTER TABLE dbo.logger ADD ModifyDate DATETIME DEFAULT dfGetDate
GO
What happens when I run these two batches?

See possible answers