I have a problem with connecting to a server which is another machine. When I try connecting to my machine with the following code, it works fine:
'connString = "Data Source = .\sqlexpress;" & _ '"Initial Catalog = one;" & _ '"Integrated Security = SSPI" Try conn = New SqlConnection(connString) conn.Open() MessageBox.Show("Connection Successful") Catch ex As Exception MessageBox.Show(ex.Message) End Try But when I try to get connected to another machine where SQL Server 2000 is installed, I get a timeout message. The code is as follows:
connString = "Server = xxx.xxx.xxx.xxx;" & _ "Initial Catalog = one;User Id=xxxx; Password=xxxxx;" & _ "Integrated Security = SSPI" Try conn = New SqlConnection(connString) conn.Open() MessageBox.Show("Connection Successful") Catch ex As Exception MessageBox.Show(ex.Message) End Try Can anyone please help me on this issue?