.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

current logged in user and password using a TSQL

Posted By: Sajid P K     Posted Date: October 12, 2010    Points:2   Category :Sql Server
Dear frnds,





Is there is any way to get current logged in user and password using a TSQL? (SQL MODE)







Regards,

Sajid P K


Responses
Author: Jean Paul             
Posted Date: October 13, 2010     Points: 5   

We can get user name as:
SELECT 'User Name: '+ SYSTEM_USER

But Password.. I am not sure dude whether system will provide that due to security issues :)

Jean Paul http://jeanpaulva.com/
Author: Ramesh P             
Posted Date: October 20, 2010     Points: 5   

To get current logged in user, use the following select statement

SELECT 'User Name: '+ SYSTEM_USER

Before running this query ensure you have a proper services.

Regards,


Ramesh

Author: Ramesh P             
Posted Date: October 20, 2010     Points: 5   

To get current logged in user, use the following select statement

SELECT 'User Name: '+ SYSTEM_USER

Before running this query ensure you have a proper services.

Regards,


Ramesh



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend