Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

To get a SYSTEM NAME even using sa or Group login other than Windows Authentication

$
0
0

how to get system name in username when we write a select query Select SUser_sname() in sql server 2008 r2.

Actually , requirement  is  I have to give a sql serevr login to the client.

NOTE : I cant create a Windows Authentication to the client.

So, I create a login Called    Satish with PasswordSatish@123  ,

when client login with Satish , and if he selects a  Select SUser_sname() he will get aSatish as Output , but my requirement is i have to display a client name(System Name).

Very Urgent , Please do me need full.


Viewing all articles
Browse latest Browse all 12963

Trending Articles