CoachBarker
Well-known member
- Joined
- Jul 26, 2007
- Messages
- 133
- Programming Experience
- 1-3
When I run my app at work it runs fine either on my workstation or on my laptop which is not on the domain, but when I run it at home I get this error message. I am logged into the VPN so I am told I should be able to connect to the database. One question I had was that they have at work one database that is remotely connected to under a heading of remote connections, shouldn't this database be in that category too?

All we are trying to do is to load a list of applications available on certain computers that are in this database to the app I am running. The error message is thrown at da.Fill(ds, "Apps")
We have tested the connection string and it is valid.
Any suggestions
CoachBarker

All we are trying to do is to load a list of applications available on certain computers that are in this database to the app I am running. The error message is thrown at da.Fill(ds, "Apps")
VB.NET:
Sub loadApps()
' When the form loads get all the names of the applications that are installed on the computers
' Declarations of variables
' String to hold the SQL String
' A new DataSet
' A new SqlDataAdapter passing in the sqlString and database connection
Dim strSQL As String = "SELECT * FROM Applications ORDER By AppName"
Dim ds As New DataSet
Dim da As New SqlDataAdapter(strSQL, myConn)
Try
' fill the dataset
da.Fill(ds, "Apps")
' loop until all apps are returned
If ds.Tables("Apps").Rows.Count > 0 Then
cblApplications.DataSource = ds.Tables("Apps")
cblApplications.DisplayMember = "AppName"
cblApplications.ValueMember = "AppID"
End If
Catch ex As Exception
MsgBox("Error" & ex.ToString)
End Try
End Sub
We have tested the connection string and it is valid.
Any suggestions
CoachBarker