Martin Reid
mwp.reid at qub.ac.uk
Thu Aug 19 15:19:46 CDT 2004
John One of the things I did recently was to actually detach a databse and log file. I thenremoved the log file completely as it was HUGH. Put it away soemwhere safe. I then reattached the MDF file and had SQL automatically recreate a new empty log file. Not sure how professional this is but appeared to work fine for my needs. You can also move the log out somewhere else detach the database move the log to its new location reattach sp_attachdb Yourdb PATH LOGFile Path Should be OK Oh and back it all up first if you have the disc space. Martin ----- Original Message ----- From: "John W. Colby" <jwcolby at colbyconsulting.com> To: <dba-sqlserver at databaseadvisors.com> Sent: Thursday, August 19, 2004 9:08 PM Subject: [dba-SQLServer] Log file > Is the ldf the log file? If so I understand it is possible to place that > file on a different drive from the data file? How do I limit the size of > the log file and dictate the location? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > Sent: Thursday, August 19, 2004 3:57 PM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] Out of Disk > > > I imported more of the data into this big db I'm working on and now SQL > Server shuts down after 5 seconds or so after startup. The error log says > "not enough room on disk" for something it is trying to build (a temp db I > think). I am down to 15gb on the disk that the SQL Server data resides on. > > > The question is, can I simply copy the mdf and ldf files for this new > database off to the new hard disk I installed to free up memory? I > understand that SQL Server would now be missing the database, but can I then > detach it and reattach it from the new drive? If not I will need to clean > up enough space (amount unknown) to get SQL Server to stay up so that I can > correctly detach the db and then move it. > > John W. Colby > www.ColbyConsulting.com > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > >