简单回一下,用SQL 语句实现,写个单单的例子
sqlconnectoin con=new sqlconnection("server=.;database=northwind;uid=sa;pwd=");
//C#实现,VB.net是一样的
sqlcommand cmd =new sqlcommand();
con.open();
string stringfile=savedialogues.filename;
cmd.commandtext="backup database northwind to disk='"+stringfile+"'";
cmd.connection=con;
cmd.execunonquery();
con.close();