How to let DA Schema Modeler remember the parameter type

How to let DA Schema Modeler remember the parameter type

We use da schemas with custom SQLs and some integer parameters

The SQL might look like this
SELECT * FROM [NarcoregUploads]
LEFT JOIN vProductDetailLightML ON nru_prd_primkey=prd_primkey
AND ( (:pnm_frans=-1) OR (pnm_frans=:pnm_frans) )
AND ( (:pnm_nederlands=-1) OR (pnm_nederlands=:pnm_nederlands) )
WHERE
{WHERE}

To test the SQL, create the fields and update the mapping we use the preview button.
However we have to specify the parameter type each time.
This does not get persisted (see screenshot)
How can we persist this?

Hi,

Have you specifed parameter type in Parameters node ?

When I define it there I it appears to persist now.
However, I believe I have done this in the past and the info was forgotten.
We get many errors in the schema modeler, maybe after some errors the data gets wiped.
I’ll keep an eye on it for now

FYI: At the moment I am having this error again.

Does the schema modeler cache DB metadata? How can we refresh?

Hi,

What DB driver (Delphi or .NET) are you using?

mssql.net

Hi,

do you have this error with persistent DB metadata or DB metadata was changed after starting Schema Modeller?

Yes, it caches such info

I am assuming I only have it when I add data to the DB when the modeler is open.
How do I refresh?

Hi,

You can try to use this trick:

  • change something in connection string so it will be invalid
  • it should reset cache for this connection
  • change it back

Thanks, I’ll do that or restart the app