0
Is your database up & running because that is a message that you usually recieve if the server isn't up? Also that looks like VB code not C#.
Try this out this is VB:
Private Shared Function sConn(ByVal as String databasemachine) As SqlConnection
Dim strConnection As String
strConnection = "server=servername;Trusted_Connection=true;database=" & databasemachine & ";User ID=user;Password=pw"
Return New SqlConnection(strConnection)
End Function
I hope this works. I used a function instead of a property. This is what I use and it works the only difference is that I don't pass in any parameters.