Forum Replies Created

Viewing 15 posts - 20,251 through 20,265 (of 21,963 total)

  • RE: The T-SQL Quiz

    dfalso (5/1/2008)


    Jeff, I agree with the point you're trying to make, assuming that this code is destined for a production use. I would absolutely look to a set-based solution, not...

  • RE: ALTER TABLE error...

    Oh, wait. I am an idiot. Here's the deal. The optimizer is smart enough to recognize that you're creating a table within the set when you execute the whole thing,...

  • RE: Understanding Indexes

    I don't quite see a question either.

    BTW, having a covering index is not inherently a bad thing. Actually, it's inherently a good thing. But because of the cost of maintaining...

  • RE: ALTER TABLE error...

    It was that lack of scale that forced me to go in and make edits to the code. It wouldn't compile as it was.

  • RE: Create constant for use in T-SQL

    RyanRandall (5/1/2008)


    I'm also reminded of this article...

    http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/

    Yeah, that was the one I meant when I said "MUD" but it's supposed to be "MUCK."

  • RE: The T-SQL Quiz

    Weeks, dude, weeks. I just keep telling myself that bringing the sword to work won't really help the problem... I think. Maybe it will...

  • RE: ALTER TABLE error...

    You're telling me I fixed it by accident? I just put the semi-colon on because I've gotten in the habit of closing commands with it.

  • RE: Auto Incrementing Primary Keys in SQL Server 2005

    Yes, but starting with SQL Server 2005, the actual tables were hidden and all access to them was controlled through dynamic management views. Some of the views look exactly like...

  • RE: The T-SQL Quiz

    A little overly complex, but very slick. Nicely done. A+. Please take my seat... no really... take my job, or just shoot me.

    BTW, 2005 or better syntax is preferred.

  • RE: Create constant for use in T-SQL

    Absolutely. Even down to the schema, although we were lazy and just left the enums in the 'dbo' schema, but yes. That's the way to go. You're maintaining a bit...

  • RE: Table design

    Again, I'm answering this with little to no information, so please take anything here as mild suggestions, not major pronouncements...

    What about a design something like this:

    Table: Item

    Columns: ItemId

    Size

    Color

    Description

    Cost

    ?

    Table: Order

    Columns: OrderId

    Company

    OrderDate

    DownPayment

    ?

    Table:...

  • RE: Create constant for use in T-SQL

    It depends on the UDF, but frequently they have no statistics on them, so the optimizer assumes one row. Since, in this case, it really will be one row, I...

  • RE: They want me to teach my coworker SQL IIS administration

    One other thought, this sort of thing usually derives from something the business thinks it's not getting, so it wants to put a more business focused person in place. You...

  • RE: Auto Incrementing Primary Keys in SQL Server 2005

    Oh, then yes, the data describing the databases is stored in a series of views called dynamic management views. So that's yes to all three.

  • RE: Create constant for use in T-SQL

    If I understand the question, why don't you just maintain this data in a table? Even if it's only one or two rows, you can join against it when you...

Viewing 15 posts - 20,251 through 20,265 (of 21,963 total)