如何使用Vb.Net中的数据库名称填充Combobox [英] How Can I Fill The Combobox With The Database Names In Vb.Net
本文介绍了如何使用Vb.Net中的数据库名称填充Combobox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Dim FromConnectionString As String = " Persist Security Info=False;Integrated Security=false;Initial Catalog=Northwind;server=BTLIMS6"
DatabaseNames = SqlHelper.ExecuteReader(FromConnectionString, CommandType.StoredProcedure, "DatabaseNames_SP")
cmbFromDatabase.Properties.Items.Add(DatabaseNames)
这是我尝试但是无法在sql helper类中打开连接
this is how i tried but the connection cannot be opened in the sql helper class
推荐答案
尝试
使用.NET(VB.NET和C#)获取SQL Server实例和数据库的名称 [ ^ ]
http://www.daniweb.com/web-development/aspnet/threads/282651 /how-to-retrieve-tables-name-from-sql-db-vb-.net [ ^ ]
使用VB.NET获取所有SQL数据库表名称和字段 [ ^ ]
Try
Getting SQL Servers instances and databases’ names with .NET (VB.NET and C#)[^]
http://www.daniweb.com/web-development/aspnet/threads/282651/how-to-retrieve-tables-name-from-sql-db-vb-.net[^]
Get All SQL Database Table Names and Fields Using VB.NET[^]
这篇关于如何使用Vb.Net中的数据库名称填充Combobox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文