当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > 获取Sql服务器列表 C#
使用:
private void button1_Click_1(object sender, System.EventArgs e)
...{
string[] servers = DBGrep.SqlLocator.GetServers();
foreach ( string s in servers )
...{
this.listBox1.Items.Add(s);
}
}
类的代码
using System;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;
namespace DBGrep
...{
public class SqlLocator
评论 (0) All