saeid1389
saeid1389

Reputation: 25

How to get the SQL Server username through a query?

How to get SQL Server username through C# code ?

Upvotes: 0

Views: 1539

Answers (1)

Nick.Mc
Nick.Mc

Reputation: 19184

Try calling SELECT SUSER_SNAME() against your database. Or just get it out of your orginal connection string.

Upvotes: 3

Related Questions