Has anyone tried to put a data refresh timestamp on their MSTR web pages, so that users know when the last time the database was loaded? I'm trying to insert a database call into the genericheader.asp page and placing the max(date_id) on the web page. I've been able to insert this field into a report, but we'd like to have it show under the company logo at login, so that folks don't have to execute a report to see this.
Here's the code I've added just past where you customize the logo in genericheader.asp (about 35 or so lines down):
dim oConn
set oConn=Server.CreateObject("ADODB.Connection"
oConn.open "DSN=min2"
sqltext = "select max(date_id) as mydate from load_check where load_flag =6"
oRS.Open sqltext, oConn
Response.Write oRS.field("mydate"
======
The code seems to compile okay, but doesn't return data. The System DSN name is "min2" on the web server machine. I'm using the same DNS that Intelligence Server uses to connect to the warehouse, using the MicroStrategy Oracle driver. Must I use Oracle's driver, instead? Or is there a better way to put this refresh timestamp onto the web pages?
I would imagine that a data refresh timestamp is a common request for users. I appreciate any insight you might have.
Thanks,
Dennis
Here's the code I've added just past where you customize the logo in genericheader.asp (about 35 or so lines down):
dim oConn
set oConn=Server.CreateObject("ADODB.Connection"
oConn.open "DSN=min2"
sqltext = "select max(date_id) as mydate from load_check where load_flag =6"
oRS.Open sqltext, oConn
Response.Write oRS.field("mydate"
======
The code seems to compile okay, but doesn't return data. The System DSN name is "min2" on the web server machine. I'm using the same DNS that Intelligence Server uses to connect to the warehouse, using the MicroStrategy Oracle driver. Must I use Oracle's driver, instead? Or is there a better way to put this refresh timestamp onto the web pages?
I would imagine that a data refresh timestamp is a common request for users. I appreciate any insight you might have.
Thanks,
Dennis