rado
Problem with azure and winforms
using System.Configuration; // Add this at the top of the file
// Replace the SqlConnection declaration
SqlConnection connect = new SqlConnection(ConfigurationManager.ConnectionStrings["InventoConnection"].ConnectionString);
15 replies
Problem with azure and winforms
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="InventoConnection"
connectionString="Data Source=invento.database.windows.net;Initial Catalog=Invento;Persist Security Info=True;User ID=radostin;Password=YourPassword;Encrypt=True;TrustServerCertificate=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration> this is the app config where i am gathering the information
15 replies