Forum Replies Created

Viewing 15 posts - 19,201 through 19,215 (of 22,202 total)

  • RE: Top n of each value ?

    I'd suggest using the TOP and an ORDER BY within the sub-query instead. Assuming there is an index for the ORDER BY clause to use, I think you'll see better...

  • RE: AutoGenPK / Composite PK

    As everyone else has said, it depends.

    I used to use the approach of an identity column on most, if not all, tables. I've learned better. Now I tend towards what...

  • RE: Database testing

    The way I've done it previously is to output the procedure to XML and store it on the side. Then as you make adjustements to the query, you can compare...

  • RE: Assigning output of a query to a variable

    Oops. Missed that this was SQLCMD

    That's OK. You can use SQLCMD variables the same way, still using OUTPUT parameters. For more on SQL Command variables, this is BOL: ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_1devconc/html/793495ca-cfc9-498d-8276-c44a5d09a92c.htm

    Or online...

  • RE: Assigning output of a query to a variable

    Use output parameters. They work a little like this:

    --create a procedure

    CREATE PROCEDURE dbo.MyProc

    @ID int OUTPUT

    AS

    SELECT ID FROM schema.Table

    GO

    --now you can call the proc like this

    DECLARE @LocalId int

    EXEC dbo.MyProc @ID =...

  • RE: The Wild Fringes of SQL Server Development

    I think you've hit the nail on the head here Tony. I don't agree with either of the wild fringe groups. I think that well designed apps take advantage of...

  • RE: Are the posted questions getting worse?

    Permits? We don't need no stinking permits.

    Seriously though, the main reason I keep coming back here, well, in addition to learning something every single day, is that the tone is...

  • RE: Are the posted questions getting worse?

    Well, it was a thrilling moment, I don't mind saying. I'll be picking up one of those integrated face sheild/helmet/ear protection things soon (read ASAP). First time in 10 years...

  • RE: Are the posted questions getting worse?

    I'm sort of loving the long weekend. I'm busting butt on the stupid book and I'm chain-sawing & splitting wood to get ready for the winter.

    Broke a chain for...

  • RE: Are the posted questions getting worse?

    rbarryyoung (11/29/2008)


    Lynn Pettis (11/29/2008)


    I just find it pretentious to list all those certs. It begs the question, who is he trying to impress.

    Probably himself. Seriously. It's easy...

  • RE: Create Table so that user is the owner

    rbarryyoung (11/28/2008)


    it's not too bad, Grant. The presumption is that all tenants are using the same software and schema, just that every data row is tagged with a Tenant...

  • RE: The Ebb and Flow of Community

    May as well chime in on this one.

    First off, Phil, feel lucky. At least your developers are still at least using the words "data." We've had a rash of the...

  • RE: Create Table so that user is the owner

    Yikes! I'd say so. Upgrades to the data model must be entertaining.

  • RE: Are the posted questions getting worse?

    GilaMonster (11/27/2008)


    It could be worse. Like this one - developer background, now a senior DBA, depends on forum answers to do their job

    Train wreck waiting to happen.

    If you want some...

  • RE: Create Table so that user is the owner

    J (11/27/2008)


    First off, WHY do you "need" (??) to create tables and set table ownership ?

    Could you not just use a common table with an extra field like "OwnerID"to keep...

Viewing 15 posts - 19,201 through 19,215 (of 22,202 total)