Forum Replies Created

Viewing 15 posts - 6,856 through 6,870 (of 7,619 total)

  • RE: Advices for best practices for configuring MS SQL Server system databases?

    Change all filegrowth to fixed amounts rather than %s. That is, change anything like "10%" to a fixed amount instead, such as "1MB".

    If you plan to store packages 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".

  • RE: Shrinking log is bad?

    karthik.catchme (1/31/2013)


    I also found the below lines from "http://support.microsoft.com/kb/315512"

    •If you combine the autogrow and autoshrink options, you might create unnecessary overhead. Make sure that the thresholds that trigger the grow...

    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: Behaviour in partitioned database.

    ben.brugman (1/31/2013)


    ScottPletcher (1/29/2013)


    You may or may not need partitioning.

    But you absolutely need to determine the proper clustered index for the table.

    I totally agree that a clustered index will help performance...

    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: Trying to get table size without sysobjects and sysindexes

    FYI, in case you want it, here's the query I use to get an overview of tables, indexes and their sizes:

    SELECT

    SCHEMA_NAME(o.schema_id) AS Schema_Name,

    ...

    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: identity table use case

    vlad-548036 (1/30/2013)


    Thanks, that's what I initially had on my system. It is apparent now, that there is no way

    declare @howMany int=3

    insert top (@howMany)

    can be used to force insertion...

    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: What Gives Better Performance?

    AndrewSQLDBA (1/29/2013)

    I was in a discussion with a DB2 developer ...

    He was trying to convince me that char is better performing than varchar

    Andrew SQLDBA

    First, let's be grateful he's a developer,...

    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: Shrinking log is bad?

    Yes, shrinking log file routinely or unnecessarily is bad.

    But A log shrink after an unusually extreme amount of activity would not 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: URGENT T- SQL QUESTION. NEED HELP.

    ChrisM@Work (1/30/2013)


    Mr. Kapsicum (1/30/2013)


    ...

    i want my query to use BOTH ISNULL and COALESCE...

    Only homework would impose such a restriction.

    Yep; I'm sure of that too. 100% homework (or bad interview...

    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: Proper way to concatenate values in a set from 1 column

    No, no syntax errors per se, but that method's not guaranteed to work safely either.

    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: identity table use case

    insert dbo.N

    output inserted.$identity into #tmp ( i )

    default values

    go 3

    select *

    from #tmp

    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: Behaviour in partitioned database.

    You may or may not need partitioning.

    But you absolutely need to determine the proper clustered index for the table.

    It's the column(s) you (almost) always specify in a WHERE clause, particularly...

    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: Can concurrent INSERTs mess up a UNION?

    I think you can eliminate the problem, and a full table scan, like below.

    Whiile this makes your initial q moot for this specific example, it could naturally still be good...

    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: Turning Scan into Seek...

    ChrisM@home (1/29/2013)


    GilaMonster (1/29/2013)


    ChrisM@Work (1/29/2013)


    How many rows in the table? How many rows are you returning? If you are returning more than say 25%* of the rows in the table, SQL...

    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: Turning Scan into Seek...

    PiMané (1/29/2013)


    It has many more queries over other columns but I'll check the DMV for the most used indexes and see the one that's best for cluster since the actual...

    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: Turning Scan into Seek...

    The real key to performance is the proper clustered index.

    If you (almost) always query [dbo].[XmlDataModel] by [ExerciseYear], then cluster by [ExerciseYear] followed by any other column(s) you (almost) always query...

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