Wednesday, March 21, 2012

Recovering (local) server and Restoring a Dabase from a clients backup

Hi all,
I'm running sql server 2000.
I've a client who has given me a large database to develope against.
I don't have a (local) server anymore. Can't remember why.
Whats the easiest way to recover (local) - I'm happy to reinstall and start
from a fresh (local).
Also, it looks as though the client has backed up their db.
Am I able to restore to my (local) from their backup?
Thanks,
bazYes you can restore it. You don't need to restore it locally unless you
want to. I would just place the backup some place where your development
server can see it, and then use EM to restore from the database backup.
Make sure you type in the name of the database you want to create from the
restore, so you don't overlay some other database.
--
----
----
--
Need SQL Server Examples check out my website at
http://www.geocities.com/sqlserverexamples
"Barry G. Sumpter" <barrysum@.bigpond.net.au> wrote in message
news:ev7qjfVXEHA.2964@.TK2MSFTNGP09.phx.gbl...
> Hi all,
> I'm running sql server 2000.
> I've a client who has given me a large database to develope against.
> I don't have a (local) server anymore. Can't remember why.
> Whats the easiest way to recover (local) - I'm happy to reinstall and
start
> from a fresh (local).
> Also, it looks as though the client has backed up their db.
> Am I able to restore to my (local) from their backup?
> Thanks,
> baz
>
>|||Hi Greg,
Thanks for the quick reply.
Thats great news.
I'm trying to imulate the client setup as closely as possible.
I'm modifying legacy VB 6 with ODBC connections thru a DSN (yuck!)
And running legacy Crystal Reports 8.5 thru the same DSN (yucker!)
So, I do want a (local) server.
Anyone have any ideas on how to reinstall or recover the (local) server?
I reinstalled sql server last week but the (local) didn't re-appear.
And it looks like I have to have a database name already there to be able to
recover to it.
Any suggestions?
"Gregory A. Larsen" <greg.larsen@.netzero.com> wrote in message
news:#AuHurVXEHA.3972@.TK2MSFTNGP12.phx.gbl...
> Yes you can restore it. You don't need to restore it locally unless you
> want to. I would just place the backup some place where your development
> server can see it, and then use EM to restore from the database backup.
> Make sure you type in the name of the database you want to create from the
> restore, so you don't overlay some other database.
> --
> ----
--
> ----
--
> --
> Need SQL Server Examples check out my website at
> http://www.geocities.com/sqlserverexamples
> "Barry G. Sumpter" <barrysum@.bigpond.net.au> wrote in message
> news:ev7qjfVXEHA.2964@.TK2MSFTNGP09.phx.gbl...
> start
>|||Attempting to sort out the Database name.
Just added a new database with the same name as the clients.
And used the All Task | Restore Database.
3.5 gigs available on the H: drive where I have the backed up database.
H: is where the .mdf resides as well.
3.1 gigs available of the c: drive
The backup itself is 734 megs.
All drives are NTFS
I'm getting this error:
Microsoft SQL-DMO (ODBC SQLState: 42000)
Modify File encountered operating system error 112(There is not enought
space on the disk.) while attempting to expand the physical file.
Could not adjust the space allocation for file 'x-Log'.
Restore Datbase is terminating abnormally.
Thanks,
baz
"Barry G. Sumpter" <barrysum@.bigpond.net.au> wrote in message
news:uvMji9VXEHA.2572@.TK2MSFTNGP11.phx.gbl...
> Hi Greg,
> Thanks for the quick reply.
> Thats great news.
> --
> I'm trying to imulate the client setup as closely as possible.
> I'm modifying legacy VB 6 with ODBC connections thru a DSN (yuck!)
> And running legacy Crystal Reports 8.5 thru the same DSN (yucker!)
> So, I do want a (local) server.
> Anyone have any ideas on how to reinstall or recover the (local) server?
> I reinstalled sql server last week but the (local) didn't re-appear.
>
> And it looks like I have to have a database name already there to be able
to
> recover to it.
> Any suggestions?
>
> "Gregory A. Larsen" <greg.larsen@.netzero.com> wrote in message
> news:#AuHurVXEHA.3972@.TK2MSFTNGP12.phx.gbl...
development[vbcol=seagreen]
the[vbcol=seagreen]
> ----
> --
> ----
> --
>|||Make sure you are restoring the data and log files to a valid drive on your
local server. When your customer made the backup, the paths where the data
files resided on the customer's server are also recorded. When you now
restore the backup, SQL Server will by default try to restore the files to
the same location. You may need to change these paths. Since you are using
Enterprise Manager, look in the Options tab in the Restore database dialog.
If using Query Analyzer, look up the RESTORE FILELISTONLY .. and RESTORE
DATABASE ... WITH MOVE ... syntax.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Barry G. Sumpter" <barrysum@.bigpond.net.au> wrote in message
news:%23mPKjQWXEHA.736@.TK2MSFTNGP10.phx.gbl...
> Attempting to sort out the Database name.
> Just added a new database with the same name as the clients.
> And used the All Task | Restore Database.
> 3.5 gigs available on the H: drive where I have the backed up database.
> H: is where the .mdf resides as well.
> 3.1 gigs available of the c: drive
> The backup itself is 734 megs.
> All drives are NTFS
> I'm getting this error:
> Microsoft SQL-DMO (ODBC SQLState: 42000)
> Modify File encountered operating system error 112(There is not enought
> space on the disk.) while attempting to expand the physical file.
> Could not adjust the space allocation for file 'x-Log'.
> Restore Datbase is terminating abnormally.
> Thanks,
> baz
> "Barry G. Sumpter" <barrysum@.bigpond.net.au> wrote in message
> news:uvMji9VXEHA.2572@.TK2MSFTNGP11.phx.gbl...
able[vbcol=seagreen]
> to
you[vbcol=seagreen]
> development
backup.[vbcol=seagreen]
> the
> ----
> ----
and[vbcol=seagreen]
>|||Hi Peter,
Thanks for the reply.
You have to have a database already setup on your server to restore to.
So my database was only 1 k .
Ten after the failed attempt it is was 750megs.
Had another look thru google.
Looks like some others were having the same prob.
Theirs turned out to be a severely defragmented hard drive.
I've had a look thru mine with DiskKeeper.
Mine is also severely defragmented as well.
I've been defraggin all day but I can't get DiskKeeper to continue defraggin
on its own
I have to keep starting it and it only defrage 50 frags at a time? Who
knows ...
I'll update a followup when I have some news...|||Ok I've done it.
DiskKeeper wouldn't defrag enought to make a difference so I had to move my
focus to C: drive.
Still no luck.
I found an older version of w2k on c: drive and removed it.
Defraged with heaps better oucome with diskkeeper.
C: drive then had 4.5 gig free space
Moved backup to C: drive (750 meg)
and created new table on C: drive 1 k - (3.7 gig free on c: drive)
Restored successfully.
now have 3 gig free space
Could have been just the free space restrictions.
Difference between 3.1 failure and 4.5 success.
Anyone know the formula?
Perhaps 3gig / .75 gig failure = 4 times
and 4.5 gig / .75 gig success = 6 times
Thanks,
baz
"Barry G. Sumpter" <barrysum@.bigpond.net.au> wrote in message
news:#V7#YyXXEHA.712@.TK2MSFTNGP11.phx.gbl...
> Hi Peter,
> Thanks for the reply.
> You have to have a database already setup on your server to restore
to.
> So my database was only 1 k .
> Ten after the failed attempt it is was 750megs.
> --
>
> Had another look thru google.
> Looks like some others were having the same prob.
> Theirs turned out to be a severely defragmented hard drive.
> I've had a look thru mine with DiskKeeper.
> Mine is also severely defragmented as well.
> I've been defraggin all day but I can't get DiskKeeper to continue
defraggin
> on its own
> I have to keep starting it and it only defrage 50 frags at a time? Who
> knows ...
> I'll update a followup when I have some news...
>|||Don't know if there is such a formula, but it's sure something to keep in
mind. Thx for the update.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Barry G. Sumpter" <barrysum@.bigpond.net.au> wrote in message
news:%23ODumxuXEHA.3944@.tk2msftngp13.phx.gbl...
> Ok I've done it.
> DiskKeeper wouldn't defrag enought to make a difference so I had to move
my
> focus to C: drive.
> Still no luck.
> I found an older version of w2k on c: drive and removed it.
> Defraged with heaps better oucome with diskkeeper.
> C: drive then had 4.5 gig free space
> Moved backup to C: drive (750 meg)
> and created new table on C: drive 1 k - (3.7 gig free on c: drive)
> Restored successfully.
> now have 3 gig free space
> Could have been just the free space restrictions.
> Difference between 3.1 failure and 4.5 success.
> Anyone know the formula?
> Perhaps 3gig / .75 gig failure = 4 times
> and 4.5 gig / .75 gig success = 6 times
> Thanks,
> baz
>
> "Barry G. Sumpter" <barrysum@.bigpond.net.au> wrote in message
> news:#V7#YyXXEHA.712@.TK2MSFTNGP11.phx.gbl...
> to.
> defraggin
>sql

No comments:

Post a Comment