public static bool TruncateTable(string dbAlias, string tableName) { string sqlStatement = string.Format(\"TRUNCATE TABLE {0}\", tableName); return ExecuteNo
Have a look at this link
Does this code prevent SQL injection?
Remove the unwanted from the tableName string.
I do not think you can use param query for a table name.