SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Potential Complications/Problems


Potential Complications/Problems

Author
Message
Sioban Krzywicki
Sioban Krzywicki
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4350 Visits: 8096
A SQL Server 200 database went down. It was backed up on tape, but I don't think it was a proper .bak backup, I think it was just a backup of the .mdb. (I don't have access to these things on this server). It is currently being restored. SQL Server lists the database as (Restoring...)

What kind of problems should I look out for in this situation? Will the restoration simply fail if it isn't from a .bak?

--------------------------------------
When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
--------------------------------------
It’s unpleasantly like being drunk.
What’s so unpleasant about being drunk?
You ask a glass of water. -- Douglas Adams
ALZDBA
ALZDBA
One Orange Chip
One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)

Group: General Forum Members
Points: 29081 Visits: 8986
if it was a full database backup, it holds the data from your mdf, ndf and ldf files.

Still that isn't a guarantee your restore will be ok.

After the restore operation, I would run dbcc checkdb to see if sqlserver can confirm the internal structure and system indicators are ok.

- Wat was the recovery setting for the database ? (simple/bulk/full)

- Do you also have log backups ?

How will you handle the data loss ? (time between last backup and crash)

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
Sioban Krzywicki
Sioban Krzywicki
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4350 Visits: 8096
ALZDBA (1/20/2011)
if it was a full database backup, it holds the data from your mdf, ndf and ldf files.

Still that isn't a guarantee your restore will be ok.

After the restore operation, I would run dbcc checkdb to see if sqlserver can confirm the internal structure and system indicators are ok.

- Wat was the recovery setting for the database ? (simple/bulk/full)

- Do you also have log backups ?

How will you handle the data loss ? (time between last backup and crash)



As far as I know it wasn't a "database backup" is was a backup of all the files on the drive.

--------------------------------------
When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
--------------------------------------
It’s unpleasantly like being drunk.
What’s so unpleasant about being drunk?
You ask a glass of water. -- Douglas Adams
ALZDBA
ALZDBA
One Orange Chip
One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)

Group: General Forum Members
Points: 29081 Visits: 8986
That's not backup but a file copy.
That will only work if your sqlinstance has been shut down before copying the files unless you use special snapshoting software that knows to flush all sqlserver data to disk.

Suppose your mdf file is usable, but is the only file you have, there may still be options for a single file attach.


have a look at:
- http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=85187

- at ssc you'll also find forum threads handling this issue.


I hope you get this db back in a consitent and working state.

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
Sioban Krzywicki
Sioban Krzywicki
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4350 Visits: 8096
ALZDBA (1/20/2011)
That's not backup but a file copy.
That will only work if your sqlinstance has been shut down before copying the files unless you use special snapshoting software that knows to flush all sqlserver data to disk.

Suppose your mdf file is usable, but is the only file you have, there may still be options for a single file attach.


have a look at:
- http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=85187

- at ssc you'll also find forum threads handling this issue.


I hope you get this db back in a consitent and working state.



I know it isn't a backup, that's why I'm worried. I'm not the one restoring it or "backing it up" in the first place. I just have to deal with it once it is restored.

--------------------------------------
When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
--------------------------------------
It’s unpleasantly like being drunk.
What’s so unpleasant about being drunk?
You ask a glass of water. -- Douglas Adams
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)

Group: General Forum Members
Points: 92835 Visits: 38954
If it isn't a true backup, but a file backup, you may not be able to do anything. If SQL Server was down while the file backup is run, you may be okay.

You may want to be sure to set the user expectations as to what may happen when the restore is done.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Sioban Krzywicki
Sioban Krzywicki
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4350 Visits: 8096
Lynn Pettis (1/20/2011)
If it isn't a true backup, but a file backup, you may not be able to do anything. If SQL Server was down while the file backup is run, you may be okay.

You may want to be sure to set the user expectations as to what may happen when the restore is done.


Thanks, that is one of the things we've been doing. When the end users hear there's even the slightest chance it'll all be fixed they jump right to "So everything will be fine?"

--------------------------------------
When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
--------------------------------------
It’s unpleasantly like being drunk.
What’s so unpleasant about being drunk?
You ask a glass of water. -- Douglas Adams
GilaMonster
GilaMonster
SSC Guru
SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)

Group: General Forum Members
Points: 219047 Visits: 46279
A state of RESTORING means that there was a backup and that it was restored WITH NORECOVERY

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Sioban Krzywicki
Sioban Krzywicki
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4350 Visits: 8096
GilaMonster (1/21/2011)
A state of RESTORING means that there was a backup and that it was restored WITH NORECOVERY


Excelent, thanks. There's been communication issues and I've been worried. I wanted to find out from people who know far more than I about such things what might actually be going on and how bad the situation really was. Thanks to everyone who replied.

--------------------------------------
When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
--------------------------------------
It’s unpleasantly like being drunk.
What’s so unpleasant about being drunk?
You ask a glass of water. -- Douglas Adams
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search