Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 21st, 2005, 01:32 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
How can I get list of all databases stored on server?

Greetings to all...

I work on project (Visual FoxPro 9.0 + Firebird 1.5.2). Very strange combination, but it was not my decision. Now I have one problem.

I don't know how to get list of all databases, they are stored on server. I don't want to do it via ISQL interactive mode. I have to do it programmaticaly, I need this information in my aplication internal.

Sorry for my english, it's simple and maybe my problem is also very simple, but I'm new in Firebird.

Thanks...

Reply With Quote
  #2  
Old April 21st, 2005, 03:36 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 32 m 11 sec
Reputation Power: 8
There is no way to do that! BTW, why do you need that?
Perhaps you can use this tool: http://www.achim-kalwa.de/fbcc.phtml to help you with that task.

Again, there is no mechanism to provide you with the list of all databases on server. Firebird doesn't know anything about that, and it is right decision, IMHO.

--
Best regards,
Fikret Hasovic http://fikret.fbtalk.net
USAID TAMP Senior Programmer
* FirebirdSQL Foundation member.
- Join today at http://www.firebirdsql.org/ff/foundation
* JEDI VCS contributor
http://jedivcs.sourceforge.net/
* Firebird and Fyracle news
http://www.fyracle.org/shownews.php
Comments on this post
smrtelnik agrees!

Reply With Quote
  #3  
Old April 21st, 2005, 03:53 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
Thank you for your answer.

I want that users of my application can see list of databases. For example, when the program starts, they choose which database they want to use. Each database is another company, for example. So, this is the reason.

MSSQL has a system stored procedure for this feature...

Thanks again.

Reply With Quote
  #4  
Old April 21st, 2005, 06:59 AM
ipaw ipaw is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: NS Canada
Posts: 20 ipaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 35 m 37 sec
Reputation Power: 0
Why not have a central db which stores the list of available databases, their location, a more descriptive name and login information?

Reply With Quote
  #5  
Old April 21st, 2005, 07:22 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
Quote:
Originally Posted by ipaw
Why not have a central db which stores the list of available databases, their location, a more descriptive name and login information?


I thought about that solution. It's good. But I was accustomed to this ability from MSSQL.
Thanks.

Reply With Quote
  #6  
Old April 28th, 2005, 02:40 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 32 m 11 sec
Reputation Power: 8
I have found this tool:

http://www.tectsoft.net/Products/IBAM.aspx

Interbase Alias Manager (IBam) is an Open Source Delphi 5 project which centrally manages Interbase and Firebird connection strings. (IBam is subject to the MOZILLA PUBLIC LICENSE ).


--
Best regards,
Fikret Hasovic http://fikret.fbtalk.net
USAID TAMP Senior Programmer
* FirebirdSQL Foundation member.
- Join today at http://www.firebirdsql.org/ff/foundation
* JEDI VCS contributor
http://jedivcs.sourceforge.net/
* Firebird and Fyracle news
http://www.fyracle.org

Reply With Quote
  #7  
Old April 28th, 2005, 07:10 AM
SilverDB's Avatar
SilverDB SilverDB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Romania
Posts: 173 SilverDB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 45 m 53 sec
Reputation Power: 5
Send a message via Yahoo to SilverDB
You can make a server application that runs on the firebird server and comunicate with it and ask for a list of databases ... but hey ... what's the point ?
__________________
If i've been helpful, please add to my reputation.
My unfinished site: http://www.dever.ro

Reply With Quote
  #8  
Old April 29th, 2005, 12:54 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
Quote:
Originally Posted by SilverDB
You can make a server application that runs on the firebird server and comunicate with it and ask for a list of databases ... but hey ... what's the point ?


Ok, I wrote I used this ability in MSSQL. Now I know, Firebird don't support this. That's all. I have to solve this another way. But you wrote, I can get list ofa databases. How???
Thanks...

Reply With Quote
  #9  
Old May 5th, 2005, 01:07 AM
SilverDB's Avatar
SilverDB SilverDB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Romania
Posts: 173 SilverDB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 45 m 53 sec
Reputation Power: 5
Send a message via Yahoo to SilverDB
Lightbulb

Well basically you have an app (let's name it server_app that runs on the FireBird server) and one (or more, client_app).
The client_app makes a request to the server_app for the databases, and the server_app checks the folder(s) where you store the databases for .fdb files and returns a list of them. (in theory that looks easy but it takes time to code)

Another way would be to have a list of databases stored on the server and sincronize it with the clients list (multiple ways to do that and much easier than the first, you can also encrypt the contents so that anyone looking wouldn't see the real text).

Good luck & please share your final solution with us

Reply With Quote
  #10  
Old May 5th, 2005, 02:41 AM
badukist badukist is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 62 badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 3 m 18 sec
Reputation Power: 7
Send a message via Yahoo to badukist
Quote:
Originally Posted by smrtelnik
Greetings to all...

I work on project (Visual FoxPro 9.0 + Firebird 1.5.2). Very strange combination, but it was not my decision. Now I have one problem.

I don't know how to get list of all databases, they are stored on server. I don't want to do it via ISQL interactive mode. I have to do it programmaticaly, I need this information in my aplication internal.

Sorry for my english, it's simple and maybe my problem is also very simple, but I'm new in Firebird.

Thanks...


Nope, it is a not strange combination, but I dare to say very powerful . I do it too. Join form different databases, dynamic sorting/indexing at client side, etc.

I suggest you to have a "database of databases" which keeps a list of accessible databases from your app.
I don't see any benefit if some user can see ALL databases. It is a security problem, IMO, if something like this is possible.

You can also try to see if my Firebird API wrapper class is usefull to you. Is posted on UniversalThread download section

Reply With Quote
  #11  
Old May 10th, 2005, 03:28 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
I'm glad I found someone who used this combination (VFP+Firebird).
I want that users of my aplication can see a list of all accessible databases. So, it is not ALL DATABASES, I wrote it wrong. "Database of databases" is a good solution. I made it this way.
I tried your API wrapper class. It is very useful.
Thank you.

Reply With Quote
  #12  
Old March 8th, 2006, 05:46 AM
skysurfer skysurfer is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 2 skysurfer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 8 sec
Reputation Power: 0
Quote:
Originally Posted by badukist
Nope, it is a not strange combination, but I dare to say very powerful . I do it too. Join form different databases, dynamic sorting/indexing at client side, etc.

I suggest you to have a "database of databases" which keeps a list of accessible databases from your app.
I don't see any benefit if some user can see ALL databases. It is a security problem, IMO, if something like this is possible.

You can also try to see if my Firebird API wrapper class is usefull to you. Is posted on UniversalThread download section


Hi, I am also a member of the UT. I'm beginning to use Firebird 1.5 with VFP 9 and I guess I'll find some problems, maybe you canhelp me with those as a seasoned VFP/Firebird developer.

Greetings,

Skysurfer

Reply With Quote
  #13  
Old March 9th, 2006, 12:40 AM
badukist badukist is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 62 badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 3 m 18 sec
Reputation Power: 7
Send a message via Yahoo to badukist
Quote:
Originally Posted by skysurfer
Hi, I am also a member of the UT. I'm beginning to use Firebird 1.5 with VFP 9 and I guess I'll find some problems, maybe you canhelp me with those as a seasoned VFP/Firebird developer.

Greetings,

Skysurfer


If I can help, I will.
I visit UT more often, you can post there if you want.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > How can I get list of all databases stored on server?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |