Forum Replies Created

Viewing 15 posts - 28,636 through 28,650 (of 49,552 total)

  • RE: Full backup and still cannot shrink log file

    luckysql.kinda (1/4/2011)


    I like following thread for Resolving Full Log Esp in Simple Recovery Mode and then click on Link

    The database isn't suspect, so I don't know what the point of...

    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: Full backup and still cannot shrink log file

    Could have been either.

    Should the DB be in simple recovery? Point-in-time restores not necessary?

    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: Handling Fragmentation

    Don't reinvent the wheel. There are lots of scripts written and tested that do just this. Like the one found here: http://www.sqlfool.com

    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: Full backup and still cannot shrink log file

    calvo (1/4/2011)


    Checkpoints flush buffer cache to disk. Nothing to do with truncating a log.

    Not entirely true.

    Checkpoint writes all dirty data page to disk and then, in simple recovery only, marks...

    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: Full backup and still cannot shrink log file

    winston Smith (1/4/2011)


    but once i perform a full backup, isnt a checkpoint automatically performed, which will allow me to do a dbcc shrinkfile on the log file?

    Only in Simple 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: Returing Tables filled from a query inside a Function

    Why can't you use a procedure that returns a resultset?

    (Untested code)

    CREATE PROCEDURE getRateIndexValue(@IndexKey integer)

    AS

    BEGIN

    DECLARE @ricnt as varchar(5);

    DECLARE @SqlStmt nvarchar(4000);

    SELECT @ricnt = RICNT from RIRCD...

    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: Restore in read only mode?

    There's no point in creating a database before you do the restore. Whatever that database is is completely overwritten during the restore, no properties, structure or settings remain. Just restore...

    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: Find all queries which use a perticular index.

    The only way you can do that is to query the plan cache, read through the xml of the query plan and see if the index is there. If there...

    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: MDF File Structure?

    Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic1042519-391-1.aspx

    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: Are the posted questions getting worse?

    Koen (da-zero) (1/4/2011)


    GilaMonster (1/4/2011)


    <sigh> Talking plagiarism. He really should know better...

    http://www.sqlservercentral.com/Forums/Topic1042151-2799-1.aspx

    Waw, LutzM's reply is really brutal 😀

    (but I'm thinking the same thing)

    Missed it when Steve cleaned up. Someone enlighten me?

    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: Full backup and still cannot shrink log file

    No. Full backups and log backups are two completely different things. Full backups do not and never have truncated the transaction log. In full and bulk-logged recovery you need log...

    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: restore database failed because database size would exceed your licensed limit of 4096 MB

    rhlangley (1/4/2011)


    When you restore a database from 2005 into SQL 2008 R2, it should leave it in 2005 compatibility mode. As long as you leave it in 2005 compatibility...

    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: help for sql

    Please post table definitions, sample data and expected results. See http://www.sqlservercentral.com/articles/Best+Practices/61537/ for the best way.

    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: Are the posted questions getting worse?

    btw Grant, your SSC sig is still listing your old blog.

    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: Are the posted questions getting worse?

    <sigh> Talking plagiarism. He really should know better...

    http://www.sqlservercentral.com/Forums/Topic1042151-2799-1.aspx

    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 - 28,636 through 28,650 (of 49,552 total)