下面代码是用Adox重命名Access表名的示例代码:

Dim Conn,ConnStr,oCat,oTbl
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("data.mdb")
Set oCat=Server.CreateObject("ADOX.Catalog")
oCat.ActiveConnection = ConnStr [中国站长站]

Set oTbl = Server.CreateObject("ADOX.Table")
Set oTbl = oCat.Tables("OldTable") '要重命名的表名:OldTable
oTbl.Name = "NewTable" '新表名
Set oCat = Nothing
Set oTbl = Nothing

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2022-02-20
  • 2022-12-23
  • 2021-11-19
  • 2021-11-09
  • 2021-12-09
猜你喜欢
  • 2021-12-19
  • 2021-12-08
  • 2022-01-06
  • 2022-12-23
  • 2021-11-04
  • 2021-11-20
  • 2021-07-16
相关资源
相似解决方案