I have a SQL query which returns only one field - an ID of type INT.
And I have to use it as integer in C# code.
Which way is faster and uses less memory?
int Result = int.Parse(Command.ExecuteScalar().ToString());
will work in C#.