0

The program I am coding must be able to work on every pc. It is a form application. How can I get the username info of any pc as a parameter for my connection string?

4

1 に答える 1

2

From myapplicaiton.exe.config:

connectionString="Data Source=myserver;Initial Catalog=myDB;Persist Security Info=False;User ID=USER_NAME;Password=USER_PASS;"
于 2012-05-26T18:30:59.313 に答える