Forum Replies Created

Viewing 15 posts - 39,826 through 39,840 (of 49,571 total)

  • RE: Which is more efficient or does it matter?

    Bob Hovious (4/11/2009)


    Gail, do you have some authority for us on the joins using the LEFT function?

    Authority? I have some experience with it, if that's sufficient.

    Joins are the same...

  • RE: heap or clustered

    radek (4/11/2009)


    Hi,

    is possible create heap with primary key??

    Sure. Create the PK as a nonclustered index.

    ALTER TABLE ... ADD CONSTRAINT ... PRIMARY KEY NONCLUSTERED ....

    Im testing query... If I have clustered...

  • RE: Which is more efficient or does it matter?

    Vijaya Kadiyala (4/11/2009)


    Quesry using joins would be much more sclable...based on the little knowledge that i have but..but again its really depends on the use.

    Ex: If i have millions of...

  • RE: T-SQL 2005 Help

    Bob Hovious (4/11/2009)


    You should feel safer now, too. 😉

    :rolleyes:

  • RE: T-SQL 2005 Help

    Alvin Ramard (4/11/2009)


    If you have to use that kind of logic then you might want to use stored procedures and use something like:

    If A = B

    BEGIN

    EXEC Stored_Procedure_1

    END

    ELSE

    BEGIN

    EXEC Stored_Procedure_2

    END

    That's often the...

  • RE: T-SQL 2005 Help

    Shane Redding (4/11/2009)


    In regards to the below, perhaps you should go work for the microsoft sql server team as GOTO is not uncommon in TSQL. 🙂

    Just because the MS...

  • RE: Are the posted questions getting worse?

    Bob Hovious (4/11/2009)


    Okay... how many people here advocate the use of GOTO statements in T-SQL?

    I do, solely for error handling in SQL 2000. Since there isn't a TRY-CATCH construct in...

  • RE: Index tuning

    Grant Fritchey (4/11/2009)


    Instead, if you were trying to use a covering index to solve the bookmark lookup, all the columns needed to satisfy the query would have to be...

  • RE: why does it display clustered index scan in the Executed plan ?

    The clustered index is the table. The leaf level of the clustered index contains the actual data pages of the table (see books online for details on index architecture) so,...

  • RE: Are the posted questions getting worse?

    Jeff Moden (4/10/2009)


    If that site has truly cribbed the exams, then the MS Certs have become truly useless for evaluating a potential employee's skills based on the cert listing...

  • RE: log_reuse_wait_desc = replication but there's no replication

    Either they were restored from backups of published databases or there was replication at one point and it was removed improperly.

    Set the server up for replication, create a publication in...

  • RE: Get sum at the bottom of one column by using Store procedure

    That's not what you want to order the final result set by. You want to order it by something that makes the total come after the detail lines.

    Think about it....

  • RE: DMV's in SQL 2005

    Have you looked in Books Online? There's a pretty good list in there. Use the index rather than contents and look for anything that starts with sys.dm

  • RE: Get sum at the bottom of one column by using Store procedure

    josephptran2002 (4/10/2009)


    I think I solved my problem, I use reporting service.

    In that case I would strongly advise you to do the totalling in the report. Reporting services has very...

  • RE: Get sum at the bottom of one column by using Store procedure

    Reporting services? Crystal Reports? Some other reporting tool?

    Most reporting tools have the ability to produce totals within the report, based on the data coming back from the DB. It's generally...

Viewing 15 posts - 39,826 through 39,840 (of 49,571 total)