Forum Replies Created

Viewing 15 posts - 6,736 through 6,750 (of 7,418 total)

  • RE: An Introduction to Database Design

    Excellent article overall.

    These are extremely difficult concepts to introduce to people, and the article does a superb job of making the ideas accessible to anyone.

    [I do think Alice should have...

  • RE: Need to find out whether date is of which data type

    Steven Willis (1/10/2013)


    ScottPletcher (1/10/2013)


    dwain.c (1/9/2013)


    Steven - Those FUNCTIONs look like nice work. I've saved them off for future analysis. 🙂

    You might want to review the new functions in SQL...

  • RE: Need to find out whether date is of which data type

    dwain.c (1/9/2013)


    Steven - Those FUNCTIONs look like nice work. I've saved them off for future analysis. 🙂

    You might want to review the new functions in SQL 2012 dealing with...

  • RE: creating SQL login with cursor

    Bhuvnesh (1/9/2013)


    ScottPletcher (1/9/2013)


    the cursor should be optimized with FAST_FORWARD:

    Any article reference for this ?

    Books Online.

  • RE: Convert Non Clustered PKs to Clustered

    Jeff Moden (1/9/2013)


    ScottPletcher (1/9/2013)


    Don't automatically assume the PK makes the best, or even a good, clustered index, in particular if the PK is an identity column.

    Considering that the IDENTITY column...

  • RE: Index usage and RID lookup.

    GilaMonster (1/7/2013)


    ScottPletcher (1/7/2013)


    Fewest rows? The number of rows that match all the criteria will be the same regardless of the index used, right?

    Match all criteria, yes. What I was...

  • RE: "USE DATABASE" in stored procedure

    If you start your procedure name with "sp_", put it in the master db, and mark it as a system object, it can execute in the context of the current...

  • RE: "USE DATABASE" in stored procedure

    If you just want to run the proc for a single db at a time, you don't need dynamic SQL at all, so I suggest avoiding it. The code's...

  • RE: creating SQL login with cursor

    I, too, don't have a problem with a cursor per se here; it could be done w/o one, but it's not a big deal for such a limited number of...

  • RE: Convert Non Clustered PKs to Clustered

    Btw, it's always frustrated me that SQL Server can't seem to read only the non-leaf pages of a clustered index. If SQL needs only key column(s), why does it...

  • RE: Convert Non Clustered PKs to Clustered

    Don't automatically assume the PK makes the best, or even a good, clustered index, in particular if the PK is an identity column.

    You need to review the existing index usage,...

  • RE: Date Comparisons

    GSquared (1/7/2013)


    paul.j.kemna (1/7/2013)


    Wow, that makes a lot of sense. Such a simple concept that i may have overlooked in some places.

    But in this case, we are assuming that I...

  • RE: Using Results from one column to calculate another column

    CELKO (1/4/2013)

    Think about what a confused mess this statement is in the SQL model.

    SELECT f(c2) AS c1, f(c1) AS c2 FROM Foobar;

    That is why such nonsense is illegal syntax.

    Your...

  • RE: Using Results from one column to calculate another column

    If all the columns are from a single table, you definitely should created a computed column that has the computation: that way, the definition is in only one place. ...

  • RE: Index usage and RID lookup.

    🙂

    GilaMonster (1/7/2013)

    What is the basis for you claim that if only 1% of rows in the table match that SQL will almost certainly do a table scan? If the...

Viewing 15 posts - 6,736 through 6,750 (of 7,418 total)