Page 1 of 1

TMSConnection.OpenDataSets does not work with TMSQuery.Debug

Posted: Wed 15 Jun 2016 16:40
by brace
If in a TMSQuery the Debug property is set to true when the dataset is opened with OpenDataSets the query before execution preview window does not appear, while it used to appear in past.

For example check this code:

Code: Select all

  MSQuery1.Debug := True;
  MSQuery1.Close;
if chkUseOpenDatasets.Checked then
begin
  MSConnection1.OpenDatasets([MSQuery1]);
  ShowMessage('The Preview won''t open');
end
else
begin
  MSQuery1.Open;
  ShowMessage('The Preview will open');
end;
Since i am almost 100% sure it was working in past (=opendatasets was triggering the preview) I want to ask whether this is a bug or a new behavior.

Please let me know. Thanks

Re: TMSConnection.OpenDataSets does not work with TMSQuery.Debug

Posted: Thu 16 Jun 2016 09:54
by ViktorV
Thank you for the information. We will change this behavior of SDAC in one of the next builds.

Re: TMSConnection.OpenDataSets does not work with TMSQuery.Debug

Posted: Mon 20 Jun 2016 12:39
by brace
ViktorV wrote:Thank you for the information. We will change this behavior of SDAC in one of the next builds.
Good to know you agree it must be modified, i hope this can be done in the next build.

Re: TMSConnection.OpenDataSets does not work with TMSQuery.Debug

Posted: Tue 25 Apr 2017 06:05
by azyk
This change was included in the SDAC 7.3.14 .