打开没有访问权限的 mdb 访问文件

发布于 2024-08-03 08:09:57 字数 170 浏览 2 评论 0原文

我没有 Microsoft 访问权限,但想打开 mdb 文件,有什么方法可以做到这一点吗?

mdb 文件包含我需要的 SQL 代码。它只是一个连接到远程数据库的文件。 sql 代码

我需要查看我尝试过 openoffice base 的 ,但它只向我显示了一些表格。我没看到sql代码在哪里?

i dont have microsoft access but would like to open an mdb file, is there any way to do this?

the mdb file contains SQL code that i need. it is just a file that connects to a remote database. i need to view the sql code

i did try openoffice base, but it only showed me some tables. i dont see where the sql code is?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

等待我真够勒 2024-08-10 08:09:57

该 VBScript 将从 MDB 数据库中保存的查询中打印出 SQL 语句。

Option Explicit
Dim dbe
Dim db
Dim qdf

Set dbe = CreateObject("DAO.DBEngine.36")
'change the next line to include the full path to your database
Set db = dbe.OpenDatabase("C:\SomeFolder\YourDatabase.mdb")
For Each qdf In db.QueryDefs
    If Left(qdf.Name,1) <> "~" Then
        Wscript.StdOut.WriteLine qdf.Name
        Wscript.StdOut.WriteLine qdf.SQL
        Wscript.StdOut.WriteLine String(20, "-")
    End If
Next
Set db = Nothing
Set dbe = Nothing

我将其保存为 DumpQuerySQL.vbs,然后从命令提示符运行它,如下所示:

cscript DumpQuerySQL.vbs > querySQL.txt

This VBScript will print out the SQL statements from the saved queries in your MDB database.

Option Explicit
Dim dbe
Dim db
Dim qdf

Set dbe = CreateObject("DAO.DBEngine.36")
'change the next line to include the full path to your database
Set db = dbe.OpenDatabase("C:\SomeFolder\YourDatabase.mdb")
For Each qdf In db.QueryDefs
    If Left(qdf.Name,1) <> "~" Then
        Wscript.StdOut.WriteLine qdf.Name
        Wscript.StdOut.WriteLine qdf.SQL
        Wscript.StdOut.WriteLine String(20, "-")
    End If
Next
Set db = Nothing
Set dbe = Nothing

I saved it as DumpQuerySQL.vbs, then ran it from a command prompt like this:

cscript DumpQuerySQL.vbs > querySQL.txt
把梦留给海 2024-08-10 08:09:57

通过 ADO.NET 和几乎任何其他方式“访问”它应该可以解决问题。

善良,

"Accessing" it through ADO.NET and virtually anything else should do the trick.

Kindness,

Dan

超可爱的懒熊 2024-08-10 08:09:57

大多数 Windows 版本中包含的 Jet 驱动程序可以执行此操作。您可以通过您首选的提供商或 API(ODBC、ADO、ADO.NET)使用 Jet 驱动程序。甚至 Excel 也支持它(打开文件,然后选择 MDB)。

The Jet driver included with most versions of Windows can do this. You can use the Jet driver through your prefered provider or API (ODBC, ADO, ADO.NET). Even Excel supports it (Open file, and choose MDB).

长发绾君心 2024-08-10 08:09:57

Visual Studio 能够通过其数据源功能查看和修改访问数据库。

您可能还想查看 FlySpeed SQL Query,它可以“即时”查询各种数据库

visual studio is able to view and modify access databases via its datasources features.

You might also want to check out FlySpeed SQL Query, which can query all kinds of databases "on the fly"

人疚 2024-08-10 08:09:57

你尝试过openoffice base吗?我在转换 MDB 文件方面运气很好。

Have you tried openoffice base? I've had good luck with that converting MDB files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文