Viewing 15 posts - 766 through 780 (of 1,048 total)
i want an example of converting int to time...
i cant change the datatype of column to varchar
December 4, 2012 at 6:34 am
when i try to do this it gives me error-
declare @date varchar(20)
select @date=CONVERT(time,convert(int,'5',1))
print @date
Msg 529, Level 16, State 2, Line 3
Explicit conversion from data type int to time is not...
December 4, 2012 at 6:10 am
when i tried to change collation for a column I got this error--
Expression type tinyint is invalid for COLLATE clause.
December 4, 2012 at 4:46 am
excellent question with great discussion by gr8 ppl 🙂
December 3, 2012 at 11:41 pm
I will try with Tally table and tally calender which Jeff has suggested....
Thnks for the suggestion 🙂
December 3, 2012 at 7:43 am
Jeff is right...
I dont have any knowledge of Tally Table..
December 3, 2012 at 5:51 am
I have created this script but looking for more optimization regarding performance--
DECLARE @count int
SET @count = 30
DECLARE @sundays int
SET @sundays = 0
DECLARE @startdate datetime
SET @startdate ='2012-01-01'
DECLARE @enddate datetime
SET @enddate =...
December 3, 2012 at 3:22 am
Viewing 15 posts - 766 through 780 (of 1,048 total)