Page 1 of 1

OD Db connection string

Posted: Thu Dec 07, 2017 2:41 pm
by wjstarck
I need to dynamically collect the OD Database connection string for use with a tableadapter.

Is that stored somewhere in the db (don't think so) or do I have to parse the XML in FreeDentalConfig.xml or is there a more straightforward way?

Re: OD Db connection string

Posted: Thu Dec 07, 2017 3:14 pm
by jsalmon
You should parse the config file because users have the option to use middle tier and other such connections that might not set variables deep down in the connector as you would expect.

If you don't care about supporting any other way of connecting other than a direct database connections then you can get the connection string information straight from the variables / getter methods within DataConnection.cs

Re: OD Db connection string

Posted: Thu Dec 07, 2017 3:30 pm
by wjstarck
Thanks