Forum Replies Created

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

  • RE: What Gives Better Performance?

    opc.three (1/31/2013)


    "Forwarding pointers" only if we're talking about a heaps, else a page split. Neither is good though. If you have a column that will initially be empty, even something...

  • RE: ALLOW_PAGE_LOCKS=OFF

    GilaMonster (2/1/2013)


    jfogel (2/1/2013)


    One last question. I read that when executing the enable RCS command that there can't be any other connections or transactions open in that database.

    Correct

    Then the article goes...

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

    Ed Wagner (2/1/2013)


    Also, btw, turn on IFI unless for security reasons you can't. That will dramatically speed up data file growth on all databases, including system ones.

    What is IFI?

    Try...

  • RE: NOT makes query never complete?

    I suspect the dbo.sales should really be clustered by date. If so, and you fix that, the rest of the query won't hurt the performance that much one way...

  • RE: Duplicate Names, but Not Duplicate IDs

    If you can do w/o the direct DupesCount, you can also use an EXISTS check:

    SELECT

    dm.*

    FROM @DuplicateMembers dm

    WHERE EXISTS (

    SELECT 1

    ...

  • RE: Duplicate Names, but Not Duplicate IDs

    I like the technique overall, but the concatenation will likely hurt performance: maybe only slightly, maybe a lot, depending on indexing. Thus, I suggest GROUPing and JOINing w/o any...

  • RE: Data file unused space issue

    For a 500GB db, those are modest amounts of space to be available/reserved.

    I think trying to shrink that db would do far more harm than good.

    If you have multiple data...

  • RE: Multiple values in same column

    You need to go thru the process of designing tables to store what you need, including a process called "normalization".

    Under no circumstances should you attempt to store multiple values in...

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

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

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

  • 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,

    ...

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

  • 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,...

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

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