There are spid function in sql server. Is it possible to get value of that session as well as other values like loginname with LINQ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should work (comes from http://msdn.microsoft.com/en-us/library/ms189535.aspx)
Something along the lines of this should work with linq, provided you have the proper object setup to take the incoming data (this is not exact as I am not that familiar with SPID and have not tested this)