Hi, I have visual basic team 2005 beta that come with sql server express,
and i am trying to connect to a database on my local computer.
And i get this message "Failed to generate a user instance of SQL Server
due to a failure instarting the process for the user instance. The connection will be closed". If u ever heard of the Northwind database it is the one i am trying to
use I don't know much about how to configure server, but i am running this on
Window XP Pro and i am using a a user account with administrator privilages.
I even tried to create a new database and i get the same message.

Failed to generate a user instance of SQL Server
Wreckage8
Mikee21
Bogdan Grigorescu
I'll give the userinstance setting a try and let you know what I find out...
Thanks!
Tyler
adsolo
TheLastVampire
TianYu
SQL server 2005 express disables remote connections. see http://codebetter.com/blogs/sahil.malik/archive/2005/11/5.aspx
Farzin Tarat
JYanez
Changing the setting to false was the trick! (it was set to true in Machine.config)
Appreciate your help!
NUCLEAR-WAR
I understand that the issue is Sql Express is attempting to create a database in the App_Data directory, and that it cannot for security reasons.
I have given full rights for the directory to the Network Services, ASP.Net and IUSR accounts, but to no avail.
The error message indicates that it may be due to the Sql User permissions:
the logged-in user needs the dbcreator privilege in the appropriate SQL Server Express instance.
However there is no way (at least that I can find) to manage user security in SQL Express. I've installed the Express Manager (XM) but it doesn't have any security editing capabilities.
I cannot manage the instance using Enterprise Manager, and I cannot install SQL Server 2005 (believe me, I've tried) to use Sql Server Mansagement Studio.
I'm currently working on a review of the 2.0 Framework and I have a presentation to Management next week, so if anyone can shed some light on this it would be greatly appreciated.
Thanks,
Tyler