cmd.CommandText = "DELETE * FROM dbo.DisplayData"
cmd.ExecuteNonQuery()
I have the following delete statement at the moment, it's throwing an error at me when it's executed "Incorrect syntax near '*'".
What I'm trying to do is delete all the rows in the DisplayData table then I insert new data, as far as I was aware this was the correct syntax for a SQL delete all statement?
I've looked around online and can't find anything that says my syntax is incorrect. And I can't find a solution.
Thanks in advance.