Forum Replies Created

Viewing 15 posts - 31,216 through 31,230 (of 49,552 total)

  • RE: Date Conversion Fills the Transaction log

    Do it in batches of a few hundred thousand rows at a time. If you do that as a single statement, the log must be big enough to contain the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: can data file(.mdf) and log file(.ldf) store in network drive

    Not that I'm aware of.

    There is a traceflag that, if enabled will allow SQL to store files on the network, but it is strongly not recommended. Files on the network...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: can data file(.mdf) and log file(.ldf) store in network drive

    You cannot put SQL's database files onto a network drive, regardless of whether you create a mapped drive or not. Files have to be on local storage, SAN storage or...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error: 832, Severity: 24, State: 1.

    That kind of error can affect just about anything. It's saying that something is changing SQL's memory outside of its control.

    Are you the DBA? The checkDB errors aren't severe...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: can data file(.mdf) and log file(.ldf) store in network drive

    Not possible. SQL will not allow its files to be on a remote drive. The network file-share does not provide the IO guarantees that SQL requires.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error: 832, Severity: 24, State: 1.

    You've either got bad memory or there's a memory scribbler somewhere (kernel process or something in-process with SQL that's changing SQL's memory)

    To say this is bad is an understatement. It...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Query Execution Performance

    If you're requesting all the rows, all the columns from a table there is no practical way to optimise the query. It may take some time if the table is...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: is non clustered index can store NULL value?

    CirquedeSQLeil (8/16/2010)


    An NC Index is not for referential integrity.

    Indexes in general are not for referential integrity.

    Foreign keys are for referential integrity.

    Check constraints are for domain integrity

    Primary keys (not...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Changing an error message in the sys.messages system table

    LutzM (8/16/2010)


    There are several options I can think of:

    1) Analyze the index job if it can be optimized (e.g. only roerganize/rebuild indexes that need to be touched basd on fragmentation...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Query Execution Performance

    I'm not sure I follow you completely.

    As for your example query - select * from table - there's no way to optimise that. It's asking for all rows of the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: is non clustered index can store NULL value?

    jobs.chayan (8/16/2010)


    is non clustered index can store NULL value? If yes then why?

    Yes, and it's true for the clustered index as well. Indexes don't prevent values from been inserted. A...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Latch_ex high

    456789psw (8/16/2010)


    This article seems to be telling me it COULD be io related....but not always?

    No

    Question: What kind of latch does SQL Server use when reading a page from disk?

    Answer: Anytime...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How to optimize Inventory database transaction

    Why would you put the column Date into the index?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Changing an error message in the sys.messages system table

    Don't change the system tables. They are not there for you to mess around with. Leave them alone unless you're happy with possibly ending up with a corrupt and unusable...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Latch_ex high

    Latch_ex is not an IO-related wait. The IO-related latch waits are the PageIOLatch waits. Latch_ex is a non-buffer exclusive latch, meaning it's not related to pages.

    From a kb article...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 31,216 through 31,230 (of 49,552 total)