Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C#:级联组合框
我有加载三个服务器名称的组合框。我想根据用户在组合框中选择的服务器名称来检索每台服务器上的驱动器信息。我有另一个组合框,应该用每台服务器上的驱动器填充。
知道我怎么能做到这一点吗?
我正在使用连接字符串连接到服务器:
string ConnectionString = "data source = ServerName;Integrated Security=True"
您的连接字符串缺少数据库名称、用户 ID 和密码。
例子:
string ConnectionString = "data source = ServerName;Initial Catalog=mydatabase;Integrated Security=True;User Id=myUsername;Password=myPassword;"