简体   繁体   English

如何使用OLEDB或ADO连接获取Access DB的“扩展属性”

[英]How to get “extended properties” of Access DB Using OLEDB or ADO connection

I am trying to access MS-Access DB extended properties like Author,Owner, Last Modified Date, Last Accessed Date etc. using vb.net. 我正在尝试使用vb.net访问MS-Access DB扩展属性,例如Author,Owner,Last Modified Date,Last Accessed Date等。

Please help me on this issue... 请帮我解决这个问题...

You can access/create/modify different types of properties. 您可以访问/创建/修改不同类型的属性。

at the database level 在数据库级别

  1. Some of them are specific to the Access database object / Access mdb file and can be managed through JET engine only / DAO database object. 其中一些特定于Access数据库对象/ Access mdb文件,并且可以通过仅JET引擎/ DAO数据库对象进行管理。 Please see the "createProperty" method in VBA/Access Help. 请参阅VBA /访问帮助中的“ createProperty”方法。
  2. Some properties are available at the database level through the ADOX object, and can be accessed through an ADO connection, as long as the connection provider supplies these properties: dateModified and dateCreated should then be available at the table\\view\\proc level. 只要连接提供程序提供了以下属性,某些属性就可以通过ADOX对象在数据库级别使用,并且可以通过ADO连接进行访问:dateModified和dateCreated然后应该在table \\ view \\ proc级别可用。
  3. When manipulating DAO recordsets (not ADO ones), some extra properties are available at the recordset level, like "lastUpdated" or "lastModified". 在处理DAO记录集(而不是ADO记录集)时,记录集级别提供了一些额外的属性,例如“ lastUpdated”或“ lastModified”。

At the file level 在文件级别

  1. Some of them are specific to the fileSystem object, available with VB. 其中一些特定于VB附带的fileSystem对象。 They are available at the file level only 它们仅在文件级别可用
  2. You can manage\\define extended properties at the file\\document level through the DSOfile object (please google for more details). 您可以通过DSOfile对象在文件\\文档级别管理\\定义扩展属性(请使用google获取更多详细信息)。 Such object will allow you to add as many properties as needed such as "Title", 'Author", "Subject" , etc. 这样的对象将允许您根据需要添加尽可能多的属性,例如“ Title”,“ Author”,“ Subject”等。

So, depending on the kind of property you need to access, these might not be available through an ADO connection. 因此,根据您需要访问的属性的类型,可能无法通过ADO连接使用这些属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用ADO.NET/OLEDB获取Jet用户花名册 - Get the Jet User Roster using ADO.NET/OLEDB 我如何使用 OLEDB 为 Access DB 加速此 SQL 查询 - How do i speed up this SQL query for an Access DB Using OLEDB 使用 ADO ODBC 上传到服务器时,在 VB.NET WEB 应用程序中打开与 MS Access DB 的连接时出错 - Error Opening Connection to MS Access DB in VB.NET WEB APPLICATION when uploaded to server using ADO ODBC 如何在oledb中建立连接字符串 - How to build a connection string in oledb 使用ADO.net(OLEDB)导入UTF-8 CSV文件 - Import UTF-8 CSV FILES by using ADO.net(OLEDB) 请帮助我使用oledb连接更新Vb.net中访问文件名“ Data.accdb”的记录 - Please help me update records of access filenames “Data.accdb”in Vb.net using oledb connection OLEDB如何在单个SQL语句中访问2个数据库(表名称,数据库名称相同) - How can I access 2 databases in single SQL statement (table names, DB names the same) OLEDB 有没有办法使用 OLEDB 连接锁定记录或表? - Is there a way to lock a record or table using an OLEDB connection? 无法使用Access OleDB填充数据集 - Not able to Fill Dataset using Access OleDB 如何在 VisualBasic 中使用 OLEDB 连接 SELECT 并存储具有相同 ID 的数据库的多行 - How do I SELECT and store multiple rows of a database with the same ID using OLEDB Connection in VisualBasic
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM