$ 0 0 Here Mudassar Khan has explained with an example, how to use SqlCommand ExecuteScalar function in C# and VB.Net.