all groups > sql server msde > june 2004 >
You're in the

sql server msde

group:

data from MSDE


Re: data from MSDE Jim Young
6/25/2004 2:08:19 PM
sql server msde: If you've committed all pending transactions before detaching then there's
no need to move the transaction log also. sp_attachdb will create a new
transaction log for you.

Jim

[quoted text, click to view]

Re: data from MSDE Dan Deward
6/25/2004 4:05:00 PM
Damiano,

A good place to start is to have a look at the stored procedures called
sp_detach and sp_attach_db. After you detach the database, just
move the MDF and LDF files to the other computer and attach them
to the other server.

Dan
[quoted text, click to view]

data from MSDE YAMNE
6/25/2004 8:26:53 PM
How I can copy a database from MSDE to another computer with MSDE?

Thanks
Damiano

Re: data from MSDE Hari Prasad
6/26/2004 8:35:26 AM
Hi,

Detach and Attach require some down time in actual server.
If you do a Backup in source server , copy the backup file to destination
and do a Restore - This require Zero down time.

Steps:-

OSQL -Usa -Ppassword -Sserver (enter)

1> Backup database <dbname> to disk='c:\dbname.bak' with init
2>go

copy the dbname.bak to destination server

Now restore the file in Destination

OSQL -Usa -Ppassword -Sserver (enter)

1> restore database <dbname> from disk='c:\dbname.bak'
2>go

Now it destination use the procedure sp_changeuserslogin (Refer books
online)
procedure to sync the logins after restore.

Thanks
Hari
MCDBA




[quoted text, click to view]

Re: data from MSDE William (Bill) Vaughn
6/27/2004 4:17:15 PM
Huh? The server does not have to be down to do an sp_detach--it can't be
down. Yes, you do "shutdown" the target database, but only that database is
affected. The sp_detach/file copy process can take a few seconds to a few
minutes.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

[quoted text, click to view]

AddThis Social Bookmark Button