Beta 7.4: File.open/close

Other discussions about CSPro
Forum rules
New release: CSPro 8.0
Post Reply
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Beta 7.4: File.open/close

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Beta 7.4: File.open/close

Post 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.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Beta 7.4: File.open/close

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Beta 7.4: File.open/close

Post by josh »

SQLQuery doesn't support the connection string. For encrypted csdb you will have to use a dictionary.
Post Reply