I've data device & log device , how to get dat back to a new database which i create

I've data device & log device , how to get dat back to a new database which i create

Post by giridha » Thu, 01 Jul 1999 04:00:00



i 've copied the data device and log device of the database before it was re
installed.

 can i get the data back into the database ?? how so?

thanks in advance.

 
 
 

I've data device & log device , how to get dat back to a new database which i create

Post by Kent Li » Thu, 01 Jul 1999 04:00:00


It is very easy, I've tried this for many times.
You can first create a new data device & log device file with same size and
then create a new database on these devices, then stop sql server and copy
the old DAT files to cover new DAT files, and restart sql server to run dbcc
to ensure the data is ok.


>i 've copied the data device and log device of the database before it was
re
>installed.

> can i get the data back into the database ?? how so?

>thanks in advance.


 
 
 

I've data device & log device , how to get dat back to a new database which i create

Post by Tibor Karasz » Thu, 01 Jul 1999 04:00:00


If that fails, check out DISK REINIT and DISK REFIT (more info in Books
Online).

--
Tibor Karaszi
MCSE, MCSD, MCT, SQL Server MVP
Cornerstone Sweden AB
Please reply to the newsgroup only, not by email.


> It is very easy, I've tried this for many times.
> You can first create a new data device & log device file with same size
and
> then create a new database on these devices, then stop sql server and copy
> the old DAT files to cover new DAT files, and restart sql server to run
dbcc
> to ensure the data is ok.


> >i 've copied the data device and log device of the database before it was
> re
> >installed.

> > can i get the data back into the database ?? how so?

> >thanks in advance.

 
 
 

I've data device & log device , how to get dat back to a new database which i create

Post by giridha » Thu, 01 Jul 1999 04:00:00



>If that fails, check out DISK REINIT and DISK REFIT (more info in Books
>Online).

>--
>Tibor Karaszi
>MCSE, MCSD, MCT, SQL Server MVP
>Cornerstone Sweden AB
>Please reply to the newsgroup only, not by email.



>> It is very easy, I've tried this for many times.
>> You can first create a new data device & log device file with same size
>and
>> then create a new database on these devices, then stop sql server and
copy
>> the old DAT files to cover new DAT files, and restart sql server to run
>dbcc
>> to ensure the data is ok.


>> >i 've copied the data device and log device of the database before it
was
>> re
>> >installed.

>> > can i get the data back into the database ?? how so?

>> >thanks in advance.

 
 
 

I've data device & log device , how to get dat back to a new database which i create

Post by giridha » Thu, 01 Jul 1999 04:00:00


 I've data device & log device , how to get dat back to a new database ,

i'dont know the device sizes,that were previously existing on the server ?

 cant i  get back data???

thanks in advance

 
 
 

I've data device & log device , how to get dat back to a new database which i create

Post by Christoph Muthman » Thu, 01 Jul 1999 04:00:00


Hi giridhar,
during restore you will get a warning with the minimum size the restore
needs. Make your device than as big as you need it.

After restore do a DBCC CHECKTABLE for every table. Follow the hints in the
BOL (Online Documentation) if you get any errors.

This should work for SQLServer 6.5.

Have a nice day,
Christoph

giridhar schrieb in Nachricht ...

Quote:> I've data device & log device , how to get dat back to a new database ,

>i'dont know the device sizes,that were previously existing on the server ?

> cant i  get back data???

>thanks in advance

 
 
 

I've data device & log device , how to get dat back to a new database which i create

Post by Christoph Muthman » Thu, 01 Jul 1999 04:00:00


I was in the wrong film! Read the other answers!

Sorry,
Christoph

Christoph Muthmann schrieb in Nachricht ...

Quote:>Hi giridhar,
>during restore you will get a warning with the minimum size the restore
>needs. Make your device than as big as you need it.

>After restore do a DBCC CHECKTABLE for every table. Follow the hints in the
>BOL (Online Documentation) if you get any errors.

>This should work for SQLServer 6.5.

>Have a nice day,
>Christoph

>giridhar schrieb in Nachricht ...
>> I've data device & log device , how to get dat back to a new database ,

>>i'dont know the device sizes,that were previously existing on the server ?

>> cant i  get back data???

>>thanks in advance

 
 
 

I've data device & log device , how to get dat back to a new database which i create

Post by Tibor Karasz » Thu, 01 Jul 1999 04:00:00


Use an operating system functionality to get the size of a device, such as
File Manager, Explorer, the DIR command etc.

--
Tibor Karaszi
MCSE, MCSD, MCT, SQL Server MVP
Cornerstone Sweden AB
Please reply to the newsgroup only, not by email.


Quote:> I've data device & log device , how to get dat back to a new database ,

> i'dont know the device sizes,that were previously existing on the server ?

>  cant i  get back data???

> thanks in advance