Forum Replies Created

Viewing 3 posts - 16 through 18 (of 18 total)

  • RE: Error Message

    SELECT CAST(SUM(FileSize)AS  INT) MB, CAST(SUM(FileSize)/1000 AS  INT) GB

    from o_file

    where volid = 16 and groupid = 221

    Server: Msg 8115, Level 16, State 2, Line 1

    Arithmetic overflow error converting expression...

  • RE: Error Message

    Are you saying

    CAST(SUM(FileSize)AS BIGINT) MB, CAST(SUM(FileSize)/1000 AS BIGINT) GB from o_file where volid = 16 and groupid = 221

    Because I still get, "incorrect syntax near the keyword 'sum'"

  • RE: Error Message

    CAST(SUM(FileSize)) AS BIGINT) MB,

    CAST(SUM(FileSize)/1000 AS BIGINT) GB

    from o_file

    where volid = 16 and groupid = 221

    I get incorrect syntax near the keyword 'sum'

Viewing 3 posts - 16 through 18 (of 18 total)