Re: Get Login
- From: "giorgio rancati" <giorgio_No_Spalmer_rancati@xxxxxxxxxx>
- Date: Wed, 25 Jan 2006 18:30:53 +0100
Hi Jose ,
What's your Authentication mode ?
In "Windows Authentication mode" the system_user returns the
DOMAIN\user_login_name.
Sql Server can't know the Windows User name if the Authentication is "SQL
Server Authentication"
--
Giorgio Rancati
[Office Access MVP]
"Jose Perdigao" <JosePerdigao@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel
messaggio news:7947BD5A-9CF6-4093-91A7-FF5DCA221748@xxxxxxxxxxxxxxxx
> Good afternoon
>
> I did the folowinf function:
> ALTER FUNCTION dbo.iLogin ()
> RETURNS varchar(10)
> AS
> BEGIN
> RETURN system_user
> END
>
> The return value is SQL server user name, I mean, if I logg the computer
> with diferent windows user, the result is the same.
>
> I see, system_user is the same SUSER_SNAME(), isn't it?
> I would like a function to get windows login.
> Thanks
>
.
- References:
- Re: Get Login
- From: giorgio rancati
- Re: Get Login
- Prev by Date: Re: calc columns
- Next by Date: Re: calc columns
- Previous by thread: Re: Get Login
- Next by thread: Re: Get Login
- Index(es):
Relevant Pages
|