One of my clients uses Platinum for their accounting system. They were running Platinum for DOS, which used Btrieve for the database engine. I built a website that provides reports of their accounting data.
Recently, they decided to upgrade to Platinum 5 for Windows, which uses Pervasive SQL 2000i. The Platinum consultant came in and installed the engine, not realizing what other things it could be affecting. Needless to say, I soon got calls reporting that the web site was not working. I loaded the new ODBC / OLE-DB drivers, but I am still stuck as to where to go next.
The client I work for accounts for hundreds of companies. So, my website uses 'dynamic' ODBC connection strings to connect to the data without having to create ODBC DSNs for every single company.
An example of the ADO connection string that I was using previously goes like this:
ConnStr = "Driver={Pervasive Software ODBC-32};DSN=;
DATAPATH=" & DBPATH & ";UID=;PWD=;
DDFPATH=" & DBPATH & ";BOB=;NullEnabled=no;FeaturesUsed=no;
LoginScript=;AccessFriendly=yes;DateFormat=mdy;
TranslateDLL=;TranslateOption=;"
So, when the site user clicked on a company name, I had in a database the corresponding directory where that company's Platinum data is contained. In the place of the 'DBPATH' variables, would be a path like '\\server\directory\000101'. The only thing that would change in the path would be the final directory name ('000202', '010543', etc.).
So, the final ADO connection string looked like this:
Driver={Pervasive Software ODBC-32};
DSN=;DATAPATH=\\server\directory\000101;UID=;PWD=;
DDFPATH=\\server\directory\000101;BOB=;NullEnabled=no;
FeaturesUsed=no;LoginScript=;AccessFriendly=yes;
DateFormat=mdy;TranslateDLL=;TranslateOption=;
This worked like a charm and has worked as such for over two years now. (Each directory has DDFs in it)
Now, since the engine has been upgraded, I am unable to connect from my website. I have installed the new ODBC / OLE-DB drivers, but cannot figure out where to go from there.
I have researched as much as I could on Pervasive's site and the web looking for help. What I am understanding from Pervasive documentation is that for each database, you have to create a DSN on the server and then create a DSN on the workstation, in order to be able to connect via ODBC.
Now, while the consultant has upgraded the engine, she has not yet touched the client machines. So, their configurations have not changed... They do not have PCC loaded on their machines. No DSNs have been set up on their machines. They do not have new client software. And they are quietly accounting away (in Platinum for DOS).
I need to try to find a way to be able to use dynamic DSNs to connect to the data from my website. I am confident that there is still a way to do it. I just can't find it anywhere. It's probably pretty simple, and I am just overlooking the obvious.
Can anyone out there please point me in the right direction? Any pointers on connecting without creating all these DSNs? Thanks.
Recently, they decided to upgrade to Platinum 5 for Windows, which uses Pervasive SQL 2000i. The Platinum consultant came in and installed the engine, not realizing what other things it could be affecting. Needless to say, I soon got calls reporting that the web site was not working. I loaded the new ODBC / OLE-DB drivers, but I am still stuck as to where to go next.
The client I work for accounts for hundreds of companies. So, my website uses 'dynamic' ODBC connection strings to connect to the data without having to create ODBC DSNs for every single company.
An example of the ADO connection string that I was using previously goes like this:
ConnStr = "Driver={Pervasive Software ODBC-32};DSN=;
DATAPATH=" & DBPATH & ";UID=;PWD=;
DDFPATH=" & DBPATH & ";BOB=;NullEnabled=no;FeaturesUsed=no;
LoginScript=;AccessFriendly=yes;DateFormat=mdy;
TranslateDLL=;TranslateOption=;"
So, when the site user clicked on a company name, I had in a database the corresponding directory where that company's Platinum data is contained. In the place of the 'DBPATH' variables, would be a path like '\\server\directory\000101'. The only thing that would change in the path would be the final directory name ('000202', '010543', etc.).
So, the final ADO connection string looked like this:
Driver={Pervasive Software ODBC-32};
DSN=;DATAPATH=\\server\directory\000101;UID=;PWD=;
DDFPATH=\\server\directory\000101;BOB=;NullEnabled=no;
FeaturesUsed=no;LoginScript=;AccessFriendly=yes;
DateFormat=mdy;TranslateDLL=;TranslateOption=;
This worked like a charm and has worked as such for over two years now. (Each directory has DDFs in it)
Now, since the engine has been upgraded, I am unable to connect from my website. I have installed the new ODBC / OLE-DB drivers, but cannot figure out where to go from there.
I have researched as much as I could on Pervasive's site and the web looking for help. What I am understanding from Pervasive documentation is that for each database, you have to create a DSN on the server and then create a DSN on the workstation, in order to be able to connect via ODBC.
Now, while the consultant has upgraded the engine, she has not yet touched the client machines. So, their configurations have not changed... They do not have PCC loaded on their machines. No DSNs have been set up on their machines. They do not have new client software. And they are quietly accounting away (in Platinum for DOS).
I need to try to find a way to be able to use dynamic DSNs to connect to the data from my website. I am confident that there is still a way to do it. I just can't find it anywhere. It's probably pretty simple, and I am just overlooking the obvious.
Can anyone out there please point me in the right direction? Any pointers on connecting without creating all these DSNs? Thanks.