cmd.ExecuteScalar()

ExecuteScalar is empty?

I cant get what you mean. Because ExecuteScalar is only performance the insert, update and delete but not select, so it wont return any records to you.
 
Code:
Dim o As Object = cmd.ExecuteScalar()

If Not o Is Nothing Then
     A value was returned
Else
     No value was returned
End If
 
Back
Top