Can you show a coding example that has the "Using" statement with a scalar query?
I could not find any sample coding for this by searching yet.
Can you show a coding example that has the "Using" statement with a scalar query?
I could not find any sample coding for this by searching yet.
Here's the example from the MSDN page on the ExecuteScalar method:
Heres the link:
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executescalar.aspx#Y374