Hello,
i have two pc's. One having the SQL Server 2008 and the database and the other pc at a different location that has the source code. Now i wrote a code :
Imports System.Data.Sql
Imports System.Data.SqlClient
Public Class Form1
Dim mycon As SqlConnection
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
mycon = New SqlConnection("Data Source=ipaddress,port;Initial Catalog=ClassManagement;Integrated Security=SSPI;User ID=infotronics;Password=ASD789456;")
mycon.Open()
MsgBox("OPEN")
End Sub
End Class
The following code shows an error when debugged.
'Login ...
Go to the complete details ...