Click here to Skip to main content
15,888,233 members
Home / Discussions / Database
   

Database

 
QuestionSQL Linq, IQueryable, ToList, just get 1 result Pin
jkirkerx3-Dec-15 11:43
professionaljkirkerx3-Dec-15 11:43 
AnswerRe: SQL Linq, IQueryable, ToList, just get 1 result Pin
Richard Deeming4-Dec-15 1:17
mveRichard Deeming4-Dec-15 1:17 
GeneralRe: SQL Linq, IQueryable, ToList, just get 1 result Pin
jkirkerx4-Dec-15 7:04
professionaljkirkerx4-Dec-15 7:04 
QuestionReport View Error Pin
Member 121385253-Dec-15 1:55
Member 121385253-Dec-15 1:55 
QuestionRe: Report View Error Pin
Richard MacCutchan3-Dec-15 2:10
mveRichard MacCutchan3-Dec-15 2:10 
Questionhandle transaction without deadlock Pin
Member 106619971-Dec-15 5:03
Member 106619971-Dec-15 5:03 
AnswerRe: handle transaction without deadlock Pin
Afzaal Ahmad Zeeshan1-Dec-15 5:20
professionalAfzaal Ahmad Zeeshan1-Dec-15 5:20 
GeneralRe: handle transaction without deadlock Pin
Richard Deeming1-Dec-15 5:37
mveRichard Deeming1-Dec-15 5:37 
Afzaal Ahmad Zeeshan wrote:
Deadlocks are caused when a thread tries to access a piece of information which is currently held by another thread.

Almost.

A deadlock[^] occurs when two or more competing threads are waiting for each other to release a lock.

For example:
  1. Thread 1 locks X;
  2. Thread 2 locks Y;
  3. Thread 1 tries to acquire a lock on Y - waits for thread 2 to release;
  4. Thread 2 tries to acquire a lock on X - waits for thread 1 to release;


The DBMS can usually detect the deadlock, and will kill the thread which has done the least work.

NB: There's nothing wrong with trying to access something locked by another thread, so long as the current thread doesn't currently hold any locks which would prevent that thread from finishing.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionHELP ME ADD EXCEPTION Pin
VicPat25-Nov-15 2:14
VicPat25-Nov-15 2:14 
AnswerRe: HELP ME ADD EXCEPTION Pin
Mycroft Holmes25-Nov-15 12:04
professionalMycroft Holmes25-Nov-15 12:04 
QuestionRemove Unique constraint from an Non-Clustered Index Pin
indian14324-Nov-15 6:26
indian14324-Nov-15 6:26 
QuestionStudent Grade and Grade Point Callculation Pin
Aliyu Usman21-Nov-15 11:50
Aliyu Usman21-Nov-15 11:50 
AnswerRe: Student Grade and Grade Point Callculation Pin
Mycroft Holmes21-Nov-15 13:41
professionalMycroft Holmes21-Nov-15 13:41 
GeneralRe: Student Grade and Grade Point Callculation Pin
Aliyu Usman21-Nov-15 19:07
Aliyu Usman21-Nov-15 19:07 
GeneralRe: Student Grade and Grade Point Callculation Pin
Mycroft Holmes21-Nov-15 20:47
professionalMycroft Holmes21-Nov-15 20:47 
AnswerRe: Student Grade and Grade Point Callculation Pin
GuyThiebaut24-Nov-15 2:08
professionalGuyThiebaut24-Nov-15 2:08 
Questionnewtonsoft.json parser - how to deploy a CLR to SQL Server 2008 R2? Pin
Member 822518018-Nov-15 11:55
Member 822518018-Nov-15 11:55 
QuestionRemoval and delete of duplicate records in my table Pin
goldsoft15-Nov-15 2:37
goldsoft15-Nov-15 2:37 
AnswerRe: Removal and delete of duplicate records in my table Pin
Mycroft Holmes15-Nov-15 11:53
professionalMycroft Holmes15-Nov-15 11:53 
AnswerRe: Removal and delete of duplicate records in my table Pin
RNA Team15-Nov-15 16:00
RNA Team15-Nov-15 16:00 
QuestionI need to get a count of records, including column Names grouped by UnitName. What am I doing wrong? Pin
samflex13-Nov-15 5:34
samflex13-Nov-15 5:34 
AnswerRe: I need to get a count of records, including column Names grouped by UnitName. What am I doing wrong? Pin
Mycroft Holmes13-Nov-15 13:56
professionalMycroft Holmes13-Nov-15 13:56 
AnswerRe: I need to get a count of records, including column Names grouped by UnitName. What am I doing wrong? Pin
RNA Team13-Nov-15 16:32
RNA Team13-Nov-15 16:32 
QuestionSQL Linq, better idea than a join for as enumerable Pin
jkirkerx11-Nov-15 9:09
professionaljkirkerx11-Nov-15 9:09 
AnswerRe: SQL Linq, better idea than a join for as enumerable Pin
Jörgen Andersson11-Nov-15 9:53
professionalJörgen Andersson11-Nov-15 9:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.