Change Logfile Location Without Taking Offline

Dec 7, 2007

If I can get around taking a few databases offline, I'd like to. I need to get logfiles on a lower-capacity drive.

Ideally, I wouldn't like to have multiple logfiles swimming around. But, I was thinking that if I created a second logfile, and then backed up the transaction log, I might be able to remove the first logfile?

The other thought I had, was creating a second logfile, and then turning off autogrow on the first log.

Maybe there is a better solution? Maybe neither of these will work?
Thoughts?

View 2 Replies


ADVERTISEMENT

Change Logfile Location Durring Setup SQL 2000

Jul 20, 2005

Is there a possibility to change the default instalation directory forthe logfiles for sql server 2000? I would like the default databasefiles to be placed on teh d: drive and the logfiles on the e: drive?Sjaak van Esdonk

View 2 Replies View Related

Whats The Difference Between Detaching And Taking A Db Offline?

Oct 22, 2007

what is the difference between these two db tasks in mgt studio?

View 7 Replies View Related

DB Engine :: Keeping Service Up While Taking Drive Offline

Sep 2, 2015

I have clustered instance with two (2) data drives on it. Drive J has around 50 databases on it and drive K has about 15. One of the system administrators was trying to increase the size on K by 20 GB and he instead increased it by 200. Now he needs to take the accidental 180 GB back but the drive will need to come offline briefly. Is it possible to take the K drive offline, along with the databases whose data files resides on it, without taking the whole instance down?

View 7 Replies View Related

Change TEMPDB Location

Dec 14, 2000

How do I move the tempdb to a different drive? It can't be dropped and it is automatically put on the same drive as the master during installation. I have moved a transaction log to a different drive, but I can't change the tempdb location. Please help.

View 2 Replies View Related

Change Location Sqlagent.out

Nov 6, 2007

Hello,

How can i change the location of the Sql Agent errorlog file, sqlagent.out
When i choose Properties from the Sql Agent page, i can see the location and filename, but i am not able to change it.
Is there some starup parm? And how can i apply it?

Any help is appreciated.

Best regards,

hvdtol

View 6 Replies View Related

Change Location Of Logging

Mar 21, 2007

What parameter should be changed where in order to send the logging to a separate directory.



THx

View 1 Replies View Related

Change Default Location Where New DB's Are Created

Jul 19, 2007

Hello
The default location where db's are created is almost full.
Is there any way to change the default location where the .mdf and .ldf are created when I create a new db? I know I can do this when I create a new db and go select where I want it to be, but can I make it default to a different directory automatically so no human intervention is needed?
tia
r/P

View 1 Replies View Related

Change Location Of Template Files

Aug 8, 2006

In SQL2000, there's an option to change the location of the template folder. This allows me to create a customized set of templates on a network folder and have all the developers reference the centralized location. Can the same be done in SQL2005 and how would I go about doing so?

Thanks.

View 1 Replies View Related

DB Engine :: How To Change Error Log Location

Nov 30, 2006

I have been trying to change the location of the SQL 2005 error log. It's logging to the default location at

C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLLOG

I want to move the log location to the E drive because it can get quite large. I already changed the setting in the SQL Server Error and Usage config tool, but this did not seem to make a difference.

View 5 Replies View Related

Change Location Of Tempdb And Model Databases

Aug 22, 2002

Is there a way to move my mdf and ldf files for the tempdb and the model databases? If yes, how? I tried ti detach but SQL Server will not let me.

View 1 Replies View Related

Change Reporting Services Location (2000)

Sep 26, 2006

hi,

our reporting services DB moved and I need to tell the report manager where to find it

isn't it in a config file somewhere, i can't find it?

do i have to reinstall?

View 5 Replies View Related

Replication :: Change Snapshot Default Location

May 13, 2015

How to change the default snapshot folder (Merge Replication) location in SQL Server 2012 Standard Edition? Actually that field is grayed out.

View 3 Replies View Related

Change XML/XSD Source Location - Gives Lineage Errors!

Jun 26, 2007

Hi,



I have developed a SSIS package on my desktop and the package involves loading of XML data into a database. The XML does not have inline schema and I generated the XSD file from SSIS.



I used Derived Column and Data Conversion to load the data into the database.



Now, i want to migrate the package to a server. Now, when i change the path of the XML and XSD files, all the tasks show error such as



"Input column 'Last_Updated' (4433) has lineage id 3586 that was not previously used in data flow...."



Why is this so? I am using the same XML/XSD files after i moved to the server.



Please advice a fix for this?



Regards,

Vikram

View 6 Replies View Related

Dynamic Change Of The Column Size And Location Of A Matrix

Feb 24, 2007

I have a report that has a matrix. That matrix can have from 2 to 16 columns dependinging on the dataset result. Right now I am forced to place this matrix on the left side of the report and make a column layout pretty narrow. When dataset has more than 13 or so columns it looks OK, but when dataset has only two or three columns it looks weird with a matrix sitting in the left corner with two or three narrow columns and a lot of empty space to the right.

Is it possible programmatically change the width of the columns depending on their number in the dataset?

Is it possible to move the location of the matrix (horizontally) depending on the number of columns in the dataset?

Thank you,



Simon.

View 11 Replies View Related

DB Engine :: How To Change Location Of Secondary Data File

Nov 9, 2015

I added a secondary data file to TEMPdb yesterday and gave it a wrong location by mistake. If I try to change the location, then I am getting an error now. I think that is because TEMPdb is in use and that is why I cant change it's secondary file's location. Do I need to take TempDB offline and then change the secondary file's location??

View 3 Replies View Related

Setup And Upgrade :: Log File Location Change In Server

Oct 10, 2015

I am working on SQL Server 2014 and I want to know, Is it possible to change the location of SQL log file and will it affect to the database if it is possible to change its location? 

View 4 Replies View Related

Offline Command Hangs When I Try To Take Database Offline

Apr 10, 2007

Hi, I am relative newbie to SQLServer. When I try to take a user database offline, the query "hangs," with the query processing circle spinning. The Sharepoint 7 application is running on top of the Enterprise SQL Server 2005 db with several logins sleeping and awaiting commands. No errors are generated until I kill the offline command. Anyone have any ideas? Do I need to kill all the connections?

View 2 Replies View Related

SQL Tools :: Change SSMS 2012 Default Query Save Location?

Dec 2, 2013

is there a way to change SSMS 2012 default query save location?

Scenario:

1. Open SSMS
2. Create new query
3. Click Save

I see "DocumentsSQL Server Management Studio" folder, but I want to change it to be "d:". How do I do this?
I tried:

1. [URL]- in folder "DocumentsSQL Server Management StudioSettingsSQL Server Management Studio" there is a file NewSettings.vssettings, setting it to "d:" or "d:" didn't work.

2. Changing HKEY_CURRENT_USERSoftwareMicrosoftMicrosoft SQL Server100ToolsShell VisualStudioProjectsLocation didn't work too. There is no "Shell" under "110Tools"

Did I do something wrong, or is there another way?

View 6 Replies View Related

Who Can Tell Me What's Mean Of My Db Logfile?

May 13, 2004

In my database named aa ,there are always some words like this:


2004-05-12 09:44:48.96 spid73 Starting up database 'aa'
2004-05-12 09:44:49.17 spid73 Starting up database 'aa'
2004-05-12 09:44:49.36 spid73 Starting up database 'aa'
2004-05-12 09:44:49.56 spid73 Starting up database 'aa'
2004-05-12 09:44:53.37 spid79 Starting up database 'aa'
2004-05-12 10:02:41.96 spid73 Starting up database 'aa'.
2004-05-12 10:02:42.24 spid73 Starting up database 'aa'.
2004-05-12 10:02:43.61 spid73 Starting up database 'aa'.
2004-05-12 10:02:43.80 spid73 Starting up database 'aa'.
2004-05-12 10:02:44.02 spid73 Starting up database 'aa'.
2004-05-12 10:02:44.24 spid73 Starting up database 'aa'.
2004-05-12 10:36:42.84 spid82 Starting up database 'aa'.

who can tell me how to resolve this problem?

View 2 Replies View Related

What If The Logfile(s) Are Lost?

Nov 27, 2000

Hi, maybe someone has some clues to the following situation. Suppose from a SQL 7 database, only the log .ldf files are lost. All datafiles are present. Suppose there is no backup of this database. SQL Server will put the database in the SUSPECT status. The following question is very interesting to me: Can one recover from this situation??? I ask this, because when datafiles are lost, it's obvious that you have lost data, but since the transaction log files are a "bit special", I just wonder how one can survive such a situation.
I know that IF a database has only ONE log file associated with it, and this one log file gets lost, SQL Server will create on startup a new log file. But with multiple log files, it does not behave in this sympathic manner. Is there perhaps any way to recover (for example, an undocumented dbcc command or so) ?
I surely will appreciate any tip or suggestion !! Thanks!!!

View 1 Replies View Related

Shrink Logfile ?

Jun 9, 2000

How do I shrink my transaction log file ? The physical file are 10Gb in size but only contains 100Mb data so I want to shrink it to save diskspace. I tried DBCC SHRINKFILE command but the file dont shrink.

Any other methods to shrink a transaction log file ? Like backup/restore ?

Help !




Thanks

View 2 Replies View Related

How To Clear The Logfile

Jan 15, 2006

Hello guys!

I would like to clear the logfile. Could anybody tell me how to do this?
What I would like most would be to run SQL-Server without any log-file (while development). But I suppose that this is not possible.

Regards,
Fabian

my favorit hoster is ASPnix : www.aspnix.com !

View 3 Replies View Related

Erase LogFile

Feb 14, 2006

How to erase the content of logfile?

View 2 Replies View Related

Truncate Logfile

Feb 3, 2007

Dear all,

I am using SAP with MSSQl 2005. My transaction logfile is full. I took backup of transaction logfile and it should be truncated and shrink after the backup, but it did nothing. There is no error but the file size remain same.

I tried from SQL server management studio selecting database--right click--shrink--file. Then i try to release unused space, shrink, but not worked.

I also checked these steps while the SAP system was stopped.

Can anyone guide me what to do now?

Thanks

Imran Hasware

View 5 Replies View Related

Establishing Logfile Size And % Used Using Sql

Apr 27, 2001

Hi there,

I want to write a sql query (for SQL7 & 2K) that gives the size and space used of the log file for a given database. I can do it for data files using sysfiles/sysindexes, but can see how I can do it for the logfile.

I know I can use DMO or dbcc sqlperf(logspace), but I want to understand how and where the information is kept in system tables.

View 2 Replies View Related

Logfile Lost In HDD Crash

Dec 18, 2000

Hi, i am not familiar with MSSQL so maybe it's not as difficult to you as it is to me - in brief:

SQL version: Microsoft SQL Server 7.00 - 7.00.699 (Intel X86)

Errorlog shows:
Starting up database 'CH2'.
Opening file E:CH2DATA1CH2DATA1.mdf.
Opening file E:CH2DATA2CH2DATA2.ndf.
Opening file E:CH2DATA3CH2DATA3.ndf.
File D:CH2LOG1CH2LOG1.ldf does not exist - unable to activate.

Enterprise Manager
Shows database CH2 (suspect)

Executing script:
sp_add_log_file_recover_suspect_db CH2, CH2LOG1, 'D:CH2LOG1CH2LOG1.ldf', 1000
Shows errormessage "The database 'CH2' does not exist."

How can i get a new logfile?
What if i created a new db 'CH2' and then replaced the data files?
What do i have to tell MSSQL to create a new logfile on startup?
All scenarios shown in Books On Line only seem to solve problems
if you do have a logfile and need more space.

Greetings from Switzerland /Lothar

View 2 Replies View Related

Moving LogFile From One Disk To Another

Apr 11, 2002

I am trying to move a logfile from one disk to another. I've detached the database, moved the logfile to another disk and reattached the database. I used the sp_detach and sp_attach_db to specify the paths of the *.MDF and *.LDF. I've tried it through Enterprise Manager and with boths ways I get an error message saying: "Error 9003: The LSN (201:48:2) passed to log scan in database 'DatabaseName' is invalid". Does anyone know what this means and how I can get around this. I've even tried to attach the database with the logfile in the original path and I still get that error. Need Help Please!

Thanks

View 2 Replies View Related

Hughe Logfile After A DELETE

Feb 3, 2004

Hi

I have a business case where I have a database with a size of 2 GB. In my business case I want to delete 70% of the contents in the database. During the delete the size of the database(including the logfile) grows up to 10 GB. When I look on the database in the SQL Server Enterprice Manager there are only 700 MB used of these 10 GB.

The deletes are performed with ordinary SQL-statements "DELETE FROM X WHERE Y = 1 AND Z = 2..."

Thankfull for hints on how to solve this problem.

Regards,
Peter

View 14 Replies View Related

Automatic Logfile Truncation

Apr 10, 2008

Gurus,

Everyweek I am truncating the logfiles. I want to automate the truncate logfiles on every sunday. Anyone can help me to automate this process..

Thanks
-- Krishna

View 15 Replies View Related

Deleting Records In The Logfile

Jul 20, 2005

I have a database that is used to store a lot of data. We load the data on adaily basis, several thousand records per day. The Log file is not needed,so whats the best way to delete the records in it and reduce the sizeThanksDerrick

View 1 Replies View Related

Shriking Logfile Using WIZARD

Mar 31, 2008



Hi All


What is the Database ->All Tasks -->ShrikDatabase ->Files --> in ShrikAction Shrikfile to ...Here there is minium MB

what is the Minimum MB,If I shrik the Log file minimum MB is there any possiblility to loss data.

View 4 Replies View Related

Logfile Full But Unrestricted Growth

Jan 10, 2001

Has anyone had this problem or know how to prevent it? I received an error message yesterday from my SQL server (v7.0 with SP2) saying that the logfile for the tempdb was full. The logfile for tempdb is set by default to unlimited growth and the drive it is on has 24GB free. What causes this error to happen?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved