Click here to Skip to main content
15,892,161 members
Home / Discussions / Database
   

Database

 
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 
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 
The routine uses the MERGE statement to determine if a record for the particular observation exists. If it does not, it inserts a new record. If a record does exist, it updates the appropriate field.

Problem comes in that there are three raw import records for the particular observation. So the first merge may try to insert something for a high temperature while at the same time the system is trying to insert for the low temperature.

I can use a cursor to cycle through the imported data row by row but want to avoid the speed hit.

I also can't change the main table to hold a record for each individual type of temperature because of the huge number of records (~17 million per observation cycle)
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 
GeneralRe: Skeptical about Trigger! Pin
Jörgen Andersson15-Mar-13 2:16
professionalJörgen Andersson15-Mar-13 2:16 
GeneralRe: Skeptical about Trigger! Pin
Mycroft Holmes15-Mar-13 13:23
professionalMycroft Holmes15-Mar-13 13:23 

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.