Forum Replies Created

Viewing 15 posts - 1,576 through 1,590 (of 8,416 total)

  • RE: Searching smallest unused number

    TheSQLGuru (11/3/2011)


    It is QUITE difficult (without the OUTPUT clause anyway, which is thankfully available now) to do sequencing like this.

    We've always been able to do it safely and efficiently without...

  • RE: Split String

    satishthota (11/6/2011)


    thanks and the following string will not work for yours solution

    Declare @Sname Varchar(255)

    set @Sname='SQL SERVER,ORACLE,MYSQL'

    Need query urgent

    DECLARE @sname VARCHAR(255) = 'SQL SERVER,ORACLE,MYSQL';

    SELECT

    SUBSTRING(@sname, N.n, CHARINDEX(string.comma,...

  • RE: Starting with "WITH"

    L' Eomot Inversé (11/5/2011)


    That rCTEs are bad for counting doesn't make all use of rCTEs silly and it certainly doesn't demonstrate that rCTEs are not a set-based concept; would you...

  • RE: Grouping on month

    Jeff Moden (11/6/2011)


    My main purpose in this is to show that what SQL Server labels as a SCAN is frequently a SEEK in disguise.

    The query plan I get looks like...

  • RE: Stored Procs vs Ad Hoc

    Gianluca Sartori (10/27/2011)


    GilaMonster (10/27/2011)


    Gianluca Sartori (10/27/2011)


    Vishal.Gajjar (10/27/2011)


    Adhoc queries need to be exactly same for reuse. i.e. case-sensitivity, white spaces, etc...

    True indeed, except for whitespaces.

    Actually he's completely right. The plan cache...

  • RE: Split String

    DECLARE @Sname CHAR(11) = 'A,B,C,D,E,F'

    SELECT

    split = SUBSTRING(@Sname, position.i, 1)

    FROM (VALUES (1), (3), (5), (7), (9), (11)) AS position (i)

  • RE: Inserting records into a large table

    richard garth (11/5/2011)


    Is it always the best thing to drop and re-create indexes in this situation?

    No, not always. The main advantages of dropping and re-creating indexes are:

    (1) It can...

  • RE: When is a scan cheaper than a seek?

    Artoo22 (11/3/2011)


    Is it really more efficient to scan 4,367,682 rows and perform a merge join than it is to perform 40,371 seeks?

    According to SQL Server's model of reality, the answer...

  • RE: Are the posted questions getting worse?

    Jack Corbett (11/4/2011)


    But the physical operator is a hash match which can be used to accomplish all of the above. So I would have gone with hash match. ...

  • RE: Today's Random Word!

    Flashdance

  • RE: Are the posted questions getting worse?

    SQLRNNR (11/4/2011)


    SQL Kiwi (11/4/2011)


    SQLRNNR (11/4/2011)


    Cadavre (11/4/2011)


    Brandie Tarvin (11/4/2011)


    SQL Kiwi (11/4/2011)


    So, it depends

    Someone so needs to come up with an interview question where this is the exact answer that's needed.

    Isn't that...

  • RE: Are the posted questions getting worse?

    SQLRNNR (11/4/2011)


    What is this query plan operator?

    It depends. It could be a hash join, hash aggregate, flow distinct, or a union...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (11/4/2011)


    SQLRNNR (11/4/2011)


    Oh wait, you meant for query plan operators.

    What is this query plan operator?

    Alien ship attacking Beijing skyscraper?

    Correct. When can you start?

  • RE: Are the posted questions getting worse?

    SQLRNNR (11/4/2011)


    Cadavre (11/4/2011)


    Brandie Tarvin (11/4/2011)


    SQL Kiwi (11/4/2011)


    So, it depends

    Someone so needs to come up with an interview question where this is the exact answer that's needed.

    Isn't that pretty much every...

  • RE: Are the posted questions getting worse?

    Cadavre (11/4/2011)


    Brandie Tarvin (11/4/2011)


    SQL Kiwi (11/4/2011)


    So, it depends

    Someone so needs to come up with an interview question where this is the exact answer that's needed.

    Isn't that pretty much every interview...

Viewing 15 posts - 1,576 through 1,590 (of 8,416 total)