Forum Replies Created

Viewing 15 posts - 30,871 through 30,885 (of 49,552 total)

  • RE: DBCC SHRINKFILE not working for datafile

    Manie Verster (9/8/2010)


    What is the ideal free space size in relation to the database size.

    There's no one good answer to that. Depends on how large the tables are, how fast...

    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: CPU fluctuation in SQL

    No indexes whatsoever on the table?

    If not, I'd venture a guess that the complete lack of indexes is the reason this query is not optimal.

    I suggest that if 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: How to make tempdb use > 1 datafile

    Please post new questions in a new thread. Thank you.

    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: Database stuck in RECOVERING state

    WayneS (9/8/2010)


    Would this affect the recovery time of the database? Would it affect it to this extent?

    Shouldn't and no.

    Recovery just needs the active portion of the log, the portion...

    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: Shrink Log File

    The solution to this is odd, but does work.

    Create a transactional replication publication and publish a single article.

    Stop the log reader

    Run sp_repldone

    Drop the publication that you just created.

    That should remove...

    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: CPU fluctuation in SQL

    Could be. You need to optimise this and other poorly-performing queries.

    If you have no idea where to start, take a look at this 2-part series

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/

    If you'd like our help in...

    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: I am new in SQL Server 2005

    http://msdn.microsoft.com/en-us/library/ms175464%28v=SQL.90%29.aspx

    http://msdn.microsoft.com/en-us/library/ms177463%28v=SQL.90%29.aspx

    If you're new to SQL, you should be spending a lot of time in the documentation. It will answer many of the questions that you'll have.

    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: CPU fluctuation in SQL

    Ok, so it does always have a high reads. Looks like it needs optimising.

    I'm not sure I fully understand what you're asking.

    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: CPU fluctuation in SQL

    Does that particular query always run with that many reads? (There's only one entry for it in the profiler trace)

    It was running rapidly in the trace (200ms), so the fact...

    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: Updating Total Column

    Please post table definitions, sample data and expected results as per http://www.sqlservercentral.com/articles/Best+Practices/61537/

    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: Two Log Files in a DB

    There's no good reason for two log files, unless they are on separate drives and there's not enough space for the log on a single drive.

    SQL uses its log files...

    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: Database stuck in RECOVERING state

    As I said, poor IO performance (which you confirmed was the case) and log fragmentation are the main causes of long database recovery.

    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: Search database for specific datatypes

    stewartc-708166 (9/8/2010)


    Microsoft recommends the use of the INFORMATION_SCHEMA views in lieu of system tables

    Got a reference that states that?

    sys.columns, sys.tables, etc are not system tables. They're catalog views and they...

    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: table tuning

    Doesn't sound like an interview question and, if you look at the second post the OP made, he says that he ran the query and got the results.

    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: Insert Nvarchar value in stored procedure

    luckysql.kinda (9/7/2010)


    Try

    INSERT INTO [Details] ([Location]) VALUES N''@Location

    or

    INSERT INTO [Details] ([Location]) VALUES N'@Location

    Neither will work, as you would know if you'd done a syntax check before posting.

    INSERT INTO [Details] ([Location]) VALUES...

    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 - 30,871 through 30,885 (of 49,552 total)