Forum Replies Created

Viewing 15 posts - 6,826 through 6,840 (of 7,619 total)

  • RE: Split Sql Server Index Rebuild job into several parts - Divide load of Rebuild Index job

    You could move the BLOB(s) to a different table; use views if you need to, to combine the original table columns and the BLOB(s), to keep current apps "happy".

    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: Split Sql Server Index Rebuild job into several parts - Divide load of Rebuild Index job

    So are you doing a REORG or a REBUILD?

    Is it on Enterprise Edition (2008)?

    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: Database Design Help

    You need to keep this normalized and have a separate table for every relation. You could even create an additional table to control the chain/store incidents if needed.

    Here's some...

    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: Split Sql Server Index Rebuild job into several parts - Divide load of Rebuild Index job

    You could partition the table; if you're lucky, the older data will not even need rebuiilt, and you can greatly reduce rebuild time and overhead.

    Even if it all still needs...

    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: My first UDF doesn't work. Thoughts?

    I strongly recommend fully qualifying all table names with the owning schema, typically "dbo" but of course could be different in your specific environment.

    For example:

    ...

    from dbo.AbstractData a

    inner join dbo.AbsDrgDiagnoses b...

    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: Question about the BulkAdmin

    Granting bulkadmin doesn't actually give that person INSERT authority to any table.

    Any user would still need standard GRANT INSERT on a table or a role containing that authority to insert...

    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: UNION vs OR --> NP-Complete Problem

    Eugene Elutin (2/7/2013)


    ScottPletcher (2/6/2013)


    No, I wouldn't use OR just because that makes a view updateable -- UPDATEs aren't typically done using views like that anyway.

    What is the problem with updateable...

    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: Performance Issue - understanding query plans

    nick.mcdermaid (2/6/2013)


    I took an uneducated guess and

    -Added a unique index to RowNum_Start

    -Removed the SRC_System join (I know I know, changing the requirements is cheating )

    and query time went...

    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: UNION vs OR --> NP-Complete Problem

    No, I wouldn't use OR just because that makes a view updateable -- UPDATEs aren't typically done using views like that anyway.

    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: If or case staement in a where?

    AND

    CASE WHEN @InfoKey = 5 THEN

    CLIENT_IDENTIFIER_TYPE.Code IN (028,029,030)

    ELSE

    CLIENT_IDENTIFIER_TYPE.Code = @Code

    END

    The "THEN" and "ELSE" parts of a CASE statement must evaluate to a single value. The value 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".

  • RE: Database performance issue

    Is the "MS Dynamics Navision ERP" application running on the same box as SQL Server in prod?

    If so, I'd lower the fixed memory for SQL considerably.

    Even if not, I'd still...

    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: Changing Database Name But need to Alias the Old Name, Possible?

    Hmm, you could create a db with the new name, and create synonyms pointing back to the old db.

    But synonyms can only be used for these types of objects:

    Assembly (CLR)...

    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: Performance Issue - understanding query plans

    nick.mcdermaid (2/5/2013)


    OK, I have reposted an unsanitised query, the sqlplan file, the DDL, and a picture of part of the query plan.

    I can try clustering SE on RowNum_Start and RowNum_End...

    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: query tuning (PFA, execution plan and indexed view)- need help to enhance performance

    If possible, you need to get rid of the massive GROUP BY (and also reduce the number of expensive joins required); that means using a subquery on CDBF.

    I've taken my...

    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: Convert SQLS-float to formatet String

    CAST(CAST(CAST(ISNULL(char_value, 0) AS decimal(5, 2)) * 100 AS int) AS varchar(5))

    SELECT

    CAST(CAST(CAST(ISNULL(char_value, 0) AS decimal(5, 2)) * 100 AS int) AS varchar(5))

    FROM (

    SELECT...

    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 - 6,826 through 6,840 (of 7,619 total)