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


ADVERTISEMENT

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

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

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

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

Shrinking The Master Database Logfile

Feb 9, 2001

Hello

Can anyone help, I have a master database on my server which has an extremely large log file size. I need to shrink this down and so I have tried using dbcc shrinkfile (master, 50, truncateonly) and dbcc shrinkdatabase although it does not seem to reduce in size

Please can anyone help

View 1 Replies View Related

Moving Tempdb Datafile & Logfile

Jul 16, 2001

Is it possible to move (detach and attach) the physical data and log file (.mdf &.ldf) to another location?

View 1 Replies View Related

How Can I Take Backup Of Logfile Of One Specific Database?

Jul 20, 2005

Hi,I want to take backup of database logfile periodically andautomatically. What should i do then.....ThanksHoque

View 1 Replies View Related

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 View Related

How To Alter The Transaction Logfile Size In MSDE 2000?

Dec 1, 2004

Hi there,

I recently saw that the transaction log files of user dbs grow undefinitely in SQL Server 2000 - one of our customers had a 11 GB log file which totally slowed down the server.
Another customer of ours uses one of my applications logging all actions in a MSDE database file and I fear that the corresponding transaction log file will grow and block the system too - is there any way that I could shrink and set the max size of the transaction log file through SQL?

I already know the command "SHRINK FILE ('filename')" but I haven't found a SQL command to set the max size.

Thank you for any hints!

Sascha

View 3 Replies View Related

SQL Server Admin 2014 :: Datafile And Logfile On Fusion IO

Aug 27, 2015

As per the old times, do we still need to have the SQL server database's data file and logfiles seprately while we are even using Fusion IO?

In my case, all the drives G and H are from Fusion IO.

So, will it really matter if both my Data and log are on G drive or should I still have them separately on G and H Drives.

View 1 Replies View Related

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

Database And Logfile Growth When Attaching SQL2000 DB To SQL2005

Jun 25, 2007

Can anyone tell me why my SQL2000 database has grown aprox 15 % and my Log file 20,000 % when I attach it to SQL2005 .I've Thousands of Databases to Upgrade, but with the log file increasing to more than the size of the Database Its going to be a struggle !

It also takes a fair ammount of time to attach,

I suspect there is some reindexing going on , as when I try to reattach to SQL 2000 I get index errors ?

Is the re anything I can do in advance to reduce the database growth ?

I know I can truncate the log afterward but the peak diskspace consumed during my Migration may be an issue !



Thanks for any help

View 2 Replies View Related

Cannot Write Logfile Error 1059 : Circular Service Dependency

Feb 14, 2007

I have a problem that looks like it has not been discussed before inthese groups.I have a simple SQLAgent job that runs sp_who (could be anything, butlet's just say sp_who for this example). I have set the jobstep towrite to an output file "T:out.txt". If the job is owned by anadmin, it runs fine and writes the output file. If it is owned by anon-admin user, it gets the following error msg:Warning: cannot write logfile t:out.txt. Error 1059 : Circularservice dependency was specified. The step failed.I know about setting up the SQLAgent CMDExec proxy account, and havedone that. In fact, both SQLAgent and the SQLAgent cmdexec proxy usethe same domain account, which is in the administrator group of thelocal server. So, I know that security is not the issue.When a simple job runs and writes to an output file, what service orservice group could it be trying to start or modify? I looked throughthe list of Services, and could not find any circular dependencies.Is there a utility to detect this? Why would running under onecontext (as an admin) be ok while the other context (non-admin on SQL,but using the same admin domain service account) fails?Thanks in advance for any info you might have.

View 3 Replies View Related

Urgent DataBase Restore Logfile Path Error Message

May 8, 2007

I am having difficulty restoring a database (DB_1) with 2 datafiles and one log file, DB Structure is as following:

Filegroup PRIMARY with file name 'fnm_data' with physical file name and location D:dbfile_1.mdf,
Filegroup 'FG1' with file name 'fgnm1_data1' with physical file name and location F:dbfile_FG1.mdf,
One log file with file name 'fnm_log' with physical file name and location (E:loglog_db.ldf)

{Note} Logfile resides on E drive whereas Datafiles reside on several other drives.

I need to restore the DB on another machine. And I need to move the log file to a drive other than E.In this case it is K drive. Hence I have used the following code,

restore log DB_1 from disk='M:kupccciclog.txt'

WITH RESTRICTED_USER , MOVE 'fnm_log'

TO 'K:DBlog_db.ldf', recovery, replace,RESTART

go



When I try to restore from backup files, I keep error message saying "Physical file name E:loglog_db.ldf may be incorrect." 'fnm_log' cannot be restored. Use Move command to identify a valid location for the file.

Even though I am using Move command to move the log file.



Then I found that if I create a drive with E: and a folder named 'log' then restore program runs alright. That is, when E:log exists then code does run smoothly. All the restore code is looking for the presence of path of the log file from where it is been backed up. In this case it is E:log folder. Once the database is restored I could kill that directory and nothing happens. Also log file has been restored on K:DB only.

Why the restore code is looking for the initial drive letter and path even though I have used Move command? Is there an issue in my code?

Any help will be highly appreciated.

View 3 Replies View Related

Crash...

Feb 19, 2004

Hi my name is Rodrigo and Im from Brasil, so, sorry about my english.

I have a problem using MSSQL 2000. Iīm using a client/server application, and sometimes (almost every day) the sql server start to use 100% of CPU and crash the system. I donīt know how and when but it hapens always. I never found a reason for it, but looking at the event viewer in windows 2000 i saw an error about www publishing (something like that). Maybe my sqlserver is trying to connect to internet to do something (i donīt know). Please if somebody can help me send me a mail. Thanks a lot.

View 6 Replies View Related

Installation Crash

Sep 21, 2006

Hi, I'm trying to install SQL Server 2000 Dev Edn. When I install client and server tools it will crash after I enter the administration password. But this only happens when I install it with server tools, its OK with just client tools. Thanks 

View 8 Replies View Related

Server Crash

Mar 27, 2001

Hi,

My Sql server went down last night. Is there a way to find out what could have caused system to crash?
Is there any way to notify the DBA when sql services have stopped running?

Any hint/suggestion is highly appreciated..

Thanks..
Ann

View 5 Replies View Related

SQL Server Crash

Jun 29, 2001

Hello,

Recently my computer had a crash on which SQL Server was installed. And if that wasn't enough, the backup failed to. Now I've installed SQL Server again, but I have these *.mdf and *.ldf files, which contains my data and my tables etc. So my question is, how do I get this data into my newly installed SQL Server? Maybe it's quite simple, but I can't find it.
Im using SQL Server Enterprise version 7.0 on Win2k Advanced Server.

Many thanks in advance,
Stefan.

View 2 Replies View Related

Server Crash

Apr 3, 2000

Hi,
My sql server stopped unexpectedly and restarted itself today, and I have no clue why. The NT Event Viewer provides this "insight":

The MSSQLService terminated unexpectedly.

The event id is 17052, which isn't documented in BOL. Does anyone have any explanation, and some suggestions on how to avoid this in the future?
thanks,
Jason

View 1 Replies View Related

Database Crash In 7.0

Jul 7, 2000

Hi Everybody,

What type of 'Database Crash' can we expect in SQL Server 7.0.? and How do we rectify this ?.


Thanks in Advance.
Srinivasan

View 1 Replies View Related

On-going SQL 6.5 Crash.....17805

Mar 21, 2000

hello:

Does anyone have any input on why my SQL Server keeps crashing? I get the following errors:
Error : 17805, Severity: 18, State: 0
00/03/21 09:06:06.42 ods Invalid buffer received from client.
00/03/21 09:09:51.56 kernel SQL Server terminating due to 'stop' request from Service Control Manager
At other times, there were some STACK DUMP ERRORS.
We are on service pack 4 (I have been pushing to apply 5a)
Please help,
Thank you.

View 1 Replies View Related

Server Crash

Oct 18, 1999

Hi Folks,

I got the following message in the error log when SQL Server 6.5 crashed.
''Stored function 'xp_runwebtask' in the library 'xpsqlweb.dll' generated access violation; SQL Server is terminating process 60''
Source:spid 60
Anyone know what this means ? If you think you know of have come across it before, please inform me.

Thanks
Alan

View 1 Replies View Related

SQL Server Crash

Feb 16, 1999

I need help. I am facing following problems since days
here you have the errors messages:

Mesg 18264 : DATABASE dumped with following info: Database Name:IITMSDB, Creation Date and Time:Feb 12, 99(23:00), Pages dumped:3898618, Current Sequence:36201 19370307, Sort Order:52, Striped:NO, Number of Dump Devices:1, device info:(VOLID=SS0001 NAME=iitmsdb_dump TYPE=DISK FILE=1)

Mesg 17562 : Checking space allocation for database 6

Mesg 18109 : Recovery dbid 10 ckpt (590112,18) oldest tran=(590112,0)

Error : 0, Severity: 19, State: 0
SQLDumpExceptionHandler: Process 49 generated access violation; SQL Server is terminating this process

Error : 0, Severity: 19, State: 0
SQLDumpExceptionHandler: Process 102 generated access violation; SQL Server is terminating this process

Mesg 17309 : The current contents of process' input buffer are '_cursoropen'.

Error : 925, Severity: 19, State: 1
Maximum number of used databases for each query has been exceeded. The maximum allowed is 8.

Thanks a lot. Bangaly

View 1 Replies View Related







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