Sqlserver fix

This should fix the AppVeyor builds and leave the postgres/sqlite/mysql builds also passing. Unlike other DB vendors, SQLserver cannot truncate a table that is referenced by foreign keys *ever*. Instead you have to use `DELETE FROM ...` and restart identity columns with `DBCC ...`. However, one can only call `CHECKINDENT` if the table actually has an identity column.