When I start my PC, Sql Server (SQLExpress) isn´t running, it starts when I try to compile my program in Visual Studios 2010.
Is it possible to start it via C#?
My problem is, that if I use the .exe without Visual Studios, it tells me that Sql Server isn´t running.
I would change the start mode of the Sql Server Windows Service to automatic.
But you can do this in c# too, but i dont recommend it. There are other problems like access security and more.
Sql Server (SQLEXPRESS) is the name of your service.