Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 2nd, 2005, 07:18 AM
Registered User
Join Date: Mar 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default UserId/Computer Name

Good morning! I am using DWMX with MS SQL and have created a history table that is populated via a trigger everytime an insert, update, or delete action takes place on a particular table. My problem is trying to capture either the UserId/Computer name of the person performing the action. I've tried "SUSER_SNAME" and "USER", but it only returns the Userid of the person currently logged on - me! Although I'm using session variables in the application, I can't seem to translate those into Userids in SQL - any ideas?

  #2 (permalink)  
Old August 2nd, 2005, 11:47 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Does Request.ServerVariables("Auth_User") in ASP give you what you need? Or maybe one of the other server variables??


Imar Spaanjaars
Everyone is unique, except for me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get my Anonymous username or userID Maxxim ASP.NET 2.0 Professional 7 October 21st, 2007 08:17 AM
Need help linking userID fields RJ2001 SQL Server 2000 0 August 8th, 2007 08:33 PM
Get UserId from ASPNET.db rao965 ASP.NET 2.0 Basics 2 September 27th, 2006 04:18 AM
UserId/Computer Name mrookey SQL Server ASP 1 August 2nd, 2005 07:23 AM
Insert News UserId -1 seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 1 November 14th, 2004 08:57 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.