public static bool TruncateTable(string dbAlias, string tableName) { string sqlStatement = string.Format(\"TRUNCATE TABLE {0}\", tableName); return ExecuteNo
You could use SQLParameter to pass in tableName value. As far as I know and tested, SQLParameter takes care of all parameter checking and thus disables possibility of injection.