TSQlQuery and TSQLClientDateSet Problem
Hi,
Im having 2 problems:
1) During a transaction when I try to clear the contents of the SQL in the TSQlQuery I get an Access Violation. My program is something like this:
Connection.StartTrans...
SqlQuery.SQL.Clear;
SqlQuery.SQL.Add('delete from customer')
try
SqlQuery.ExecSQl;
except
something...
end;
SqlQuery.SQL.Clear; ----> Access Violation
SqlQuery.SQL.Add('delete from company')
try
SqlQuery.ExecSQl;
except
something...
end;
Connection.Commit...
The action Violation occurs when I try to clear it the second time during a transaction. Can anyone help????
2) When I try to open a TSqlclientDataset I can only open 36 records otherwise it gives me an error 'Operation Aborted'
My select is something like this:
'select * from customer fetch first 36 rows only'
if the number of rows is 36 or less, it works, for anything over 36 it gives me 'Operation Aborted'.
Any ideas???
Thanks in advance