RE: Audit Table

From: Michelle (michelle.vanden_at_eglin.af.mil)
Date: 12/29/03


Date: Mon, 29 Dec 2003 07:14:49 -0800

1). Both IIS and SQL Server if possible. It would be
better if we get the username from IIS and have it
delegated to SQL Server.

2). Basic Authentication w/SSL on IIS on one machine and
windows Authentication w/SSL on another.

>-----Original Message-----
>Hi Michelle,
>
>Thanks for your post. According to your description, I
understand that you
>want to record and return the current login username to
certain table in
>SQL Server, when you performed insert or update action.
If I have
>misunderstood, please feel free to let me know.
>
>Before we go any further, I would like to collect more
information from
>you: 1. Which username do you want to record, the
usernames used to log on
>IIS or SQL Server?
>2. Which authentication do you choose to log on IIS?
>
>So far as I know, if we want to record the usernames used
for SQL Server,
>we can try to use suser_sname() to return the string of
the current login
>identification name
>
>For more information regarding suser_sname function,
please refer to the
>following article on SQL Server Books Online.
>Topic: "SUSER_SNAME"
>
>On the SQL Server side, it seems hard to record the
usernames which are
>used to log on IIS.
>
>Thanks for using MSDN newsgroup.
>
>Regards,
>
>Michael Shao
>Microsoft Online Partner Support
>Get Secure! - www.microsoft.com/security
>This posting is provided "as is" with no warranties and
confers no rights.
>
>
>.
>



Relevant Pages

  • SQL Database Connection Size
    ... I wanna perform query and load the result from SQL Server to Client PC via ... When I input domain username and password, ... Click the Refresh button to try again with different credentials. ... Internet Information Services (IIS) ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: SQL 2000 and IIS.
    ... Trusted Connections in a workgroup environment require that you duplicate ... the username and password on both the IIS and SQL server. ...
    (microsoft.public.sqlserver.security)
  • Re: New to Merge/Replication
    ... ADO.NET 3.0 includes "Synchronization Services" that does not require IIS. ... Hitchhiker's Guide to Visual Studio and SQL Server ... It was my deepest hope that Merge/Replication between SQL Compact Edition and SQL Server 2005 Enterprise Edition would have it's own sync services NOT dependent on IIS. ... You can use merge replication with SQL Server on your main desktop serving as the publisher with SQL Compact on PPC, TabletPC, or other desktops as subscribers, so that would probably be the easiest solution for you. ...
    (microsoft.public.sqlserver.ce)
  • Re: logon failure
    ... MSSQLServer service after you change the username of administrator account. ... username for the SQL Server startup service account or the SQL Server Agent ... Microsoft SQL Server service account on the SQL Server host computer. ...
    (microsoft.public.windows.server.sbs)
  • Interdev not creating project (authenticate failure)
    ... SQL Server Enterprise SP2 ... Username: Administrator ... Password: pwd ...
    (microsoft.public.inetserver.iis.security)