Page 1 of 1

CreateProcCall between SDAC 3.70 and 6.1.5

Posted: Thu 12 Apr 2012 09:21
by Papy214
Hi,

I'm working on delphi project from 2007 to XE2.
The actual source code use 3.70 SDAC.
The new used version in XE2 is 6.1.5.

In the original source code, I find the function:

Code: Select all

  function CreateProcCall(Connection: TOLEDBConnection; const OverrideParamDescs: boolean; ParamDescs: TParamDescs; const Name: string; const WideStrings: boolean): string;

in OLEDBAccess.pas.

and

Code: Select all

function CreateProcCall(Connection: TMSConnection; Params: TMSParams; const Name: string): string;
in MsAccess.pas

In the new version, I don't find these functions.

How to replace this function call in code please ?

Thanks for your help !

Papy !

Posted: Thu 12 Apr 2012 13:14
by AndreyZ
Hello,

You can use the TCustomMSDataSet.CreateProcCall method (the MSAccess unit). The TCustomMSDataSet.CreateProcCall method takes only one parameter - the name of a stored procedure. Connection is taken from the TCustomMSDataSet.Connection property, that is why there is no Connection parameter. Parameters of the stored procedure are returned to the TCustomMSDataSet.Params property, that is why there is no Params parameter. You shouldn't use the CreateProcCall method from the OLEDBAccess unit because it is internal functionality, you should use the TCustomMSDataSet.CreateProcCall method instead.

Posted: Thu 12 Apr 2012 14:54
by Papy214
Ok, I have found TCustomMSDataSet.CreateProcCall !
thants a lot !

Is there a document migration to avoid wasting time in search next time please ?

Posted: Fri 13 Apr 2012 06:10
by AndreyZ
You can find description of behaviour changes in the "Compatibility with Previous Versions" article of the SDAC documentation. We don't document SDAC internal functionality and we don't have documentation that describes internal changes between SDAC versions. But we are ready to answer all your questions concerning particular problems that you can face during migration process.

Posted: Fri 13 Apr 2012 15:39
by Papy214
Ok, thanks a lot !

Posted: Tue 17 Apr 2012 06:52
by AndreyZ
Feel free to contact us if you have any further questions about SDAC.