Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C Sharp
How to check database status
How to check database status
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
pkm377
New Member
Join Date:
May 2010
Posts:
2
#1
How to check database status
May 11 '10, 07:02 AM
Before connecting to Oracle Database using c#, how can we check wheather the database is up and running?
Dheeraj Joshi
Recognized Expert
Top Contributor
Join Date:
Jul 2009
Posts:
1129
#2
May 11 '10, 07:48 AM
If you know the ip/port where the db is running. You can try to connect to it. If it fails you can catch an exception.
Regards
Dheeraj Joshi
Comment
Post
Cancel
Curtis Rutland
Recognized Expert
Specialist
Join Date:
Apr 2008
Posts:
3264
#3
May 12 '10, 02:13 PM
I would suggest wrapping your open and query statements in a try/catch expression. Based on the exception, you will know the status.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment