Unable to connect to Database

Post Reply
par3
Posts: 82
Joined: Tue Sep 09, 2008 7:05 am

Unable to connect to Database

Post by par3 »

Hello Everyone,

I would like to know if anyone knows about a TI Prolog command that I can use to test if my ODBC Connection works before I start running the Process. The problem is that I clear out all my data in the Prolog section and then when the process continues it sometimes happen that the process was not able to connect to the ODBC datasource.

This leaves me with cubes with no data in and very frustrated clients!!

Thank you!
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Unable to connect to Database

Post by jim wood »

I guess you could always set the odbc as the datasource in the front and add a very simple select * from a say a small table. It's a prolog test but it should test your odbc connection.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Unable to connect to Database

Post by Alan Kirk »

par3 wrote: I would like to know if anyone knows about a TI Prolog command that I can use to test if my ODBC Connection works before I start running the Process. The problem is that I clear out all my data in the Prolog section and then when the process continues it sometimes happen that the process was not able to connect to the ODBC datasource.

This leaves me with cubes with no data in and very frustrated clients!!
I use a pair of processes. (Though with the execute process command in version 9 I could get away with using just one plus some parameters, but that's neither here nor there.)

The first process, which runs a very simple and fast scalar query, sets a parameter in our chore control cube to "N" in its Prolog. The Data tab, which will only be executed if that value is returned, contains a CellPutS statement which sets the control cube value to "Y".

The second process, which does the actual work, checks the control cube and will only execute if the value is Y, otherwise it just quits.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply