SQL Share
writing whatever learning...
Monday, October 11, 2010
TSQL Currently logged windows user name
SYSTEM_USER
Example:
DECLARE @sys_usr char(30)
SET @sys_usr = SYSTEM_USER
SELECT 'The current system user is: '+ @sys_usr
GO
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2011
(1)
►
November
(1)
▼
2010
(39)
▼
October
(2)
TSQL Currently logged windows user name
Your Current Security Settings Do Not Allow This F...
►
September
(35)
►
August
(2)
►
2009
(14)
►
September
(1)
►
June
(1)
►
April
(11)
►
January
(1)
►
2008
(17)
►
October
(11)
►
September
(1)
►
August
(3)
►
July
(2)
In case you wanna know about me..
SQL Learner
I am nothing till date...but its not gonna be like this for long..
View my complete profile
No comments:
Post a Comment