if the server itself is accessible, there should be RDBMS specific function
to determine the availability of a given DB in the server.


On Wed, Feb 4, 2009 at 10:57 AM, Dotan N. <[email protected]> wrote:

> i was thinking he was asking if a DB exists in a server.. because he was
> referring to it as a DB and not sql server
>
>
>
> On Wed, Feb 4, 2009 at 10:56 AM, Sidar Ok <[email protected]> wrote:
>
>> Technically, there is no way of ensuring the db is down or when you are
>> just a client of it.
>>
>> The only thing you can ensure is that you can not access it successfully.
>> It may be the network is down, request timed out, service is overloaded, or
>> tons of other things can happen in the universe.
>>
>> You already get an exception, and that should usually be enough.
>>
>> On Wed, Feb 4, 2009 at 9:36 AM, Dotan N. <[email protected]> wrote:
>>
>>> cant this can be an ambiguous exception?
>>>
>>> On Wed, Feb 4, 2009 at 10:30 AM, Ayende Rahien <[email protected]>wrote:
>>>
>>>> that is what you get
>>>>
>>>>
>>>> On Wed, Feb 4, 2009 at 10:27 AM, Kris-I <[email protected]> wrote:
>>>>
>>>>> Sure, but I don't know NH very well than there is may be a something
>>>>> implemented ..
>>>>>
>>>>> That's the point, I don't want a retry, I just want to do a get and a
>>>>> fast "answer" (or exception)
>>>>>
>>>>>
>>>>> NH is not magical.  It's an abstraction on top of ADO.NET     same old
>>>>>> IDbConnection, IDbCommand and IDataReader.
>>>>>> no DB => IDbConnection.Open() will fail => exception.
>>>>>> you can add retry mechanism yourself, but that's your business
>>>>>> concern, to the framework's
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Sidar Ok
>> http://www.sidarok.com
>>
>>
>>
>
> >
>


-- 
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http://www.musicglue.com
http://www.castleproject.org
http://www.gotfriends.co.il

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to