I have a problem with the value returned from SqlCommand
, I have this code:
string sqlSelect = "Select TOP 1 Quotation.SentToSupp as SentToSupp FROM Quotation JOIN Notifications ON Quotation.QuotationId = QuotationID ";
SqlCommand Comm = new SqlCommand(sqlSelect, this.Connection);
sqlSelect
query selects the first DateTime
value. When I call to SqlCommand
I want to get this value (just one value). I add the query and my connection fine.
But I don't know how to get my DateTime
value... Must to use something like ExecuteReader
?
Thank you in advance!!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…