Forum Replies Created

Viewing 15 posts - 181 through 195 (of 2,458 total)

  • RE: Substring Question

    Another way, using Luis' sample data

    SELECT name, rtrim(ltrim(isnull(parsename(' '+x.name+' ', 2), x.name))) as name2
    FROM (VALUES('Luis.Cazares'),('Luis Cazares'),('Luis Cazares.'),('.Luis Cazares')) x(name);

  • RE: Talking baseball

    Ray K - Wednesday, October 25, 2017 4:04 PM

    World Series is in full swing, and this forum is quiet!

    I predict Dodgers in...

  • RE: Parameter Sniffing In Action

    carjara - Tuesday, October 24, 2017 8:48 AM

    Hi, how can I prevent this behavior?
    Is it "recompile" option the right way?

    Thank you in...

  • RE: Trying to speed up this 'GetWorkingDays' function.

    Here's another one for your tests. I think it's a winner 😉

    IF OBJECT_ID('dbo.workdayCalendar') IS NOT NULL
    DROP TABLE dbo.workdayCalendar;

    -- Wide enough...

  • RE: Trying to speed up this 'GetWorkingDays' function.

    sgmunson - Thursday, October 19, 2017 11:38 AM

    My gut says a calendar table in your database with a bit column for holiday...

  • RE: Something interesting about patindex

    Luis Cazares - Tuesday, October 17, 2017 1:50 PM

    Did you find a real-world problem with this functionality? Or were you experimenting?

    Thanks for...

  • RE: Very challenging TSQL Query

    hapsa10 - Monday, October 16, 2017 11:10 AM

    Podrías intentar hacer algo como esto.

    ;With CTE_Source As (
        Select Fl, Col
        , Val = Case
                    When...

  • RE: Talking baseball

    Congrats to the Cubs. Missed the game, but heard it was exciting.

    As long as the Yanks make it, a good series is coming....

  • RE: Talking baseball

  • RE: What Pizzas do DBA's prefer?

    Thin Crust. Very thin and cut into slices not squares. This kind of talk has not popular in Chicago but my dad's a New Yorker and he brainwashed me early...

  • RE: tsql help

    sgmunson - Wednesday, October 4, 2017 6:19 AM

    Thom A - Wednesday, October 4, 2017 5:39 AM

    October 4, 2017 at 11:37 pm

    #1962391

  • RE: sp_msforeachdb

    sqlguy80 - Wednesday, October 4, 2017 5:18 PM

    Hi,

    Can you suggest some T-SQL code  to automate so that a script say select *...

  • RE: We Have a Date

    Jason A. Long - Thursday, September 28, 2017 6:05 PM

    Alan.B - Thursday, September 28, 2017 5:07 PM

  • RE: We Have a Date

    The Data Tuning Adviser is going to recommend columnstore indexes for me? October 2nd can't come soon enough! </sarcasm>

    It's cool to finally see some new T-SQL commands. TRIM and...

  • RE: SQL Server 2017

    sqlfriends - Thursday, September 28, 2017 11:22 AM

    Have SQL server 2017 officially released or not?
    From Microsoft site, I can see there is...

Viewing 15 posts - 181 through 195 (of 2,458 total)