Forum Replies Created

Viewing 15 posts - 21,451 through 21,465 (of 49,552 total)

  • RE: Backup and Restore.

    MasterDB (1/2/2012)


    My Requirement is i want yesterdays records and todays inserted records and today updated yesterday's records.

    Do you want the data as reflected in the source database? Or do 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: How to protect the database when restore by GUI

    You can put a password on the backup, but it's incredibly weak and won't stop someone who's determined.

    The only real way to prevent backups from being restored on other servers...

    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: Index size greater than actual data

    Sachin Nandanwar (1/2/2012)


    But the amazing thing is that the overall DB size and the back up size also is much larger.

    Deleting data won't reduce the size of the DB 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: Index size greater than actual data

    Sachin Nandanwar (1/2/2012)


    The data in the table was actually around 36 GB.But when we deleted the records the data size went down to 6 GB but the index size 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: Index size greater than actual data

    Right, so if you check the page count of the heap (the table) it's 1008150 pages (7.7GB) and the index is in total 138 225 pages (total across all levels), making...

    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: Index size greater than actual data

    Sachin Nandanwar (1/2/2012)


    GilaMonster (1/2/2012)


    Forwarding pointers are only found in heaps (so there can't be any in the NC index) and they seldom make the table much larger than it would...

    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: Index size greater than actual data

    Can you run DBCC UPDATEUSAGE please?

    Forwarding pointers are only found in heaps (so there can't be any in the NC index) and they seldom make the table much larger than...

    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: DBCC CHECKDB error

    No. Without a backup you're going to have to run CheckDB with repair_allow_data_loss to fix that. As the option implies it allows data loss and a single page from 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: Disabling Ownership chaining

    It's possible, but it's not easy. You'd need to mess with object ownership

    The other way is dynamic SQL. That requires explicit permissions on the objects referred within (which is one...

    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: Disabling Ownership chaining

    There's no such option.

    If you want to break ownership chaining, you'll have to make sure that the various objects are owned by different database users. (not necessarily created by, and...

    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 failure on Log Shipping Secondary

    A restart is unlikely to fix that. I suspect a reinit of the log shipping (from a fresh backup) will be needed.

    Try a restart first, it's quick, but I doubt...

    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: MSSQL 2008 R2

    Welsh Corgi (12/31/2011)


    I see that you reverted to your old Avatar?:cool:

    Yeah. I'm playing KOTOR again (SWTOR not available in my region) and playing in an online PBP starwars RPG, so...

    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: dbcc check*

    george sibbald (12/31/2011)


    you only need to run dbcc checkdb on a regular basis, as all the other check commands are a subset of this one command (checkalloc, checktable etc).

    With 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: MSSQL 2008 R2

    If the system in general is slow, I'd start here.

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

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

    Btw, what business does an app have for pulling 18 000 records down? No one is ever going to read that...

    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: Trigger

    pallavi.unde (12/31/2011)


    CREATE TRIGGER stu_delete

    before delete ON stu_table FOR EACH ROW

    BEGIN

    INSERT into stu_log(user_id, description)

    VALUES (user(),...

    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 - 21,451 through 21,465 (of 49,552 total)