Forum Replies Created

Viewing 15 posts - 7,156 through 7,170 (of 26,490 total)

  • RE: Are the posted questions getting worse?

    It is 23:27 Afghan time. Three minutes until my phone interview. Wish me luck!

  • RE: Proc with input paramaters does not compile

    Jeff Moden (11/11/2013)


    Lynn Pettis (11/11/2013)


    Just a suggestion based on my own philosophy, regardless of collation used (case sensitive or case insensitive) you should write your code as if it is...

  • RE: use cte instesd of while and temp table

    mister.magoo (11/11/2013)


    Lynn Pettis (11/11/2013)


    If I read your code correctly, this may work:

    INSERT INTO FarzinIntro

    SELECT

    r.Role_ID,

    r.User_ID,

    dt1.n,

    GETDATE()

    FROM

    ...

  • RE: Proc with input paramaters does not compile

    Just a suggestion based on my own philosophy, regardless of collation used (case sensitive or case insensitive) you should write your code as if it is always case sensitive. ...

  • RE: Proc with input paramaters does not compile

    Express12 (11/11/2013)


    thx for helping me out here.. Our code is proprietary therefore I created a short example in my original post. The comma is actually in my "live" EXEC...

  • RE: use cte instesd of while and temp table

    If I read your code correctly, this may work:

    INSERT INTO FarzinIntro

    SELECT

    r.Role_ID,

    r.User_ID,

    dt1.n,

    GETDATE()

    FROM

    ...

  • RE: Index creation help

    First, be careful with making a covering index. Depending on how many columns of data and their sizes may make a covering index quite large. If this is...

  • RE: Selection!! Please help

    kgeeel240 (11/11/2013)


    Hi

    I inspection offices (+-200) i need to select the ones that did not perform inspections for the past 2 years

    please assist

    Select the max inspection date for each office, identify...

  • RE: Are the posted questions getting worse?

    I find that the more I have learned there is also a lot more to learn. As you gain experience, for instance, in tuning SQL code you start to...

  • RE: Are the posted questions getting worse?

    Revenant (10/25/2013)


    Luis Cazares (10/25/2013)


    I'm losing faith in humanity here as I've been interviewing some candidates for BI developers at my job. The last one claiming to have 8 years of...

  • RE: Fantasy football 2013

    SQLDCH (10/24/2013)


    You saved my bacon. That's what I get for spending too much time in one league.

    Game is on in an hour so, get those lineups updated.

    Matchups:

    SSC Steelers (3-4)...

  • RE: palindrome

    Jeff Moden (10/20/2013)


    sqlserver12345 (10/20/2013)


    I do not want to use reverse function.please check the code I posted and correct what wrong I did.thanks

    I'm curious... please explain why you don't want to...

  • RE: palindrome

    Short circuited the loop even more:

    declare @Str1 varchar(10) = 'ABBA';

    declare @IsPalindrome bit = 1;

    declare @LoopCnt int = 0;

    while @LoopCnt < len(@Str1) and @IsPalindrome = 1 and (1 + @LoopCnt <...

  • RE: palindrome

    And if you must use a loop then how about this?

    declare @Str1 varchar(10) = 'ABBA';

    declare @IsPalindrome bit = 1;

    declare @LoopCnt int = 0;

    while @LoopCnt < len(@Str1) and @IsPalindrome = 1

    begin

    select...

  • RE: palindrome

    sqlserver12345 (10/20/2013)


    I do not want to use reverse function.please check the code I posted and correct what wrong I did.thanks

    And what is wrong with using the reverse function?

Viewing 15 posts - 7,156 through 7,170 (of 26,490 total)