Also I believe your sql statement wont work as you have put quotes round the table name which are not needed:


command.CommandText = "select * from `" & tableName & "`;"

Should be:

...