• When you execute it from ssms it gives you the account under which the sql service is running.

    SELECT SUSER_SNAME() run from ssms should give you the same result as from your console .net app.

    Igor Micev,My blog: www.igormicev.com