Forum Replies Created

Viewing 15 posts - 4,246 through 4,260 (of 8,754 total)

  • RE: Database Server Memory always showing 98%

    rameelster (11/20/2015)


    but the database instance contain 2 databases each with size 240 GB and 714 GB respectively. Dont you think that 80 percent memory is very less.

    No I don't...

  • RE: Database Server Memory always showing 98%

    rameelster (11/20/2015)


    DB server consists of Inter Xeon processor(2 Processors) with 40 cores and a memory size of 64 GB. I have allocated 61 GB for sql server and the rest...

  • RE: Need comma separated output

    Quick suggestion

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'tempdb..#Test') IS NOT NULL DROP TABLE #Test;

    Create Table #Test

    (id int identity,C1 bit , C2 Bit , C3 Bit)

    insert into #Test Values (0,0,0)

    ...

  • RE: Are the posted questions getting worse?

    Jeff Moden (11/19/2015)


    There are many more but, just to wet the appetite for other possibilities...

    SELECT {fn NOW()};

    SELECT {fn CURRENT_DATE()} + ' ' + {fn CURRENT_TIME()};

    EXEC...

  • RE: Are the posted questions getting worse?

    Luis Cazares (11/19/2015)


    Eirikur Eiriksson (11/19/2015)


    Luis Cazares (11/19/2015)


    I feel excluded.

    How come?

    😎

    You left my method out

    Couldn't fit it in the select statement, too many EXEC'y thingies in there, any alternatives?

    😎

  • RE: Are the posted questions getting worse?

    Alvin Ramard (11/19/2015)


    Eirikur Eiriksson (11/19/2015)


    Alvin Ramard (11/19/2015)


    Eirikur Eiriksson (11/19/2015)


    Luis Cazares (11/19/2015)


    I feel excluded.

    How come?

    😎

    Luis, I'll include you with me. 🙂

    That looks way too close to a union all statement...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (11/19/2015)


    Eirikur Eiriksson (11/19/2015)


    Luis Cazares (11/19/2015)


    I feel excluded.

    How come?

    😎

    Luis, I'll include you with me. 🙂

    That looks way too close to a union all statement for comfort:-P

    😎

  • RE: Are the posted questions getting worse?

    Luis Cazares (11/19/2015)


    I feel excluded.

    How come?

    😎

  • RE: Are the posted questions getting worse?

    So to recap, here are 9 different methods for getting the current time, any additions anyone?

    😎

    SELECT

    GETDATE()

    ,SYSDATETIME()

    ,SYSDATETIMEOFFSET()

    ,CURRENT_TIMESTAMP

    ...

  • RE: Are the posted questions getting worse?

    Sean Lange (11/19/2015)


    Jacob Wilkins (11/19/2015)


    jasona.work (11/19/2015)


    Luis Cazares (11/19/2015)


    jasona.work (11/19/2015)


    I was going to post this over in Steve's call for Good Basic T-SQL Exercises but decided not to pollute the topic...

  • RE: How to get 'Year' in a case statement

    Quick suggestion, convert the year to varchar

    😎

  • RE: Are the posted questions getting worse?

    Ed Wagner (11/17/2015)


    Steve Jones - SSC Editor (11/17/2015)


    8am yesterday

    3pm yesterday

    8am today

    Yep. I've seen that same scenario many times myself. I get it. Welcome to winter.

    Coming from a...

  • RE: Are the posted questions getting worse?

    Ed Wagner (11/16/2015)


    GilaMonster (11/16/2015)


    Brandie Tarvin (11/16/2015)


    Ed Wagner (11/16/2015)


    BrainDonor (11/16/2015)


    djj (11/16/2015)


    I will be the first to admit I am not the smartest person, but at least I try to ask questions...

  • RE: Are the posted questions getting worse?

    djj (11/16/2015)


    Brandie Tarvin (11/16/2015)


    Ed Wagner (11/16/2015)


    BrainDonor (11/16/2015)


    djj (11/16/2015)


    I will be the first to admit I am not the smartest person, but at least I try to ask questions by providing...

  • RE: Assigning TOP 1 value to a variable in a stored procedure

    Can you please elaborate on the purpose of the subquery in the select statement (bold)? Any reason for not joining to the wheeltravelcard table?

    😎

    SELECT top 1 RFID

    from wheeltravelcard...

Viewing 15 posts - 4,246 through 4,260 (of 8,754 total)