dbTalk Databases Forums  

Hooking MS-SQL queries.

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Hooking MS-SQL queries. in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
al_nax
 
Posts: n/a

Default Hooking MS-SQL queries. - 08-23-2004 , 02:10 AM






Hi,

We are extending an existing sales application. Unfortunately the
current deployed system's source code is not available and we have to
make extension as a separate application which will update the backend
database.

The problem is the sales application runs on multiple clients. We want
to make sure that the update queries etc go through our proxy, so that
we can maintain consistency in the database, as our new executable will
also be updating the data in the server.

Is there a way to hook SQL's connection and other queries somehow? Can
we replace the SQL connection driver installed on a machine with ours
which does this?

Thanks.
Ali

Reply With Quote
  #2  
Old   
Steve Thompson
 
Posts: n/a

Default Re: Hooking MS-SQL queries. - 08-25-2004 , 10:02 AM






"al_nax" <ali (AT) uraan (DOT) com> wrote

Quote:
We are extending an existing sales application. Unfortunately the
current deployed system's source code is not available and we have to
make extension as a separate application which will update the backend
database.

The problem is the sales application runs on multiple clients. We want
to make sure that the update queries etc go through our proxy, so that
we can maintain consistency in the database, as our new executable will
also be updating the data in the server.

Is there a way to hook SQL's connection and other queries somehow? Can
we replace the SQL connection driver installed on a machine with ours
which does this?
Consider adding your own custom views and custom stored procedures; for data
retrieval or for data updates to the backend database. Business logic can be
added to the stored procedures (if needed) to update other tables based on
conditional logic.

If the SQL connection is exposed you should be able to re-use that, if not
create your own.

Steve




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.