title: SQL Server 2008 R2 VB.net Connection
body: <p>Hey all I am trying to connect to my SQL Server that I log into using my windows authentication user name and password. However, when I use that information in the code below it tells me that it can not connect...</p>
  
  <pre><code>    Dim connetionString As String
      Dim cnn As SqlConnection
      connetionString = "Data Source=MSSQLPROD;Initial Catalog=MS435_PROD;User ID=me.here;Password=mypassword;"
      cnn = New SqlConnection(connetionString)
  
      Try
          cnn.Open()
          MsgBox("Connection Open ! ")
          cnn.Close()
      Catch ex As Exception
          MsgBox("Can not open connection ! ")
      End Try
  </code></pre>