Forum Replies Created

Viewing 15 posts - 766 through 780 (of 1,048 total)

  • RE: Convert varchar

    i want an example of converting int to time...

    i cant change the datatype of column to varchar

  • RE: Convert varchar

    plz give me an example..

  • RE: Convert varchar

    Is there any other way to do this?

  • RE: Convert varchar

    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...

  • RE: Collation

    @anthony-2,

    how can we change the collation of a table?

  • RE: Collation

    when i tried to change collation for a column I got this error--

    Expression type tinyint is invalid for COLLATE clause.

  • RE: CASTing

    Good question...

    got to know about use of prefix N...

  • RE: Datetime conversion

    good question but confusing one....

  • RE: Delete Duplicates

    excellent question with great discussion by gr8 ppl 🙂

  • RE: Implicit Conversions

    good question with great discussion 🙂

  • RE: Calculate weekend

    I will try with Tally table and tally calender which Jeff has suggested....

    Thnks for the suggestion 🙂

  • RE: Calculate weekend

    Jeff is right...

    I dont have any knowledge of Tally Table..

  • RE: Calculate weekend

    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 =...

  • RE: Calculate weekend

    in this case it will be '2012-02-03'

  • RE: ORDER BY

    good basic question with a lot of discussion

Viewing 15 posts - 766 through 780 (of 1,048 total)