Forum Replies Created

Viewing 15 posts - 3,496 through 3,510 (of 8,753 total)

  • RE: Are the posted questions getting worse?

    BWFC (7/1/2016)


    Eirikur Eiriksson (7/1/2016)


    Brandie Tarvin (7/1/2016)


    Oh dear. I knew things were getting tense in Asia, especially between China and Taiwain, but this?

    Oh dear. I hope they talk it out first.

    Brandie,...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (7/2/2016)


    BWFC (7/1/2016)


    Eirikur Eiriksson (7/1/2016)


    Brandie Tarvin (7/1/2016)


    Oh dear. I knew things were getting tense in Asia, especially between China and Taiwain, but this?

    Oh dear. I hope they talk it...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (7/1/2016)


    Oh dear. I knew things were getting tense in Asia, especially between China and Taiwain, but this?

    Oh dear. I hope they talk it out first.

    Brandie, you are part...

  • RE: Return XML from SQL Server with particular format

    maruthipuligandla (6/30/2016)


    Hi,

    If i've multiple rows, then Header and Footer values are repeating for each Report row. I dont want to repeat them, I just need them as seperate attributes.

    Here is...

  • RE: Return XML from SQL Server with particular format

    This quick suggestion should get you started

    😎

    USE tempdb;

    SET NOCOUNT ON;

    ;WITH SAMPLE_DATA(PrintedDate,PrintedBy,DocumentPreparedBy,Name,UserName,Remarks,IPAddress,DateCreated,AppID,AppVersion,LastLoggedin) AS

    (SELECT * FROM

    (VALUES

    (

    CONVERT(DATE,'20010123',112)

    ...

  • RE: XML Parsing Help

    s-sql (6/28/2016)


    Thank you. The solution worked.

    You are very welcome.

    😎

  • RE: XML Parsing Help

    Quick suggestion

    😎

    Declare @Message xml

    Declare @Proc xml

    Declare @customer XML

    Declare @product xml

    set @Message = '<Message>

    <Procedure>sp_testProc</Procedure>

    <Customer>

    <row>

    ...

  • RE: Today's Random Word!

    ThomasRushton (6/28/2016)


    Ed Wagner (6/27/2016)


    Ray K (6/27/2016)


    Ed Wagner (6/27/2016)


    crookj (6/27/2016)


    Manic Star (6/27/2016)


    Puns

    Xanth (the Puniest series ever)

    Nth Degree

    Stephan Pastis (punniest cartoonist ever)

    Swine

    Bacon

    Football

  • RE: Generate n random int subsets

    Hi Xedni,

    you are very welcome. I do see one problem with your code and that is that all subsets of the same size will be identical (duplicates), is this what...

  • RE: Sql Duplicate Values

    Jeff Moden (6/27/2016)


    Nice code, as always, Eirikur, but I'm curious why you would help someone do something that you agree they should not do. :blink: I hope the company...

  • RE: Querying XML

    Jeff Moden (6/27/2016)


    Eirikur Eiriksson (6/26/2016)


    It seems like just being able to produce a result set is currently the acceptable standard, regardless of the (in)efficiency of the query.

    With or without...

  • RE: Sparse Columns and Sys columns

    Quick suggestion

    😎

    SELECT

    SAC.object_id

    ,SAC.name

    ,SAC.column_id

    ,SAC.system_type_id

    ,SAC.user_type_id

    ,SAC.max_length

    ,SAC.precision

    ,SAC.scale

    ,SAC.collation_name

    ...

  • RE: Need help for Genarte HTML with Rowspan.

    Add the count of each department as the rowspan to the first department cell of each department, easy with count and row_number over (partition by department)

    😎

  • RE: Need help for Genarte HTML with Rowspan.

    Quick though, count the null columns in each row and add the count to the colspan of the last cell.

    😎

  • RE: Sql Duplicate Values

    Must say that I agree with Jeff here, this seems to be very fragile and error prone, ie. what if two customers have the same name?

    😎

    The deduplication part is really...

Viewing 15 posts - 3,496 through 3,510 (of 8,753 total)