Dennis Cheung is a Senior DBA currently living in Hong Kong, he has been working with SQL server since 2000. He has supported a different version of SQL and loves to learn new technology.

Blog Post

SQL Licensing

Recently, there are lots of questions about SQL licenses, many of them came from the fact that they starting to upgrade to 2012/2014 from their old 2005 servers as...

2015-09-30

7 reads

Blogs

Free SQL Training: Dive into Databases This December!

By

Want to learn SQL and get some real practice this December? Check out the...

Playing with the Data API Builder

By

I published an article today on the Data API Builder, which is a way...

A New Word: Dolonia

By

dolonia – n. a state of unease prompted by people who seem to like...

Read the latest Blogs

Forums

Understanding allowed topics for testing

By avishwan

Hi, I am a first time writer looking to author some content here. I...

Do As I Say, Not As I Do

By Grant Fritchey

Comments posted to this topic are about the item Do As I Say, Not...

Filter a SQL Server Audit with a predicate

By michal.lisinski

Hi Gents, Silly question, but it's been a long time since I've done this....

Visit the forum

Question of the Day

The New Log File

I have a detached database from SQL Server 2019, called TDE_Primer. This database had a 100MB data file and a 73MB log file. The log file was lost, so I need to run this code:

USE [master]
GO
CREATE DATABASE [TDE_Primer] ON 
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\TDE_Primer.mdf' )
 FOR ATTACH_REBUILD_LOG
GO
How big is the new log file?

See possible answers