I will add, that i also think that querying objprops33 (account/user table) for max(lastlogin) date might also work. i found one store that has two cm databases both with the same cmstoreversion value. but one has a lastlogin date of several years ago and the other had current dates.
Original Message:
Sent: Tue April 29, 2025 06:42 PM
From: TREVOR COMEAU
Subject: MS SQL - How to find the most current content store?
Hi Brenda,
Look in the CMSYSPROPS table for the CMStoreVersion.
------------------------------
TREVOR COMEAU
Original Message:
Sent: Mon April 28, 2025 10:05 AM
From: brenda grossnickle
Subject: MS SQL - How to find the most current content store?
Still looking for a Cognos content store table perhaps that has the cognos version in it? Or as mentioned above the content store that has the most recent created row in cmobjects? any other suggestions?
------------------------------
brenda grossnickle
BI Programmer Analyst
FIS
Original Message:
Sent: Wed February 12, 2025 04:42 PM
From: brenda grossnickle
Subject: MS SQL - How to find the most current content store?
Re: MS SQL - How to find the most current content store?
I need a way in MS SQL tsql code to find the most current cognos content store. There can be several content stores. Only one is current and the other's are from previous versions of Cognos, basically archives. We have many customers and their content stores are not always named consistently.
Thinking that I could query each database that has table CMOBJECTS and get the MAX(Created) date from each. The database that has the most recent date would be the current content store.
Any thoughts or suggestions?
------------------------------
brenda grossnickle
BI Programmer Analyst
FIS
------------------------------