To get windows login name, you can type this in dos prompt:
echo %username%
To get windows login name in sql, you can type this:
exec master..xp_cmdshell 'echo %USERNAME%'
2009/05/27
Subscribe to:
Post Comments (Atom)
LoveThisSite == true?"stayhere":"getlost"
No comments:
Post a Comment