如何得到一个ACCESS数据库的所有表名

|

| 主 题: | |

如何得到一个ACCESS数据库的所有表名.  

---|---|---
作 者: | | aoto888 (asdfasdf)
信 誉 值: | | 100
所属论坛: | | .NET技术 ASP.NET
问题点数: | | 100
回复次数: | | 6
发表时间: | | 2004-11-02 20:35:10
| |
| |

如何得到一个ACCESS数据库的所有表名.???
回复人: saucer(思归) ( ) 信誉:3262004-11-02 22:28:00得分: 0
you can use a query like

SELECT MSysObjects.Name
FROM MSysObjects
WHERE ((Left([name],4)<>"MSys") AND ((MSysObjects.Type)=1))
ORDER BY MSysObjects.Name;


or use OleDbConnection's GetOleDbSchemaTable method, see

How To Retrieve Schema Information by Using GetOleDbSchemaTable and Visual C# .NET
http://support.microsoft.com/kb/309681/EN-US/
Published At
Categories with Web编程
Tagged with
comments powered by Disqus