Page 1 of 1

Beta 7.4: File.open/close

Posted: April 13th, 2020, 4:17 pm
by htuser
Dear CSPro Developer Team,
I would like to know if i can use file.open and file.close to open an external CSDB/CSDDBe and query it file without using his associated dictionary as external. When using external dictionaries, we must attach them to the application. Usually when we attach several dictionaries to an application, it became slow.

Thanks in advance,

Re: Beta 7.4: File.open/close

Posted: April 13th, 2020, 5:04 pm
by josh
You don't need to open the file. You can just pass the path to the file as the first argument to sqlquery instead of the dictionary name.

Re: Beta 7.4: File.open/close

Posted: April 13th, 2020, 5:23 pm
by htuser
I think about CSdbe file who require password. So, i think that i must open them before submit them to sqlquery. Can i use connection string with sqlquery:Path_to_csdbe_file/file.csdbe|password="passkey"?

Thanks in advance,

Re: Beta 7.4: File.open/close

Posted: April 14th, 2020, 8:36 am
by josh
SQLQuery doesn't support the connection string. For encrypted csdb you will have to use a dictionary.