Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Database stored in .ldf file
Problem:

Contractor migrated Great Plains databases to new server (Win2000, SQL2000).

Databases are set up in reverse.  Data is stored in .ldf, and log files are
stored in .mdf.  Log file(.mdf) out of control and needs to be shrunk.  (Kno
w
how to do this)

Can I shrink the logs even though they're in .mdf named files?

Is it ok to leave them alone in the reversed naming convention state?

Can I detach the databases, create a new .mdf, restore the database(.ldf)
from backup to the new .mdf file?  If so, do I need to restore the log file
also, or can I start a new one from scratch?

Thanks for the help.









Report this thread to moderator Post Follow-up to this message
Old Post
Rick A
04-29-05 06:23 PM


Re: Database stored in .ldf file
Name is totally irrelevant to SQL Server, as well as extension. If you feel 
it is OK, you can keep
the names. One option is to backup, detach (for safety - keep the files some
where else), and with
restore use the MOVE option to specify new file names. Or possibly only deta
ch, rename files and
attach specifying new correct file names (do this from QA not EM - QA gives 
you full control over
the parameters used to sp_attach_db procedure).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/


"Rick A" <Rick A@discussions.microsoft.com> wrote in message
news:326AE016-3AAE-47B0-B216- E8EA16549B6A@microso
ft.com...
> Problem:
>
> Contractor migrated Great Plains databases to new server (Win2000, SQL2000
).
>
> Databases are set up in reverse.  Data is stored in .ldf, and log files ar
e
> stored in .mdf.  Log file(.mdf) out of control and needs to be shrunk.  (K
now
> how to do this)
>
> Can I shrink the logs even though they're in .mdf named files?
>
> Is it ok to leave them alone in the reversed naming convention state?
>
> Can I detach the databases, create a new .mdf, restore the database(.ldf)
> from backup to the new .mdf file?  If so, do I need to restore the log fil
e
> also, or can I start a new one from scratch?
>
> Thanks for the help.
>
>
>
>
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
04-30-05 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:40 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006