Get Number of Days in month

Have seen existing scripts to work out number of days in month. They tend to work out the month, and then whether it's a leap year.Another approach is to take the date passed in, find the first day of the next month, and then use Datadd to take off one day, ie: last day of […]

4 (1)

2002-10-17

394 reads

Blogs

Daily Coping 13 Apr 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Converting a SQL Server Docker image to a WSL2 Distribution

By

Windows Subsystem for Linux is probably my favourite feature of Windows 10. It gives...

Everyone Run a SQL Saturday in 2021

By

With SQL Saturdays being rebooted, and the SQLSaturday.com website live, it’s time for events....

Read the latest Blogs

Forums

connect to mdf file of localDB

By snomadj

Potentially dumb question.  There is 1 x ldf & 1 x mdf for DB1. ...

Incorrect update

By marcin89

Hello, I made mistake during updating cells in table.In column that contains int type,...

Dua To Make Heart Soften +91-9783777879 molvi Abbotsford

By VADIC850

Dua To Make Heart Soften +91-9783777879 molvi Abbotsford Dua To Make Heart Soften +91-9783777879...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers