Calculate the Last Day of the Month using SQL

Calculate the Last Day of the Month using SQL

Month: January 2019

by Erwin | Jan 29, 2019

Calculate the Last Day

Today I needed to calculate the last day of the previous month for a Customer.

Ever heard from the function EOMONTH?

Searching on the web I came across a function I never heard from before EOMONTH, this function can be used as of SQL Server 2012.

With this function you never have to worry anymore about how many days(28,29,30,31) your month has.

The function works as follows:

Defined date:

declare @datum datetime = '2018.11.01'

SELECT EOMONTH(DATEADD(mm, -1, @datum)) as LastDayPreviousMonth

Getdate()

SELECT EOMONTH(DATEADD(mm, -1, getdate())) as LastDayPreviousMonth

Current Month

SELECT EOMONTH(getdate()) as LastDayCurrentMonth

 

 

 

Feel free to leave a comment

Change your Action Group in Azure Monitoring

Month: January 2019

by Erwin | Jan 11, 2019

Change a Action Group

Previous Article

In my previous artcile I wrote about how to create Service Helath Alerts.

In this article you will learn how to change the Action Group to add, change or Remove members(Action Group Type Email/SMS/Push/Voice)

Azure Portal

In the Azure Portal go to Monitor – Alerts – Manage Action Groups

 

 

 

 

Click on the Action Group you want to change and a new window will open.

 

Remove, Add or Change Members:

You have several options you can change:

Add a New Member

Remove a Member( click on the X below ACTIONS)

Change a Member(click on the edit details)

 

 

 

 

 

Change Member

In the new Window you can change, the name, email address or Notification Type

 

 

Fill in your email address

 

 

 

 

 

Fill in your email address and make your sure you install the Micrsosoft Azure app on your phone to receive push messages

 

 

 

 

Thanks so much for reading through this article today, and I hope you all take some time to try it out. It's will make your life easier.

Feel free to leave a comment

Data Factory Pricing

Data Factory Pricing

Data Factory pricing

Are you also having problems to understand the Pricing Model for Azure Data Factory? 

After some research on the internet I came across an article which I wanted to share with you.

ADFV2 Pricing Examples