In stock:
string serverName = "ServerName"; string databaseName = "DatabaseName"; string login = "UserName"; SecureString password; I use the designer
ServerConnection serverConnection = new ServerConnection(connectionString, login, pass);
Tried to combine options for connectionString - and did not understand how to properly. In the example on MSDN, they are simply connected to the server, and I need to write to a specific database. Before that, I simply used
connectionString = "Data Source=" + serverName + ";Initial Catalog=" + databaseName + ";Login=" + login + ";Pass=" + password + ";"; And everything worked. There is a requirement to use SecureString - stupor.