Forum Replies Created

Viewing 15 posts - 7,426 through 7,440 (of 7,613 total)

  • RE: Clustered Indexes

    Tables with fewer than eight pages can see increased fragmentation when rebuilt, because SQL may spread the table across more extents.

    Personally I don't like SQL's mixed extents, but I can't...

    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".

  • RE: May affect "CardinalityEstimate" in Plan Estimate - What would be the fix for this?

    I can't see the attachment (security issues).

    But in general you want to avoid using functions on columns, because it keeps SQL from using indexes (and likely stats) on that column.

    For...

    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".

  • RE: Help with table constraints

    Sorry, I mis-worded my response.

    I didn't see the need for the DealType in the Deals table, since it had its own table. Indeed, since its many-to-one, I don't how...

    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".

  • RE: Help with table constraints

    Table 1: Deals (PK DealId)

    DealId int

    DealTypeId int

    Table 2: DealEvents (PK DealId)

    DealId int

    DealFamilyId (computed persisted '1')

    Table 3: DealTypes (PK DealTypeId)

    DealTypeId int

    DealFamilyId int

    I want to create a relationship between Table1 and...

    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".

  • RE: Rename badly named index

    Interesting. Thanks for the update.

    A little confusing though, not sure what's going on there then. Thought originally it might have just been a mismatched name because of 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".

  • RE: Rename badly named index

    On my SQL 2005 version and my SQL 2008 versions, it accepts sp_rename for that index name:

    USE tempdb

    CREATE TABLE dbo.nasty_index_name_test ( c1 int )

    GO

    CREATE NONCLUSTERED INDEX [<Name of Missing Index,...

    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".

  • RE: Rename badly named index

    What do you mean "doesn't work"? It won't even initiate the rename process?

    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".

  • RE: rowid in SQL server?

    If the tables have identity columns, you can use $IDENTITY as the column name.

    If not, you might have to dynamically generate the code based on unique indexes on the table...

    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".

  • RE: Rename badly named index

    You can rename an index through SSMS; just backspace over the old name, and type in the new one.

    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".

  • RE: Open Transactions and CPU usage

    if that SPID is still using CPU resources?

    No, not CPU (except perhaps a tiny amount periodically to check it for activity).

    Connections themselves have some RAM overhead.

    But since creating/destroying connections 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".

  • RE: Backward Compatibility

    User dbs will definitely work ok to a later SP.

    Master will definitely NOT work; master MUST be exactly the same version.

    Not sure about msdb, but apparently same rules apply as...

    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".

  • RE: Problem with Default Date

    I have never-ever seen YYYY-MM-DD to fail

    Please try this 🙂 :

    SET DATEFORMAT dmy

    SELECT CAST('20120524' AS datetime)

    SELECT CAST('2012-05-24' AS datetime)

    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".

  • RE: Problem with Default Date

    The universally accepted date format for SQL Server is "YYYYMMDD" (as in 20120524), not YYYY-MM-DD, which different installations will treat differently (and some will error out).

    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".

  • RE: Replace master and model database

    SQL itself won't allow you to restore an older master db (not sure about the model db, but it likely doesn't contain critical data anyway). Something else must be...

    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".

  • RE: Will partitioning help?

    Partitioning could indirectly help performance, as follows:

    -- make it possible/faster to rebuild/reorg current yr's data only;

    -- each partition can be separately specified as uncompressed/compressed (SQL 2008+ only).

    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 - 7,426 through 7,440 (of 7,613 total)