Click here to Skip to main content
16,004,761 members
Home / Discussions / Database
   

Database

 
QuestionRe: MS Sql normalization Pin
Jörgen Andersson20-Mar-13 9:57
professionalJörgen Andersson20-Mar-13 9:57 
AnswerRe: MS Sql normalization Pin
Per Söderlund20-Mar-13 11:44
Per Söderlund20-Mar-13 11:44 
GeneralRe: MS Sql normalization Pin
Jörgen Andersson20-Mar-13 21:33
professionalJörgen Andersson20-Mar-13 21:33 
GeneralRe: MS Sql normalization Pin
Per Söderlund22-Mar-13 10:59
Per Söderlund22-Mar-13 10:59 
Questionlinked server Pin
rocksonedmond19-Mar-13 5:45
rocksonedmond19-Mar-13 5:45 
SuggestionRe: linked server Pin
Maciej Los19-Mar-13 7:39
mveMaciej Los19-Mar-13 7:39 
AnswerRe: linked server Pin
RedDk22-Mar-13 8:23
RedDk22-Mar-13 8:23 
QuestionThreading and insert/update issues. Pin
mjackson1118-Mar-13 18:06
mjackson1118-Mar-13 18:06 
I have a database that receives weather information. The main table is (somewhat simplified)

LocationID int, Hour int, HiTemp Float, LoTemp Float, TimedTemp Float

Temperature data is first written to a holding table - LocationID int, Hour int, whichVariable int, value float. Then it is merged into the main table (using a MERGE statement)

All this works fine when the temperature data written to the holding table goes in one variable at a time, executes the MERGE, loads the next variable, etc.

If I have multiple programs adding multiple locations and different variables all at the same time, the system deadlocks. I could force one instance of the outside program inserting the data to use a mutex to guarantee undisturbed calls to MERGE but it is quite possible we will have multiple instances of the outside program running.

What is the best approach to take to allow merging of the data?
AnswerRe: Threading and insert/update issues. Pin
Mycroft Holmes18-Mar-13 19:33
professionalMycroft Holmes18-Mar-13 19:33 
GeneralRe: Threading and insert/update issues. Pin
mjackson1119-Mar-13 3:53
mjackson1119-Mar-13 3:53 
AnswerRe: Threading and insert/update issues. Pin
PIEBALDconsult19-Mar-13 4:10
mvePIEBALDconsult19-Mar-13 4:10 
AnswerRe: Threading and insert/update issues. Pin
GuyThiebaut19-Mar-13 5:17
professionalGuyThiebaut19-Mar-13 5:17 
GeneralRe: Threading and insert/update issues. Pin
mjackson1119-Mar-13 5:58
mjackson1119-Mar-13 5:58 
GeneralRe: Threading and insert/update issues. Pin
GuyThiebaut19-Mar-13 6:07
professionalGuyThiebaut19-Mar-13 6:07 
Questionhow did i add calender to my site Pin
kalula17-Mar-13 14:18
kalula17-Mar-13 14:18 
AnswerRe: how did i add calender to my site Pin
NotPolitcallyCorrect17-Mar-13 14:22
NotPolitcallyCorrect17-Mar-13 14:22 
AnswerRe: how did i add calender to my site Pin
Mycroft Holmes17-Mar-13 19:57
professionalMycroft Holmes17-Mar-13 19:57 
Questionhow did i add calender to my site Pin
kalula17-Mar-13 14:16
kalula17-Mar-13 14:16 
AnswerRe: how did i add calender to my site Pin
thatraja4-Oct-13 20:39
professionalthatraja4-Oct-13 20:39 
QuestionSkeptical about Trigger! Pin
Thiru614-Mar-13 23:10
Thiru614-Mar-13 23:10 
QuestionRe: Skeptical about Trigger! Pin
gvprabu14-Mar-13 23:52
gvprabu14-Mar-13 23:52 
AnswerRe: Skeptical about Trigger! Pin
Thiru615-Mar-13 23:22
Thiru615-Mar-13 23:22 
SuggestionRe: Skeptical about Trigger! Pin
gvprabu17-Mar-13 18:37
gvprabu17-Mar-13 18:37 
GeneralRe: Skeptical about Trigger! Pin
Thiru617-Mar-13 19:16
Thiru617-Mar-13 19:16 
AnswerRe: Skeptical about Trigger! Pin
Mycroft Holmes14-Mar-13 23:58
professionalMycroft Holmes14-Mar-13 23:58 

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.