Connection c = new Connection();
public string checkIfExists(string Name)
{
string sql = "SELECT * FROM users WHERE name = '" + name + "'";
c.Execute(sql);
return "";
}
The c.Execute(sql) is calling a SqlCommand function to execute the sql query.
I want to know how to count the number of rows retrieved by this query.
Ignore the return.