Forum Replies Created

Viewing 15 posts - 2,521 through 2,535 (of 15,381 total)

  • RE: Text string parsing, to apply operators to datasets

    kyagi.jo (8/7/2015)


    I did think that would have been likely, does anyone know if there there are any resources on the internet that might give me a headstart on getting this...

  • RE: Fragmented Indexes

    ShorePatrol (8/7/2015)


    Hi Folks,

    I have some indexes over 30% fragmented. Some are much more...

    I have a job maintenance plan to "re-organize" indexes every Sunday on all databases. I didn't know if...

  • RE: Transact-SQL Syntax Conventions

    Thanks for the question. Good one to end the week with.

  • RE: Tuning a Stored Procedure

    j-1064772 (8/7/2015)


    [font="Comic Sans MS"]OK, I though it was something that was well known and that someone would clarify. Given your level of experience I have to take your comment seriously...

  • RE: Text string parsing, to apply operators to datasets

    kyagi.jo (8/7/2015)


    Hi,

    I have a problem at the moment, where the client wants to be able to type in a custom algebraic formula with add/minus operators, and then to have...

  • RE: Tuning a Stored Procedure

    ChrisM@Work (8/7/2015)


    Sean Lange (8/7/2015)


    j-1064772 (8/7/2015)


    [font="Comic Sans MS"]One simple improvement would be to avoid DDL in the middle of DML statements.

    Move to the top, before any DML the following:[/font]

    [font="Courier New"]CREATE...

  • RE: Split column value after every 50 characrters without splitting words

    Lowell wrote up a script to do this sort of thing in the past. I will ping him and see if he can post script in here for that since...

  • RE: Tuning a Stored Procedure

    j-1064772 (8/7/2015)


    [font="Comic Sans MS"]One simple improvement would be to avoid DDL in the middle of DML statements.

    Move to the top, before any DML the following:[/font]

    [font="Courier New"]CREATE TABLE #results(...[/font]

    [font="Comic Sans...

  • RE: table with 3 million plus records taking half a minute, can I improve performance

    Andrew P (8/6/2015)


    I don't think you need that COALESCE call. NULL > 0 is not true, so [ID] > 0 should be equivalent. My memory is a little rusty on...

  • RE: A script to find a value in all databases

    WhiteLotus (8/6/2015)


    Thanks for the reply . I wonder how to combine that statements into my current script . I want to rewrite the current script but have no idea how...

  • RE: Update If Case nested

    lsalih (8/6/2015)


    Sean, wow so simple! I like to code but sometimes I not thinking logic 🙂 Great, it worked 🙂

    THANKS.

    Great. Glad that worked for and thanks for letting me...

  • RE: Update If Case nested

    If I understand the problem correctly this should work.

    select *

    , case when DEPT in (102, 103) then SEC1 else isnull(SEC1, 'Y') end as NewSEC1

    , ISNULL(SEC2, 'Y') as NewSEC2

    from EMP_INFO

    where DEPT...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/5/2015)


    Sean Lange (8/5/2015)


    GAH!!! Sometimes I hate having to work with so many different versions of sql all the time. I have been beating my head against the wall...

  • RE: Are the posted questions getting worse?

    GAH!!! Sometimes I hate having to work with so many different versions of sql all the time. I have been beating my head against the wall trying to write a...

  • RE: Are the posted questions getting worse?

    Ed Wagner (8/5/2015)


    Just don't forget to drop the database when the interview is over. 😉

    Or just create the objects in tempdb. :hehe:

Viewing 15 posts - 2,521 through 2,535 (of 15,381 total)