Locked out of Database

I inherited a program with many databases and have just found that one of the databases has a hidden design, but the template is corrupt. The template shows that it has no forms or views. I can’t get any information off of the backup tapes since we don’t have tapes that go back in time far enough to get a good copy. Does anyone have any suggestions as to how I could access the design of my database? Thanks.

Subject: Locked out of Database

Make a copy of the database to your local machine, selecting only the design?

Just a thought.

Gregg

Subject: RE: Locked out of Database

You can also use a hex editor to clear the “hide design” flag – but in both cases, you won’t be able to access any LotusScript source code, since only the compiled LS is saved to the database when the design is hidden.

Subject: RE: Locked out of Database

With the Hex editor

To get into the hidden design of a notes database follow the instructions below:

                    1. Make a local copy of the database ( so that you have a backup on the server in case you stuff it up)



                    2. Ensure you have manager or designer rights.



                    3. Open up the .nsf file in a hexadecimal editor (hexworks is a good one)



                    4. Change address 000000BC from the hexadecimal code 20 to 00.



                    5. save the .nsf file (this is where hexworks is good because it allows you to save a backup file)



                    6. Have a look at it in Notes - the design should be revealed. 

For an API, search for

REPLFLG_HIDDEN_DESIGN and

Declare Function W32NSFDbReplicaInfoGet Lib “nnotes” Alias “NSFDbReplicaInfoGet” ( _

Byval hDb As Long, _

ReplicationInfo As DBREPLICAINFO _

) As Integer

Declare Function W32NSFDbReplicaInfoSet Lib “nnotes” Alias “NSFDbReplicaInfoSet” ( _

Byval hDb As Long, _

ReplicationInfo As DBREPLICAINFO _

) As Integer

JYR

Subject: RE: Locked out of Database

This only works if the design is not correctly hidden. See this: