Re: audit tables, delete triggers and sql server authentication

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 11/26/04


Date: Fri, 26 Nov 2004 08:02:15 -0500

ecastillo wrote:
?
>
> (i'm hoping a built-in function exists that solves all my problems.)
>
No, there isn't. The SQL Server only knows the name that was used to log
into it. How could it possibly have knowledge of credentials that were not
passed to it? As I see it, you have two options:

1. Use Windows Authentication and deal with te issues that arise from that
choice.
2. Do all data updates via stored procedures to which you pass the users'
Windows credentials.

I prefer option 2, since I prefer to do everything by stored procedure
anyways, meaning tat I started writing the app using them. I can understand
why you would hesitate to use this option if you've already got the app
written using dynamic sql (ugh!).

Bob Barrows

-- 
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM" 


Relevant Pages

  • Re: CommandType = TEXT vs Stored Procedure.
    ... CommandType = Stored Procedure ... The SQL text will be passed to SQL Server, ... I usually use SELECT statements rather than stored procedures. ... only have to change the app, instead of changing both the app and the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Strange delay behaviour
    ... I have used stored procedures for other applications ... but find it tricky when coming back to the app after a period of time to ... > makes debugging extremely difficult (IMO). ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)
  • Re: Parameterized query problem
    ... Did you use SSMS to configure your SQL Server to use mixed ... Did you then create a SQL Login? ... You might consider using stored procedures ... ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)
  • Extreme performance issues (SQL Server 2000/ADO.NET/C#)
    ... This process runs very quickly if run through Query ... same exact stored procedures and views, run in the same exact order, through ... system that runs SQL Server (a 4-cpu Xeons system with 2gigs of physical ... When I execute these steps manually through query analyser,, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Performance issue after coverting from Framework 1.1 to 2.0
    ... I think that I encountered the same problem: A large program with Framework ... the SQL Server for the dev database. ... when you deploy the app on a different machine where the SQL Server is no ... app was fine on the dev machine. ...
    (microsoft.public.dotnet.framework.performance)