Dec
19
comment Obtaining a unique database identifier for SQL Server 2005 and later
This page (msdn.microsoft.com/en-us/library/ms178575.aspx) clearly says database_guid can be NULL only if "Database is offline, or the database will not start", which I think makes it pretty safe to use it to identify a database uniquely to a application across server instances.
Oct
17
awarded Popular Question
Sep
25
awarded Famous Question
Sep
25
awarded Notable Question
Sep
21
comment Unable to sign up for Azure (or add a subscription)
I understand that @Bruce, but its got to be telephonic support. As I don't have a subscription, I can't reach email support. My experience with telephonic support was not good yesterday, let's see how it goes tomorrow.
Sep
20
asked Unable to sign up for Azure (or add a subscription)
Aug
27
awarded Notable Question
Aug
20
awarded Critic
Aug
15
comment Explain async await again
@Lasse suppose an async method takes 10 secs to complete. So after await, controls returns to calling thread. Now, what if my calling thread is ASP.NET and I choose not to await on async method, instead I allow my Http request to complete. The thread itself goes back to ASP.NET thread pool and when async task completes after 10 secs, thread might either be in pool waiting or assigned to another request. Would it still be chosen to process the remainder of the async method. Second, what if it is already executing another piece of code.Lastly, what if the thread is dead altogether(custom thread)
Aug
15
comment Explain async await again
Hi @Lasse, thanks for the excellent explanation. So my understanding is code till await would be executed in the same thread. When it reaches there and the task is not complete, it gets scheduled on another thread by Task. Then when the other thread indicates the task has completed, the original thread executes the rest of the method after await (please correct if wrong). However I am wondering how the original thread picks up the remaining method. After the control returned to original method, it might have moved on to other code it is executing (and not necessarily awaiting on async method).
Jul
22
awarded Popular Question
Jul
2
awarded Curious
Jun
17
answered Tortoise Git - lost commits after a pull resulted in conflicts
Jun
3
comment Thread Static, ASP.NET and Async handlers
Trying to understand the reflected code also does not help because of the internal (non-documented) classes, factory patterns and under nuisances where you can't always go-back and forth to understand the relationship between classes and work-flow. Though I would like to thank you again, your replies cleared most of the points I had.
Jun
3
comment Thread Static, ASP.NET and Async handlers
With all due respect, I would also like to counter the point of "mentoring site". I tried to research well enough before asking. Sure the question was long, I could have split it to multiple questions, one for each available options. But I believe it was indeed a question and not trying to have someone find answers for me. I could not find direct answers on web to most of the questions raised. And writing test cases to verify some of these points isn't going to work, some of these needed to be confirmed at theoretical level and cannot be captured in test cases.
Jun
3
comment Thread Static, ASP.NET and Async handlers
Hi Stephen, thanks for your helpful pointers. One of the reasons I am not trying to use HttpContext.Current is its not amicable for unit testing. I think I can manage with either of ThreadStatic or Logical call contexts ensuring I clear data from previous requests on each new request.
May
16
revised Thread Static, ASP.NET and Async handlers
Added more questions :)
May
16
comment Tortoise Git - lost commits after a pull resulted in conflicts
It was Tortoise Git...
May
15
asked Thread Static, ASP.NET and Async handlers
May
15
comment Tortoise Git - lost commits after a pull resulted in conflicts
Hi cupcake, if a pull resulted in a conflict, after resolving the conflict; if I were to just execute git merge, would Git merge all the remaining files starting from exactly where Git aborted the merge on conflict?
1 2 3 4 5