To reproduce:
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.GetDatabase(“server”, “”, False)
I expected db to be Nothing, but it’s not. I tested in 8.5.1, 8.5 and 7.0.3 and it behaves the same in all three. Is this really working as designed?
Subject: I think it’s working as intended
By default, the getDatabase method will create a new database if one does not exist at the server and database path specified. It doesn’t “fail”, because it creates the database, and the createOnFail argument is rendered moot.
A fail condition would be raised if you did not have access to the database specified - but since there was no database at the server and path you specified, it simply created one. A fail condition would also be raised if you did not have the rights to create a database on that server.