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

393 reads

Blogs

Fixing the PoSh Hotkey in ADS

By

I installed the PowerShell (PoSh) extension in ADS recently. This is available in the...

Capture Execution Plans Only For Long Running Queries

By

I love questions. Most of all, I love questions I can answer. I spotted...

Daily Coping 28 Sep 2020

By

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

Read the latest Blogs

Forums

API Newbee

By thedeadzeds

Hi Guys, I'm completely new to API's and i was wondering if there is...

Simple Python question...

By pietlinden

I have a table in SQL Server like this: CREATE TABLE #SymptomData (  ...

Regular expressions in script component

By sqlfriend

In one of our SSIS package we have a script component that validate a...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers