Forum Replies Created

Viewing 15 posts - 676 through 690 (of 1,193 total)

  • RE: Checking the bitwise value of an integer

    Eirikur Eiriksson (1/19/2016)


    aaron.reese (1/19/2016)


    @jacob and @jeff

    SSRS is not my natural home 😀 so I was not aware that IIF(x AND y) is a bitwise operation. Maybe I wasn't asking...

  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (1/19/2016)


    GilaMonster (1/19/2016)


    *sigh* All but one comment on a blog post are of the form 'Did you try X?' 'Have you compared Y?' 'Probably should have a test with...

  • RE: Find Latest Date from Multiple Columns

    Throwing in the CASE using Eirikur's wonderful setup yielded this on one million rows on my machine (tangentially, I'm embarrassed that Eirikur's laptop is faster than my test server :blush:):

    T_TEXT...

  • RE: Can DBCC FREEPROCCACHE not work properly at certain times?

    This sounds less like FREEPROCCACHE didn't work and more like you just had some queries get compiled with poor plans. After a subsequent clearing of the cache, they happened to...

  • RE: AlwaysOn - Read Only Replica's

    curious_sqldba (1/19/2016)


    I am using listener to connect through SSMS, i do have ApplicationIntent = ReadOnly, still it connects to primary? Am i missing something here?

    You have to actually configure the...

  • RE: Extracting tables from SPs

    If you're wanting to see the objects that are referenced by that stored procedure, then you're checking the wrong thing in the WHERE clause.

    As written, that query is looking for...

  • RE: Extracting tables from SPs

    river1 (1/19/2016)


    When I try to use that I get empty back. No records returned

    Also keep in mind the database context. If you're running this without specifying your database, and your...

  • RE: Find Latest Date from Multiple Columns

    Just a cautionary note on the CASE version: be aware of how your implementation handles ties. If you're not careful with the CASE, then you can get incorrect results, as...

  • RE: Checking the bitwise value of an integer

    Jeff Moden (1/18/2016)


    Jacob Wilkins (1/13/2016)


    I might be misunderstanding you, but if you're starting with the integer value (it sounds like you are?), then I find this method a bit more...

  • RE: Checking the bitwise value of an integer

    Eric M Russell (1/18/2016)


    Why not use the T-SQL bitwise operators?

    https://msdn.microsoft.com/en-us/library/ms174965.aspx

    For example:

    3 & 0 = 0

    3 & 1 = 1

    3 & 2 = 2

    3 & 4 = 0

    123456 & 1 =...

  • RE: Checking the bitwise value of an integer

    That's not quite what that does. 🙂

    AND is bitwise AND there.

    So it takes 2 to the power of 1 less than the bit to validate (so, if validating the first...

  • RE: LEFT JOIN

    It doesn't matter that there are no matching rows in the postal table.

    If that query returns 126 rows, that means there are 126 ZipCodes in the Import table that occur...

  • RE: Are the posted questions getting worse?

    Alas, I was almost going to go to Nashville, but transportation's easier to Chicago, so I'm aiming for that one.

  • RE: LEFT JOIN

    Welsh Corgi (1/14/2016)


    I execute the following Query:

    INSERT INTO POSTAL (ID,Latitude, ID.Longitude, CityTownshipID, CountyRegionID,StateProvinceID,CountryID)

    SELECT ZipCode, Latitude, Longitude,CityTownshipID , CountyRegionID, StateProvinceID, CountryID

    FROM Postal_Codes_Import

    WHERE NOT EXISTS (SELECT *

    ...

  • RE: Working out time remaining (Modulo)

    I seem to recall that with SSAS you have to use the form A-(INT(A/B)*B) as a substitute for A%B, since SSAS lacks a modulo operator.

    That would work out to something...

Viewing 15 posts - 676 through 690 (of 1,193 total)