Forum Replies Created

Viewing 15 posts - 4,711 through 4,725 (of 5,590 total)

  • RE: update 2 tables at once

    First, please provide the table structure information, and test data via "CREATE TABLE" / "DECLARE @TableVar TABLE" and "INSERT" statements (see the first link in my signature for how to...

  • RE: SQL Server Version (T-SQL)

    Based on what Lowell started, how does this work for you?

    select case convert(tinyint,PARSENAME(convert(varchar(20),SERVERPROPERTY('productversion')),4))

    when 8 then 2000

    ...

  • RE: Performance issue

    Chim Kalunta (2/23/2010)


    It would appear that the clause:

    inner join WhitePage w on w.displayname = a.displayname or w.eid = a.eid

    is forcing a Clustered Index Scan on the Whitepage table. Thats where...

  • RE: Timing is Everything

    GSquared (2/25/2010)


    But I'm also one of those freaks who wants the US to switch to metric measures and 24-hour clocks and should get rid of daylight savings time.

    You mean there's...

  • RE: Procedure with cursor is much faster that without cursor(With memory table and a while loop).

    Joy Smith San (2/25/2010)


    Thought memory tables would be faster, hence used it.

    You might want to check out this article[/url]

  • RE: Parse Column with . Delimiter

    FYI, if your data would ALWAYS have 3 periods in there, you could use the ParseName function to return the position that you wanted.

    i.e.:

    DECLARE @x VARCHAR(80)

    SET @x = '400.367.369.379'

    select PARSENAME(@x,...

  • RE: Parse Column with . Delimiter

    Thanks for responding back on how you resolved it.

  • RE: Dude, Your Fly is Open

    Very good article Tim.

    majorbloodnock (2/25/2010)


    I'll also suggest a good rule of thumb (closely linked with Tim's point) is to criticise privately and congratulate publicly.

    and might I add to the congratulate...

  • RE: FizzBuzz

    reidres (2/24/2010)


    ...Gianluca's unpivot works for 1 000 000 rows only, no more or less. So it is not scalable nor flexible--and who only wants a million rows?

    That would be...

  • RE: FizzBuzz

    CirquedeSQLeil (2/24/2010)


    WayneS (2/24/2010)


    FYI, Gianluca's unpivot works the fastest on my system (813ms), though Lynn's is right behind (833ms) - initial runs. But, when run repeatedly (and randomly), they actually flip-flop...

  • RE: Procedure with cursor is much faster that without cursor(With memory table and a while loop).

    You will only need one of those where conditions, but you will need all 4 in the join between the tables. The query itself looks fine.

    You should also test whether...

  • RE: FizzBuzz

    FYI, Gianluca's unpivot works the fastest on my system (813ms), though Lynn's is right behind (833ms) - initial runs. But, when run repeatedly (and randomly), they actually flip-flop back and...

  • RE: Problems with Date Searches

    Tom, I think that the "<" and ">", when inside the sql code window, get converted into xml tags: "& lt;" and "& gt;" (without the spaces). I'll bet this...

  • RE: Are the posted questions getting worse?

    Paul White (2/24/2010)


    WayneS (2/24/2010)


    Something that you're about to write an article on?

    Oh highly amusing, Wayne! :laugh:

    But Paul.... I'm serious!

    BTW, I know you've told me before how you get the...

  • RE: Problems with Date Searches

    ekant_alone (2/24/2010)


    i am little curious

    can't we use 'year' function in where clause?

    Yes, you can use it.

    But let me show you why you shouldn't.

    First, let's create a test table...

Viewing 15 posts - 4,711 through 4,725 (of 5,590 total)