Hi,
I would like to add a backup function in my winform app.
I use MSDE.
My idea was to :
Detach the database
Copy the mdf and ldf file to the destination support
Attach the database

But I don't know how to detach and attach the database from vb.net
Any idea ?

Stan

RE: How to make a backup from vb.net by sabyasachibose

sabyasachibose
Thu Mar 04 03:51:05 CST 2004

try "Microsoft SQLDMO Object Library" using this database can be backed up

Re: How to make a backup from vb.net by William

William
Thu Mar 04 06:38:19 CST 2004

sp_Attachdb and detach are the SQL Commands you'd execute against the db.
"Stan Sainte-Rose" <stan@cyber972.com> wrote in message
news:%23ZOXAYcAEHA.1548@TK2MSFTNGP12.phx.gbl...
> Hi,
> I would like to add a backup function in my winform app.
> I use MSDE.
> My idea was to :
> Detach the database
> Copy the mdf and ldf file to the destination support
> Attach the database
>
> But I don't know how to detach and attach the database from vb.net
> Any idea ?
>
> Stan
>
>
>
>