如何列出sdf数据库的所有表? [英] how to list all the tables of a sdf database?

查看:87
本文介绍了如何列出sdf数据库的所有表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在列表框中列出sdf数据库的所有表。



我该怎么办?

i知道如何查看每个表的数据,但我不能列出该特定数据库的所有表。

i want to list all the tables of a sdf database in a listbox.

how can i do it?
i know how to view the data per table but i cannot list all the tables of that particular database.

推荐答案

将连接转换为System.Data.Common.DbConnection并使用 DbConnection.GetSchema(String)

[ ^ ]
Cast the connect to System.Data.Common.DbConnection and use DbConnection.GetSchema(String)
[^]


这篇关于如何列出sdf数据库的所有表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆