ERROR MESSAGE:
Generating user instances in SQL Server is disabled. Use sp_configure ‘user instances enabled’ to generate user instances.
EXPLANATION:
You may experience this error when you try to create a database by using Visual Studio or in another database-related job.
SOLUTION:
Execute the following script from SQL Server Management Studio.
1 2 3 4 | EXEC sp_configure 'user instances enabled', 1; GO RECONFIGURE GO |
This script will enable the “User Instances” option. So you won’t get this error.