Forum Replies Created

Viewing 15 posts - 2,446 through 2,460 (of 7,619 total)

  • Reply To: TDE related questions

    As I understand it, if you lose the certificate, you can't read the data, period.  Back up that certificate and make sure you can restore it!

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Could you list db modeling tools you use on daily basis?

    IIRC, from the one time long ago I looked at SQL Diagrams, it is only a physical design, there is no separation of logical and physical.  If you don't distinguish...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Scalar function too slow - Calculated field in column based on another columns

    I would think you could summarize the data just once, for all BSP ranges and WIN/LOSS combos, then join to that, if needed, to get the final result.  I can...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Query Tuning Question

    Jeff Moden wrote:

    coolchaitu wrote:

    Is query tuning the responsibilty of a Developer or is it a combined responsibility of DBA and SQL Developer.

    jonathan.crawford wrote:

    You simply do your best. If you are not...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Finding databases with no dependencies

    The referencing_id would always be the current db, I would think.

    You should check the referenced_server_name as well as the db name.  It's possible that local db1 could point to the...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: count(*) locking a table?

    Grant Fritchey wrote:

    Jonathan AC Roberts wrote:

    It's the insert and update that are locking the table.

    You can ignore these locks by using the nolock hint:

    select count(*) 
    from mytable with...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Could you list db modeling tools you use on daily basis?

    Yes, that is common but horrible, but at least it would not affect the logical design, which could still be forward engineered to proper physical form.  Just keeping accurate logical...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Could you list db modeling tools you use on daily basis?

    Sure, you could do a design with only pencil and paper, just as you can eventually get across town by walking.  But for anything but the most trivial design, you...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Query not contained in either an aggregate function or the GROUP BY clause.

    I suspect you many not need individual dates in the result at all.  I also adjusted the range to 7 days rather than 8, as a week seems like a...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Limited SSMS - Basic tool

    SQL's Query Cost Governor is all that I'm aware of toward that end.  This is a before-execution, based-on-estimates governor, so it's not 100% accurate.  But hopefully it would prevent anything...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Could you list db modeling tools you use on daily basis?

    The single most important thing to understand, though, is that data modeling is a logical process, not a physical one.

    Physical things -- identities, files, etc. -- do not exist in...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Could you list db modeling tools you use on daily basis?

    ERwin is great, one of the best tools I've ever used, but it is expensive.

    An excellent feature to look for is a "data dictionary" / "data element" component.  That is,...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Migrating old data into new while keeping track of foreign keys

    >> Since the incoming sales order notes will not have the same PK (NoteID) value as before (due to an auto-incrementing PK) <<

    Turn off the auto-incrementing for the rows you're...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Filtered indexed view to restrict but not totally prohibit duplicate keys

    No.  CHECK does not go across rows.  You will need an index or some other multi-row method.

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Reply To: Filtered indexed view to restrict but not totally prohibit duplicate keys

    Whether the number must be NULL or NOT NULL can be done with a CHECK constraint:

    CONSTRAINT data__CK_1

    CHECK(CASE WHEN letter_column = '1e' THEN CASE WHEN number_column IS NULL THEN 1

    ELSE 0...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

Viewing 15 posts - 2,446 through 2,460 (of 7,619 total)