Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

log file full RMS 2.0 SQL 2005

Posted on by 45

I am trying to shrink the log file but to no avail. I am using the instructions for SQL 2000 and the sp_attach command is not working. Is there a revision to this command in SQL 2005?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: log file full RMS 2.0 SQL 2005

    not sure why you detached, see technet.microsoft.com/.../ms190794.aspx

    Other solution I have used for database connection problems (failed installation etc.):

    1. obtain mdf and ldf from failed install

    2. create new sql and database with same name

    3. stop sql and insert old mdf and ldf overwriting new database then restart sql

    4. use SO admin to backup database to bck file

    5. delete database then create again and restore from bck file

    6. use shrinkfile and set recovery solution previously mentioned

  • Don Rowser Profile Picture
    Don Rowser 45 on at
    Re: log file full RMS 2.0 SQL 2005

    I am at the sp_attach command do I need to just re-attach the database first to try this?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: log file full RMS 2.0 SQL 2005

    try this:

    select name from sysfiles

    backup log <databasename> with truncate_only

    dbcc shrinkfile(<databasename>_log,2)

    alter database <databasename> set recovery simple

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans