Forum Replies Created

Viewing 15 posts - 19,726 through 19,740 (of 22,213 total)

  • RE: Joining data from multiple tables

    There's not enough information to answer this question fully. Yes, you need to use JOIN's to put the tables together, but what columns constitute the primary and foreign keys that...

  • RE: Question on Nolock UDF

    Rather than changing the locking mechanisms everywhere, I'd strongly suggest looking at the execution plans of the query and the indexes on your tables. Resolve the problems at the root,...

  • RE: Relationships

    If my understanding of what you're trying to do is correct, then yeah, I think that's the right code. But please, test it and verify it. Don't simply take my...

  • RE: A Release from Data

    I know Steve emphasized hitting pads as a way to take off the stress, but I don't mind suggesting, if you don't object to a few bruises (and jambed fingers...

  • RE: Query for latest revision

    If I'm reading this correctly, something like this:

    SELECT wcadmin.WTDocumentMaster.WTDocumentNumber AS NUMBER, wcadmin.WTdocument.nameB2folderingInfo AS FOLDER,

    ...

  • RE: Query for latest revision

    Something along these lines should work:

    SELECT *

    FROM TableA a

    WHERE a.Id = (SELECT TOP(1) a2.Id

    ...

  • RE: Performance between union of table valued functions

    Are these multi-statement table valued functions? If so, understand that this type of function has not statistics. This means the optimizer treats them like a table that returns one row....

  • RE: Execution Plan Caching and SUSER_NAME()

    If the first guy through creates a plan that uses a scan, unless something fires a recompile of the procedure or the plan ages out of cache, it's going to...

  • RE: Upgrading SQL 2000 Enterprise to SQL 2005 Enterprise

    You'll want to rebuild all your indexes and update the space usages after you move it.

    But before you move it, use the Upgrade Advisor as mentioned above. There may...

  • RE: Is it wise to handle business logic in sql procedure

    I can't help you on the rogue DBA topic. Hunt 'em down & hurt 'em may be your only option.

    As to the rest, why not manage the database code in...

  • RE: Validating existence of a records against two fields.

    Don't worry about it. There's always more to learn, for everyone. Speaking of which, I need to download 2008 and get started learning new stuff.

  • RE: Problem with "execute" procedure rights.

    Not per se. The thing is, you need to be very careful about how you manage security. If you give a role blanket execution priveleges, then you may need to...

  • RE: Validating existence of a records against two fields.

    OK. You may or may not want to continue the existence check. From what I can see though, I think you could skip it. It looks like you're doing a...

  • RE: The Active DBA

    I volunteer to continue processing beer to lager as time & money allows. I know it's a sacrifice, but someone has to do it.

  • RE: Relationships

    This really gets into DB design, but based on what you're saying, I would drop the FK that is currently in place on the Property table. From what you say,...

Viewing 15 posts - 19,726 through 19,740 (of 22,213 total)