Hi BigMeat,
You don't need to open your connection or even close it.
The Fill method retrieves rows from the data source using the SELECT
statement specified by an associated SelectCommand property.
The connection object associated with the SELECT statement must be valid,
but it does not need to be open. If the connection is closed before Fill
is called, it is opened to retrieve data, then closed. If the connection
is open before Fill is called, it remains open.
Also, I don't think you need any DataView. To get only the first row use this:
dsDetails.Tables("Details").Rows(0).Item("SvpsName")
Something like this:
Dim dsDetails As New DataSet()
Dim Conn As SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings("connBSS"))
Dim objAdapter As SqlDataAdapter = New SqlDataAdapter("SELECT SvpsName, SvpsID FROM Services", Conn)
objAdapter.Fill(dsDetails, "Details")
lblSvpsName.Text = dsDetails.Tables("Details").Rows(0).Item("SvpsName")
lblSvpsID.Text = dsDetails.Tables("Details").Rows(0).Item("SvpsID")