I some times get following error when i try to connect to my database


Error title: Cannot connect to MY-PC.


ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)

When I went to Services I realized that SQL Server (MSSQLSERVER) was stopped, where as its Start Up property was set to Automatic.

weird thing is this problem doesn't occur everytime, sometimes it starts automatically- sometimes I have to start it manually

when i checked my Application Event log there was a warning with message: MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system MY-PC.

Why is this happening? and what should i do to solve this problem?

thanks!

link|improve this question
Look into SQL Server logs -- it should tell you more details about what possibly went wrong. – LazyOne Jun 17 '11 at 20:01
feedback

1 Answer

Googling around get this.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.