Support empty table action on MS SQL.

This commit is contained in:
Ansgar Becker
2011-04-04 20:14:22 +00:00
parent a8baf72e77
commit 65e762c720

View File

@@ -3026,7 +3026,10 @@ begin
EnableProgressBar(Objects.Count);
try
for TableOrView in Objects do begin
ActiveConnection.Query('TRUNCATE ' + TableOrView.QuotedName);
case TableOrView.Connection.Parameters.NetTypeGroup of
ngMySQL: TableOrView.Connection.Query('TRUNCATE ' + TableOrView.QuotedName);
ngMSSQL: TableOrView.Connection.Query('DELETE FROM ' + TableOrView.QuotedName);
end;
ProgressBarStatus.StepIt;
end;
actRefresh.Execute;