J
jc
I might be able to do this in t-sql, but is there an easy way to do
this in vb.net/ado.net?
Say my function looks like this:
Public Function GetDataSet(ByVal sql As String) As DataSet
If _connected = True Then
Dim da As New SqlDataAdapter(sql, _cnn)
Dim ds As New DataSet
da.Fill(ds)
Return ds
End If
Return Nothing
End Function
and may return a dataset with 5 rows max. I'd like to take the result
from one of the columns and concatinate them into a single string and
return that.
Thanks for any help!
this in vb.net/ado.net?
Say my function looks like this:
Public Function GetDataSet(ByVal sql As String) As DataSet
If _connected = True Then
Dim da As New SqlDataAdapter(sql, _cnn)
Dim ds As New DataSet
da.Fill(ds)
Return ds
End If
Return Nothing
End Function
and may return a dataset with 5 rows max. I'd like to take the result
from one of the columns and concatinate them into a single string and
return that.
Thanks for any help!