Forum Replies Created

Viewing 15 posts - 2,161 through 2,175 (of 15,381 total)

  • RE: NULL and empty string question...

    g.britton (10/29/2015)


    For that matter I wish we had true Boolean variables. But I dream.

    We do.

    create table MyTrueBoolean

    (

    TrueBool bit not null

    )

    If you have a bit column and no value is...

  • RE: Need to capture SQL server Information

    New persopn (10/29/2015)


    Hi Team,

    I just want to capture the below information through SQL script.

    SQL Server Name

    Number Of Instances

    Number of Databases and size

    Service account details

    RAM

    CPU

    ANY HA is configured for databases like...

  • RE: NULL and empty string question...

    seware74 (10/29/2015)


    I have always (or at least intended to) treat NULL and empty strings separately in my SQL querying history. Now I have run across something that mystifies me (but...

  • RE: Are the posted questions getting worse?

    ChrisM@Work (10/29/2015)


    Ed Wagner (10/29/2015)


    yb751 (10/29/2015)


    I was on my last eye twitch yesterday (so to speak) so I put together this image. (attached)

    I was thinking about unleashing it but then I...

  • RE: Are the posted questions getting worse?

    Ed Wagner (10/29/2015)


    yb751 (10/29/2015)


    I was on my last eye twitch yesterday (so to speak) so I put together this image. (attached)

    I was thinking about unleashing it but then I thought...

  • RE: More wildcard searches

    Uri.KlilHahoresh 86084 (10/28/2015)


    Well, I answered 5 because 3 was not an option

    as usuall the correct answer is "depends..."

    if database is case sensitive then the answer should be 3!

    As has always...

  • RE: where clause help

    ChrisM@Work (10/28/2015)


    Sean Lange (10/28/2015)


    kat35601 (10/28/2015)


    ...

    ....

    Then you have inequality conditions in you where clause. This is nonSARGable and prevents index seeks.

    ...

    Not always:

    CREATE TABLE #MyTable (ID INT IDENTITY(1,1) NOT NULL, Inequality...

  • RE: where clause help

    kat35601 (10/28/2015)


    in my where clause I want to include items where

    "redtag='Y"

    omit items like

    "OrbeData_KithKitchens.dbo.WIP_master.STATUS not IN ('1','25','50')"

    I also want to omit items that have a status...

  • RE: Query to fall back on different columns

    sarath.tata (10/28/2015)


    So many questions... This could be achieved with this query... The mistake i did was putting same number in person id for everyone (copy / paste issue). There...

  • RE: Query to fall back on different columns

    sarath.tata (10/28/2015)


    I have a person table

    CREATE TABLE Person

    (

    PersonID INT

    Name varchar(50),

    HireDate datetime,

    HireOrder int,

    AltOrder int

    )

    Assume I have data like this

    INSERT INTO Person VALUES(1, 'Rob', '06/02/1988', 0, 0)

    INSERT INTO Person VALUES(1, 'Tom', '05/07/2016',...

  • RE: More wildcard searches

    Ed Wagner (10/28/2015)


    Chris Wooding (10/28/2015)


    Does that mean I get a toaster now?

    I'm holding out for the SSC T-shirt. 😛

    I know!!! I would wear one. I have a ms-sql tips shirt...

  • RE: More wildcard searches

    below86 (10/28/2015)


    Sean Lange (10/28/2015)


    below86 (10/28/2015)


    Sean Lange (10/28/2015)


    Roshan Oozeer (10/28/2015)


    Correct answer is 5 not 4 ... I want my 2 points.... Thank you

    Roshan

    You just got one of them. If you want...

  • RE: More wildcard searches

    below86 (10/28/2015)


    Sean Lange (10/28/2015)


    Roshan Oozeer (10/28/2015)


    Correct answer is 5 not 4 ... I want my 2 points.... Thank you

    Roshan

    You just got one of them. If you want points that badly...

  • RE: More wildcard searches

    Roshan Oozeer (10/28/2015)


    Correct answer is 5 not 4 ... I want my 2 points.... Thank you

    Roshan

    You just got one of them. If you want points that badly you can have...

  • RE: Summarising transaction data removing nulls

    Luis Cazares (10/27/2015)


    yb751 (10/27/2015)


    Awesome solution Luis, I'm going to keep this one for a rainy day. Just curious why you created a @date_serial variable. Is it needed?

    Yes, it's...

Viewing 15 posts - 2,161 through 2,175 (of 15,381 total)