Copying programs with SQLserver express to a different machine.

Zalek bloom 1 Reputation point
2022-12-13T20:23:27.017+00:00

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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.