Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)

  • RE: Varchar Exceeding 8000 characters

    If we take a subset of dates then the same is working

    If we need all the dates of a Year to be taken in that query, is it possible as...

  • RE: Varchar Exceeding 8000 characters

    my dynamic Query which will be in variable @query is not taking values greater than 8000, even though i have declared it as varchar(max)

    Print @query is returning only 8000 charcters...

  • RE: Varchar Exceeding 8000 characters

    DECLARE @query VARCHAR(max)

    declare @cols VARCHAR(max)

    set @cols=dbo.[getAllDaysInYear]()

    print @cols

    SET @query = N'SELECT userid, '+@cols +'

    FROM

    ( select userId,CONVERT(VARCHAR(10), loggedDate, 120) as loggedDate,logCount from loginStats

    )

    AS Q1

    PIVOT

    (

    sum( logCount) FOR loggedDate IN ('+@cols...

  • RE: Getting Last row in a partitioned list

    I want result which will give the last record flag for a partitioned list

    i.e.,for the third row the flag should be LAST

    testCol rowno DUPREQ

    a ...

  • RE: Getting the query based on Cols

    for a table containing n cols (col1,col2.....coln) i want to exclude col1,col2

Viewing 5 posts - 1 through 5 (of 5 total)