Database backup/restore

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any way to backup/restore an SQL Server database from .NET, using
the System::Data::SQLClient namespace?

Thanks
 
Sure. Create a sqlCommand object that has a BACKUP DATABASE command. For
details on this command, consult SQL Server books online.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
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.
__________________________________
 
Back
Top