Home All Groups Group Topic Archive Search About

restoring db without log

Author
29 Jun 2005 6:06 PM
microsoft.public.dotnet.languages.vb
Hi All,

Our database hardware crashed. We had to rebuild that from scratch.
After rebuilding, there was no user databases.

Now, I was restoring databases from backup.

I have a big data file (about 5.6 GB).

When I use the restore command as follows, I see it tries to add the
log files in the D:\MSSQL\Data folder. That log file becomes more than
17 GB. It runs for more than an hour and still I do not see the
database is on line. Then I cancel the query. I have done it several
times today.

restore database TestDB

from disk='\\dr1\DBback\TestDB.dat'

with move 'TestDB_dat' to 'D:\MSSQL\Data\TestDB.mdf',
move 'TestDB_log' to 'D:\MSSQL\Data\TestDB.ldf'


Then I deleted the mdf and ldf files in the data folder and tried
without the log portion.
restore database TestDB

from disk='\\dr1\DBback\TestDB.dat'

with move 'TestDB_dat' to 'D:\MSSQL\Data\TestDB.mdf'

still I see it is placing the ldf file and the size is 17 GB, and runs
for more than an hour and the database was not restored.

Also, I have no way of knowing why the hardware failed. It is a brand
new Dell server.

Could anyone please tell me how I can solve this? This is a very
important database and needs to be online today.

I thank you million times in advance for you help.

Best regards,

mamun

Author
29 Jun 2005 6:16 PM
Tibor Karaszi
The transaction log need to be created when you restore. Let it run. Make sure you refresh in EM, or
try to connect to the database using QA.


> Also, I have no way of knowing why the hardware failed. It is a brand
> new Dell server.

You should check eventlog etc for error messages.
Show quote
"microsoft.public.dotnet.languages.vb" <mamun***@hotmail.com> wrote in message
news:1120068371.189171.44820@f14g2000cwb.googlegroups.com...
> Hi All,
>
> Our database hardware crashed. We had to rebuild that from scratch.
> After rebuilding, there was no user databases.
>
> Now, I was restoring databases from backup.
>
> I have a big data file (about 5.6 GB).
>
> When I use the restore command as follows, I see it tries to add the
> log files in the D:\MSSQL\Data folder. That log file becomes more than
> 17 GB. It runs for more than an hour and still I do not see the
> database is on line. Then I cancel the query. I have done it several
> times today.
>
> restore database TestDB
>
> from disk='\\dr1\DBback\TestDB.dat'
>
> with move 'TestDB_dat' to 'D:\MSSQL\Data\TestDB.mdf',
> move 'TestDB_log' to 'D:\MSSQL\Data\TestDB.ldf'
>
>
> Then I deleted the mdf and ldf files in the data folder and tried
> without the log portion.
> restore database TestDB
>
> from disk='\\dr1\DBback\TestDB.dat'
>
> with move 'TestDB_dat' to 'D:\MSSQL\Data\TestDB.mdf'
>
> still I see it is placing the ldf file and the size is 17 GB, and runs
> for more than an hour and the database was not restored.
>
> Also, I have no way of knowing why the hardware failed. It is a brand
> new Dell server.
>
> Could anyone please tell me how I can solve this? This is a very
> important database and needs to be online today.
>
> I thank you million times in advance for you help.
>
> Best regards,
>
> mamun
>
Author
29 Jun 2005 6:21 PM
Ravi
I don't think you can restore a database without transaction log. Looks like
your backup has a huge transaction log. The SQL server should restore the
entire database and rollback/forward the trasactions. I will take sometime to
restore.

1. Do you see the database in the EM with "(Loading)" status?
2. Are you trying to restore the database from network share?. If so try to
copy the backup locally and then restore.




--
Thanks
Ravi


Show quote
"microsoft.public.dotnet.languages.vb" wrote:

> Hi All,
>
> Our database hardware crashed. We had to rebuild that from scratch.
> After rebuilding, there was no user databases.
>
> Now, I was restoring databases from backup.
>
> I have a big data file (about 5.6 GB).
>
> When I use the restore command as follows, I see it tries to add the
> log files in the D:\MSSQL\Data folder. That log file becomes more than
> 17 GB. It runs for more than an hour and still I do not see the
> database is on line. Then I cancel the query. I have done it several
> times today.
>
> restore database TestDB
>
> from disk='\\dr1\DBback\TestDB.dat'
>
> with move 'TestDB_dat' to 'D:\MSSQL\Data\TestDB.mdf',
> move 'TestDB_log' to 'D:\MSSQL\Data\TestDB.ldf'
>
>
> Then I deleted the mdf and ldf files in the data folder and tried
> without the log portion.
> restore database TestDB
>
> from disk='\\dr1\DBback\TestDB.dat'
>
> with move 'TestDB_dat' to 'D:\MSSQL\Data\TestDB.mdf'
>
> still I see it is placing the ldf file and the size is 17 GB, and runs
> for more than an hour and the database was not restored.
>
> Also, I have no way of knowing why the hardware failed. It is a brand
> new Dell server.
>
> Could anyone please tell me how I can solve this? This is a very
> important database and needs to be online today.
>
> I thank you million times in advance for you help.
>
> Best regards,
>
> mamun
>
>
Author
29 Jun 2005 8:21 PM
Mamun Ahmed
Hi Ravi and Tibor,

I have tried copying the backup file from the network share to the
datbase server. When I run the restore command, I get the following
error.


Server: Msg 3270, Level 16, State 1, Line 1
An internal consistency error occurred. Contact Technical Support for
assistance.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.


Could you please help what I need to do.

I am really in need of help.

Thanks a million.

Best regards,

mamun



*** Sent via Developersdex http://www.developersdex.com ***
Author
29 Jun 2005 8:49 PM
Ravi
Some Questions
1. What is operating system server running SQl Server ?
2. What is the file system type (NTFS, FAT etc.,) of the server running SQl
Server
3. What is the file system type of NETWORK Share?
--
Thanks
Ravi


Show quote
"Mamun Ahmed" wrote:

> Hi Ravi and Tibor,
>
> I have tried copying the backup file from the network share to the
> datbase server. When I run the restore command, I get the following
> error.
>
>
> Server: Msg 3270, Level 16, State 1, Line 1
> An internal consistency error occurred. Contact Technical Support for
> assistance.
> Server: Msg 3013, Level 16, State 1, Line 1
> RESTORE DATABASE is terminating abnormally.
>
>
> Could you please help what I need to do.
>
> I am really in need of help.
>
> Thanks a million.
>
> Best regards,
>
> mamun
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
>
Author
29 Jun 2005 8:51 PM
Ravi
Also try RESTORE VERIFYONLY command
--
Thanks
Ravi


Show quote
"Mamun Ahmed" wrote:

> Hi Ravi and Tibor,
>
> I have tried copying the backup file from the network share to the
> datbase server. When I run the restore command, I get the following
> error.
>
>
> Server: Msg 3270, Level 16, State 1, Line 1
> An internal consistency error occurred. Contact Technical Support for
> assistance.
> Server: Msg 3013, Level 16, State 1, Line 1
> RESTORE DATABASE is terminating abnormally.
>
>
> Could you please help what I need to do.
>
> I am really in need of help.
>
> Thanks a million.
>
> Best regards,
>
> mamun
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
>
Author
29 Jun 2005 8:58 PM
Hari Prasad
Hi mamun,

Go ahead and contact Microsoft PSS if the data is very critical.


Have a look into the below link on MS PSS. "Good Luck"


http://support.microsoft.com/common/international.aspx?rdpath=1&gprid=2852


Thanks
Hari



Show quote
"Mamun Ahmed" <mamun***@hotmail.com> wrote in message
news:%23YeNygOfFHA.3940@tk2msftngp13.phx.gbl...
> Hi Ravi and Tibor,
>
> I have tried copying the backup file from the network share to the
> datbase server. When I run the restore command, I get the following
> error.
>
>
> Server: Msg 3270, Level 16, State 1, Line 1
> An internal consistency error occurred. Contact Technical Support for
> assistance.
> Server: Msg 3013, Level 16, State 1, Line 1
> RESTORE DATABASE is terminating abnormally.
>
>
> Could you please help what I need to do.
>
> I am really in need of help.
>
> Thanks a million.
>
> Best regards,
>
> mamun
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
Author
30 Jun 2005 1:00 AM
Christian Donner
"microsoft.public.dotnet.languages.vb" schrieb:
Show quote
> Hi All,
> Our database hardware crashed. We had to rebuild that from scratch.
> After rebuilding, there was no user databases.
> Now, I was restoring databases from backup.
> I have a big data file (about 5.6 GB).
> When I use the restore command as follows, I see it tries to add the
> log files in the D:\MSSQL\Data folder. That log file becomes more than
> 17 GB. It runs for more than an hour and still I do not see the
> database is on line. Then I cancel the query. I have done it several
> times today.
>
> restore database TestDB
> from disk='\\dr1\DBback\TestDB.dat'
> with move 'TestDB_dat' to 'D:\MSSQL\Data\TestDB.mdf',
> move 'TestDB_log' to 'D:\MSSQL\Data\TestDB.ldf'
>
> Then I deleted the mdf and ldf files in the data folder and tried
> without the log portion.
> restore database TestDB
> from disk='\\dr1\DBback\TestDB.dat'
> with move 'TestDB_dat' to 'D:\MSSQL\Data\TestDB.mdf'
>
> still I see it is placing the ldf file and the size is 17 GB, and runs
> for more than an hour and the database was not restored.
>
> Also, I have no way of knowing why the hardware failed. It is a brand
> new Dell server.
> Could anyone please tell me how I can solve this? This is a very
> important database and needs to be online today.
> I thank you million times in advance for you help.
> Best regards,
> mamun

1. The TA-log is part of a full database backup and will always be restored
with the database.

2. If your restore statement really looks like that then the most important
element is missing: with recovery. Without that you can wait for your db
until hell is freezing ...

AddThis Social Bookmark Button