Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Security / October 2005

Tip: Looking for answers? Try searching our database.

How to detect a login under windows security?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nospam@tgylnospam.no - 01 Oct 2005 19:07 GMT
I have a SQL Server 2000 on an intranet with windows security. A stored
procedure is called every time  users add orders into table ORDERS.

How can I detect the login name and domain for the user that adds a new
order? What would the lines of code look like in the stored procedure?

Regards

Tore G.
Mike Epprecht (SQL MVP) - 01 Oct 2005 20:29 GMT
Hi

SELECT SUSER_SNAME()

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

>I have a SQL Server 2000 on an intranet with windows security. A stored
> procedure is called every time  users add orders into table ORDERS.
[quoted text clipped - 5 lines]
>
> Tore G.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.