Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:求助,如何获取数据库名称

1楼
lihe60 发表于:2011/5/27 17:07:00

Dim dt As DataTable

Dim cmd As New SQLCommand
cmd.CommandText = "select * from sysdatabases"
dt = cmd.ExecuteReader()

For Each r As DataRow In dt.datarows
output.show(r("name"))
Next

帮我看一下,这个代码有什么问题?

[此贴子已经被作者于2011-5-27 17:07:18编辑过]
2楼
lihe60 发表于:2011/5/27 17:08:00
按说能列出所有数据库的名称,但却不能列出。
3楼
狐狸爸爸 发表于:2011/5/27 17:13:00
这个我不懂
4楼
blackzhu 发表于:2011/5/27 19:58:00
你这个代码有问题的吧!
共4 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.