Viewing 4 posts - 1 through 4 (of 4 total)
Problem with code like this is the max variable length will be hit you when you least expect it. There is also the bigger problem of a delimiter or...
December 29, 2007 at 2:45 am
As Sushila said it may be obvious to some that it is sensible to move column names into variables of the same name prefixed by @ but I have seen...
October 3, 2005 at 11:43 am
Prefixing stored procedure names adds clutter and makes finding thim in Query analiser difficult. After all SELECT * FROM sysobjects WHERE xtype='P' get them all!
October 3, 2005 at 6:05 am
Try this:
CREATE FUNCTION RemoveTimeFromDate (@DateToModify datetime)
--input like: 01/01/2003 12:34:56
--output: 01/01/2003 00:00:00
--Ian Stone December 2003, issue1.0
RETURNS datetime
AS
BEGIN
DECLARE @ReturnDate datetime
SET @ReturnDate=DATEADD(hh,-DATEPART(hh,@DateToModify),@DateToModify)
...
April 11, 2005 at 12:04 pm
Viewing 4 posts - 1 through 4 (of 4 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy