我有这个代码,它从datareader返回数据。但查询可能是动态的,它可能会发送3或4甚至5列。我如何捕获它,因为我想从返回的行/列生成HTML表
Dim _ExecutionResultsReader As SqlDataReader
_ExecutionResultsReader = _DMTSQLCommand.ExecuteReader()
While _ExecutionResultsReader.Read()
emailBody = emailBody + _ExecutionResultsReader(0).ToString()
emailBody = emailBody + "<br>"
End While
此致