Forum Replies Created

Viewing 15 posts - 7,186 through 7,200 (of 8,760 total)

  • RE: Are the posted questions getting worse?

    Alvin Ramard (9/3/2014)


    Koen Verbeeck (9/3/2014)


    xsevensinzx (9/3/2014)


    I keep coming to this thread just to read all your fueled responses. It's baiting me to post a seriously dumb question just to read...

  • RE: Are the posted questions getting worse?

    Luis Cazares (9/3/2014)


    Koen Verbeeck (9/3/2014)


    Bah. I couldn't resist it.

    Someone call the Relational Protection Agency, we have an offender...oh, wait. 😀

    Reminds me of an old story, once upon a time the...

  • RE: Return single row for matching columns based on 3rd column

    Quick solution (if I got it right 😉

    😎

    USE tempdb;

    GO

    ;WITH BASE_DATA(Ticket,[User],[Priority]) AS

    (SELECT Ticket,[User],[Priority] FROM

    ( VALUES

    ('A','ME' , 1)

    ...

  • RE: Programmatically generate a number sequence

    Ray K (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    Ray K (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    I share Sean's concern here, at least there should be a check for the key-number existence and adjustment if there is a...

  • RE: Programmatically generate a number sequence

    Ray K (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    I share Sean's concern here, at least there should be a check for the key-number existence and adjustment if there is a key combination collision.

    😎

    Folks, you're...

  • RE: Adding a number to a string to create series

    CELKO (9/3/2014)


    I have an EventID that may have many sub events. ..How can I check what the EventID is, then concatenate a sequence number by the EventID?

    Why are you...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (9/3/2014)


    TomThomson (9/3/2014)


    Luis Cazares (9/3/2014)


    xsevensinzx (9/3/2014)


    Koen Verbeeck (9/3/2014)


    xsevensinzx (9/3/2014)


    I keep coming to this thread just to read all your fueled responses. It's baiting me to post a seriously dumb...

  • RE: Are the posted questions getting worse?

    xsevensinzx (9/3/2014)


    Eirikur Eiriksson (9/3/2014)


    No need to go through all this trouble, just give the drive to the ops team and it will be lost forever:crazy:

    😎

    Shots fired! :w00t:

    Casualties?

    😎

  • RE: Adding a number to a string to create series

    A non-typecast version

    😎

    USE tempdb;

    GO

    declare @eventid table(Eventid int);

    insert into @eventid values(31206),(31206),(31206),(31206),(31206),(31207),(31207);

    SELECT

    E.Eventid

    ,E.Eventid * POWER(10,2) + ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) AS New_Eventid -- two...

  • RE: Connectivity Ring Buffer

    eniacpx (9/3/2014)


    We are almost positive the issue has something to do with worker threads, at this point I am just interested in what all of these values tell me. I...

  • RE: Rounding with a Decimal

    Quick solution, subtract the modulo of 0.01

    😎

    USE tempdb;

    GO

    DECLARE @MyPay DECIMAL(18,9);

    SET @MyPay = 258.235543210;

    SELECT @MyPay = @MyPay - @MyPay % 0.01

    SELECT @MyPay

    SELECT CAST(@MyPay AS decimal(5,2))

    Results

    ---------------------------------------

    258.230000000

    (1 row(s) affected)

    ---------------------------------------

    258.23

    (1 row(s) affected)

  • RE: Programmatically generate a number sequence

    I share Sean's concern here, at least there should be a check for the key-number existence and adjustment if there is a key combination collision.

    😎

  • RE: Are the posted questions getting worse?

    TomThomson (9/3/2014)


    Luis Cazares (9/3/2014)


    xsevensinzx (9/3/2014)


    Koen Verbeeck (9/3/2014)


    xsevensinzx (9/3/2014)


    I keep coming to this thread just to read all your fueled responses. It's baiting me to post a seriously dumb question just...

  • RE: Connectivity Ring Buffer

    Quick thought, check the lock and sys.dm_os* statistics, chances are that "popular" locks are using up most available Workers, causes connection havoc.

    Search keywords: Workers, Scheduling Options, SQLOS, sys.dm_os*

    😎

  • RE: Adding a number to a string to create series

    Quick thought, multiply the EventID with 10^(num digits) and add the digits (sub ids)

    😎

Viewing 15 posts - 7,186 through 7,200 (of 8,760 total)