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 August 30th, 2006, 04:54 AM
NicoCas NicoCas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 4 NicoCas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 50 sec
Reputation Power: 0
Debug access to database

Hi!

I am working with a Point-of-Sale (POS) application that uses Firebird. Unfortunately, the reporting capabilities of this application are very limited so I would like to employ another tool (e.g. Crystal Reports) to create the reports I need. The problem is that I the tables and procedures in the database are not well documented. In order to understand how the databse works, I would like to intercept the SQL queries that my POS application makes to the database. That is, if I use my POS application to register a new client, I would like to know if a certain stored procedured is called and which table(s) are accessed for what. Is this possible?

Thank you very much for your help!

NicoCas

Reply With Quote
  #2  
Old August 30th, 2006, 05:15 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 15 h 7 m 10 sec
Reputation Power: 279
It's generally possible, is it connecting through ODBC driver? Does it use network or local protocol?

Reply With Quote
  #3  
Old August 30th, 2006, 06:14 AM
NicoCas NicoCas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 4 NicoCas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 50 sec
Reputation Power: 0
Hi Pabloj!

The POS application is written in Delphi, but I do not know which driver it uses for the DB access. The database is on a dedicated server that the clients access using the network protocol.

Reply With Quote
  #4  
Old August 30th, 2006, 07:44 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 15 h 7 m 10 sec
Reputation Power: 279
Quote:
Originally Posted by NicoCas
... The database is on a dedicated server that the clients access using the network protocol.
Ok, so in the worst case you can sniff what is sent to the server.

Reply With Quote
  #5  
Old August 30th, 2006, 08:39 AM
NicoCas NicoCas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 4 NicoCas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 50 sec
Reputation Power: 0
Quote:
Originally Posted by pabloj
Ok, so in the worst case you can sniff what is sent to the server.


Yes, I was thinking on that, but i do not know an effective way of doing that. I know of applications such as Ethereal that allow to monitor and inspect the traffic of a LAN. With such an application I could inspect the packages arriving at the server, but I miss an effective way of decoding those packages in terms of SQL queries...

Reply With Quote
  #6  
Old August 30th, 2006, 08:54 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 15 h 7 m 10 sec
Reputation Power: 279
Check my signature for I paper I once put up about securing connections to firebird with stunnel, it showed firebird connection sniffing.

Reply With Quote
  #7  
Old August 31st, 2006, 02:40 AM
NicoCas NicoCas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 4 NicoCas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 50 sec
Reputation Power: 0
Quote:
Originally Posted by pabloj
Check my signature for I paper I once put up about securing connections to firebird with stunnel, it showed firebird connection sniffing.


Thanks! This is what I need. Moreover I found the security part very interesting also.

Just one last thing. In Ethereal I don't see any decoder for Interbase. How did you configure Ethereal to obtain the two screenshots in your paper? Did you just captured traffic on the server's address + firebird's port? Thanks again

Reply With Quote
  #8  
Old August 31st, 2006, 03:05 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 15 h 7 m 10 sec
Reputation Power: 279
Quote:
Originally Posted by NicoCas
... How did you configure Ethereal to obtain the two screenshots in your paper? Did you just captured traffic on the server's address + firebird's port? Thanks again
Yes, I went that way

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Debug access to database


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT