Forum Replies Created

Viewing 15 posts - 4,996 through 5,010 (of 8,761 total)

  • RE: rounding decimal to nearest integer value

    sayedkhalid99 (6/28/2015)


    how to round the nearest value after round of decimal and return integer. thanks.

    declare @data decimal(18,2)

    set @data = 5.55

    -- output

    select '5'

    set @data = 5.58

    -- output

    select...

  • RE: Using a Recursive CTE to Generate a List

    Jeff Moden (6/28/2015)


    Ok. I've decided to get to the bottom of this once and for all. I've posted the following on the MVP email site. We'll see...

  • RE: Using a Recursive CTE to Generate a List

    Jeff Moden (6/28/2015)


    Even with that fine hypothesis, it's not conclusive proof that the table spool is being read one row at a time for each row or one page at...

  • RE: Using a Recursive CTE to Generate a List

    ChrisM@home (6/28/2015)


    Also Assert, unless you've unlimited MAXRECURSION.

    So what, in this example, has data organised as 8k pages?

    Or to put it another way, why should spools be expected to...

  • RE: Using a Recursive CTE to Generate a List

    ChrisM@home (6/28/2015)


    This is about the simplest rCTE that I can think of. No 8k pages anywhere yet Statistics IO reports logical reads:

    SET STATISTICS IO ON;

    WITH rCTE AS (

    SELECT n =...

  • RE: Using a Recursive CTE to Generate a List

    ChrisM@home (6/28/2015)


    This is about the simplest rCTE that I can think of. No 8k pages anywhere yet Statistics IO reports logical reads:

    SET STATISTICS IO ON;

    WITH rCTE AS (

    SELECT n =...

  • RE: Using a Recursive CTE to Generate a List

    Done some testing on rCTEs in the passed, couldn't correlate the logical reads to rows/recursions.

    😎

    Simple test code

    USE Test;

    GO

    SET NOCOUNT ON;

    /* Recursions from 1-20,30,40,50,60,70,80,90,100 */

    GO

    DECLARE @SAMPLE_SIZE INT...

  • RE: PIVOT without aggregation

    Quick cross-tab suggestion

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @OracleEngData TABLE

    ( [OMNI_NUMBER] INTEGER

    , [TIMESTAMP] INTEGER

    , [DATA_TYPE] NVARCHAR(24)

    , [DATA_TYPE2] NVARCHAR(24)

    , [PARAMETER] NVARCHAR(32)

    , [PARAMETER_VALUE] NVARCHAR(132));

    INSERT INTO @OracleEngData

    (OMNI_NUMBER,TIMESTAMP,DATA_TYPE,DATA_TYPE2,PARAMETER,[PARAMETER_VALUE])

    VALUES

    (506026,1413240436,'test_data','cnr',211250000,54.8)

    ,(506026,1413244259,'test_data','cnr',211250000,53.2)

    ,(506026,1413244679,'test_data','cnr',211250000,53.1)

    ,(506026,1413309646,'test_data','cnr',211250000,53.4)

    ,(506026,1413315987,'test_data','cnr',211250000,53 )

    ...

  • RE: Today's Random Word!

    Sean Lange (6/26/2015)


    DonlSimpson (6/26/2015)


    Ed Wagner (6/26/2015)


    BL0B_EATER (6/26/2015)


    BWFC (6/26/2015)


    eccentricDBA (6/26/2015)


    djj (6/26/2015)


    Ed Wagner (6/26/2015)


    Eirikur Eiriksson (6/25/2015)


    TomThomson (6/25/2015)


    Drink

    Water

    Ocean

    Liner

    Makeup

    Breakup

    Terminate

    Liquid Metal

    Mercury

    Buick

    Ride

  • RE: Are the posted questions getting worse?

    jonathan.crawford (6/26/2015)


    dwain.c (6/25/2015)


    I've heard that the CIA/NSA can learn a lot about you from what's on your bookshelf.

    Not sure what they'd make of the cat.

    pshaw, that's nothing compared to your...

  • RE: Today's Random Word!

    Ed Wagner (6/26/2015)


    DonlSimpson (6/26/2015)


    Ed Wagner (6/26/2015)


    BL0B_EATER (6/26/2015)


    BWFC (6/26/2015)


    eccentricDBA (6/26/2015)


    djj (6/26/2015)


    Ed Wagner (6/26/2015)


    Eirikur Eiriksson (6/25/2015)


    TomThomson (6/25/2015)


    Drink

    Water

    Ocean

    Liner

    Makeup

    Breakup

    Terminate

    Liquid Metal

    Mercury

    Saturn

    Orbit

  • RE: Today's Random Word!

    TomThomson (6/25/2015)


    Ed Wagner (6/25/2015)


    DonlSimpson (6/25/2015)


    whereisSQL? (6/25/2015)


    Ed Wagner (6/25/2015)


    Narud (6/25/2015)


    djj (6/25/2015)


    Ed Wagner (6/25/2015)


    crookj (6/25/2015)


    Stuart Davies (6/25/2015)


    Revenant (6/25/2015)


    Ed Wagner (6/25/2015)


    BL0B_EATER (6/25/2015)


    crookj (6/25/2015)


    Ed Wagner (6/25/2015)


    DonlSimpson (6/24/2015)


    Ed Wagner (6/24/2015)


    Sean Lange (6/24/2015)


    Please!!!

    More

    Routing

    Redirection

    U-Turn

    opposite

    Polar

    Equatorial

    Forrest

    AD (Active Directory)

    Domain

    Password

    Strong

    Power

    Hungry

    Malnutrition

    Food

    Drink

    Water

  • RE: Using Column encryption with symmetric keys

    qur7 (6/25/2015)


    Can you be a bit ore descriptive?

    I'll give it a try;-)

    The error is coming from the Decrypt function when attempting to assign the output of DecryptByKey to the @Result...

  • RE: need help on Scalar value Function

    Piling on the NOLOCK discussion, the behaviour is different between temporary tables and normal heap tables. When using #temp tables, the NOLOCK hint will not only have a shared (S)...

  • RE: Using Column encryption with symmetric keys

    qur7 (6/25/2015)


    I understand that I need to use convert function, but how and where, need a bit more explanation. Hope people wont mind.

    Did you look at the thread in my...

Viewing 15 posts - 4,996 through 5,010 (of 8,761 total)