Detecting Tenant Database

27 views
Skip to first unread message

Steven Roberts

unread,
Jun 24, 2015, 10:48:23 AM6/24/15
to rav...@googlegroups.com
Hi,

I'm currently using the following to detect whether a database exists which I got from here https://groups.google.com/forum/#!topic/ravendb/KQ0XMgRM6cU 

var headers = documentStore.DatabaseCommands.Head("Raven/Databases/" + databaseName);

For some reason this is returning null when the database I'm querying for exists.  I'm using version 2.5 build 2956.  Since the headers are null my code to create the database plus plugins seems to corrupt the existing database.

Oren Eini (Ayende Rahien)

unread,
Jun 25, 2015, 6:27:28 AM6/25/15
to ravendb
That should work, yes.

Is it possible that you have spaces or funny characters in the db name?

Are you sure that you are hitting the system database?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steven Roberts

unread,
Jun 25, 2015, 8:56:22 AM6/25/15
to rav...@googlegroups.com
Connecting to the system Database was it of course.  Thank you
Reply all
Reply to author
Forward
0 new messages