Copying programs with SQLserver express to a different machine.
Few years ago I wrote few programs which are using SQL Express database, now I want to export it to a different PC – what is the correct way?
I did by copying all program folders to a new PC and when I try to run it on a new PC I am getting:
System.Data.SqlClient.SqlException (0x80131904): Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
The userid on the new PC is the same, the password is different (Win11 forced me to use Microsoft account password) and the prefix is different – the old one was MSI\ the new one is LG.
So what is the correct way?
Thanks
zb