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?
OD Db connection string
OD Db connection string
Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Re: OD Db connection string
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
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
The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com
Re: OD Db connection string
Thanks
Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA