VB SQL MTS 
Author Message
 VB SQL MTS

A MTS component can call the database as itself or as the person using the
MTS component.

-Brian


Quote:
> Can anyone help.

> We are trying to provide audit logging where any table changed has a write
> happen to our audit table with who changed, when and what table changed

> We are using Com based VB6 which uses Data services which sits in MTS
which
> issues sql to SQL6.5. What we would like to do is set up table based
> triggers
> to do this but as our SQL connection is via MTS we do not know who the
> underlying caller is as MTS does. We have thought around this and found
that
> MTS creating a temporary table with user id in was the only but this did
not
> seem like a robust method and seemed something of a hack which would also
> debar the database being used for writes in any other way apart from via
our
> componenets.

> If anyone could suggest a better approach it would be greatly appreciated

> This is from my home mail, if you want to mail at work:

> TIA

> --
> Regards
> Rob Thomson
> 0181 690 7030



Mon, 22 Jul 2002 03:00:00 GMT  
 VB SQL MTS
If you have MTS pass on the credential of the logged in user to the DB you
will
lose your object pool of connection objects and alot of the advantages that
MTS
gives you.  You also must give direct access to the database to the end user
instead
of direct access to your app and little or no access to the underlying data.


Quote:
> A MTS component can call the database as itself or as the person using the
> MTS component.

> -Brian



> > Can anyone help.

> > We are trying to provide audit logging where any table changed has a
write
> > happen to our audit table with who changed, when and what table changed

> > We are using Com based VB6 which uses Data services which sits in MTS
> which
> > issues sql to SQL6.5. What we would like to do is set up table based
> > triggers
> > to do this but as our SQL connection is via MTS we do not know who the
> > underlying caller is as MTS does. We have thought around this and found
> that
> > MTS creating a temporary table with user id in was the only but this did
> not
> > seem like a robust method and seemed something of a hack which would
also
> > debar the database being used for writes in any other way apart from via
> our
> > componenets.

> > If anyone could suggest a better approach it would be greatly
appreciated

> > This is from my home mail, if you want to mail at work:

> > TIA

> > --
> > Regards
> > Rob Thomson
> > 0181 690 7030



Mon, 22 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB SQL MTS

2. Data not displayed using VB/MTS/SQL

3. VB 6.0, MTS, and SQL 7.0 Book

4. MTS VB and clsutered SQL server 7.0

5. VB n-tier application using MTS in a SQL 7 CLuster - Failover -

6. Illegal operation error in SQL Server with VB component under MTS

7. Difficult VB/MTS/SQL Error

8. Design Question: Call .dll from SQL Server VS MTS

9. Design Question: Calling .dll from SQL Server VS MTS

10. IE/ActiveX Document -->MTS --> SQL

11. vb6 proxy mts sql

12. deadlocked with SQL Server 7 and MTS

 

 
Powered by phpBB® Forum Software