I'am working on a SQL engine and to prevent sql injection i have used sql parameters.
But on the other hand I refer the tablename from the methodparameter
it look's like this for a simple example:
public void dosomething(string tablename)
{
string query = "select productname, price from " + tablename;
...
}
Now my question: is this unsecure?