2
我有連接字符串需要顯示變量中的連接信息
SqlConnection con = new SqlConnection();
其中con包含來自DLL或app.config的連接字符串信息。
現在我想顯示每個東西在不同的變量。
e.g:
var connectionString = "Data Source=172.16.0.9;Initial Catalog=whiziblesem;UserID=mppuser;Password=mppuser";
預期輸出:
a = server name
b = Database name
c = username
d = password
請接受您的一些過去問題的答案。 – StriplingWarrior
如何接受答案 –
點擊查看答案下方的投票數量。 – RSB