永利皇宫登录网址 ,  用最简便易行的手续备份sql数据库的公文到地面:

   用最简单易行的手续备份sql数据库的公文到地点:

  response.Charset = “utf-8”

  response.Charset = “utf-8”

  Session.Codepage = 65001

  Session.Codepage = 65001

  Response.Buffer=true

  Response.Buffer=true

  Response.Clear

  Response.Clear

  ’依据你的动静修改用户名和密码

  ’依据你的图景修改用户名和密码

  constr=”Provider=SQLOLEDB.1;Persist Security Info=True;User
ID=endiva;Password=endiva;Data Source=211.160.78.6″

  constr=”Provider=SQLOLEDB.1;Persist Security Info=True;User
ID=endiva;Password=endiva;Data Source=211.160.78.6″

  set conn=server.createobject(“adodb.connection”)

  set conn=server.createobject(“adodb.connection”)

  conn.open constr

  conn.open constr

  bkfname=server.mappath(Format_Time(Now(),5)&”database.bak”)

  bkfname=server.mappath(Format_Time(Now(),5)&”database.bak”)

  sqlstr=”backup database fang to disk='”+bkfname+”‘ with init”

  sqlstr=”backup database fang to disk='”+bkfname+”‘ with init”

  conn.execute sqlstr

  conn.execute sqlstr

  conn.close

  conn.close

网站地图xml地图