I have created ASP.NET web forms for editing data and the underlying database tables have associated audit tables with the user name, date, and changed data that are filled using triggers. The SQL Server database is on a different server than the web server. The requirement is that the individual user names be logged in the audit tables. The only way I found to do this is the following: • SQL Connection string specifies Integrated Security, and • IIS Authentication specifies ASP.NET Impersonation and Basic Authentication. In order to use the application, a user enters their windows credentials to log on to the web server and to access the underlying SQL Server database and must be part of a group that has read/write/execute stored procedure permissions. Is this the only way to accomplish this without using Forms Authentication and an associated 'Users' table? For an internal web site, is this considered secure enough?
相关问题
- sql execution latency when assign to a variable
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- Warning : HTML 1300 Navigation occured?
- What is the best way to create a lock from a web a
If you want to use Forms Authentication, you'll need to use Impersonation.
Example table:
This requires some help from your database connection pool.
When you get your connection from the pool, run this:
Then run your normal SQL queries that you were planning on running:
When you release your connection back to the pool run this:
When you look at table
foo
, you should see this: