Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
I have to use first day of last month and last day of last month as defaults for a stored procedure. I want the user to be able to input them. This is one example of what should be the default for @EndDate:SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0))If I can't use that, is there another way to get that as the default?Duane