Dim cnnConnection As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=" & "YOUR-.mdf-FILE-PATH" & ";Integrated Security=True;Database='" & YOUR-DATABASE-NAME & "';Connect Timeout=30") cnnConnection.Open() cnnConnection.Close()
Thank you, Govind
Login to post response