Viewing 6 posts - 1 through 6 (of 6 total)
CREATE FUNCTION dbo.[fnGetMonthDays1]
(
@DATE DATE
)
RETURNS INT
AS
BEGIN
RETURN DAY(DATEADD(DAY,-1,DATEADD(MONTH,1,CONVERT(DATE,@DATE,101))))
END
will not work, check:
SELECT dbo.fnGetMonthDays1(CONVERT(DATE,'31 Jan 2012'))
November 10, 2014 at 4:30 am
You repeat explanation of "Consider Using a Foreign Key in the Search Key of the Clustered Index" in "Consider Having Included Columns in your Indexes " 😉
July 11, 2011 at 3:48 am
I think it is better to put "s.database_id = db_id()" in join statement
... INNER JOIN SYS.INDEXES AS I ON I.[OBJECT_ID] = S.[OBJECT_ID] AND I.INDEX_ID = S.INDEX_ID and S.database_id =...
July 5, 2011 at 7:20 am
I try, of course.
When I try to make subscription, if set only servername\instancename, wizard can not to connect to this instance, but when put servername\instancename, port - it send...
May 29, 2008 at 2:22 am
Cool,
It is nice solution, and with some modification, it can be usefully.
July 27, 2005 at 8:00 am
Unfortunately, I HAVE TO allow developers to run profiler for maintenance purpose (for several applications) on production server. That is the way it...
July 27, 2005 at 5:03 am
Viewing 6 posts - 1 through 6 (of 6 total)