Hello @ravi kumar
See the following for working through installing SQL-Server Express edition. In regards to the connection string, remove LENVO and use (all code that follows is in C#)
connectionString="Data Source=.\SQLEXPRESS;
Then for user id and password, if you must encrypt both and used code as found here to encrypt/decrypt. Even better is to setup windows authentication so there is no need for user id and password. See the following for how to create a user with password.
Also, an alternate for .NET Core Windows Forms is to use appsettings.json as described here. This article describes how to using Entity Framework while the same will work for non entity framework.
Create a private string variable e.g. private static string _connectionString then get the connection string
_connectionString = Helper.GetConnectionStringSecure();
appsettings.json would use the following (in this case for a user created as per above so no user id or password is needed)
{
"database": {
"DatabaseServer": ".\\SQLEXPRESS",
"Catalog": "SQCData",
"IntegratedSecurity": "true"
}
}
VB.NET Code
Just created a simple code sample that uses the C# library mentioned above