Click here to Skip to main content
15,881,882 members
Home / Discussions / Database
   

Database

 
AnswerRe: Change Data Capture is not capturing before value for the Images Pin
Eddy Vluggen29-Apr-16 6:44
professionalEddy Vluggen29-Apr-16 6:44 
QuestionEnable-Migrations, I don't get it - EF6 Pin
jkirkerx23-Apr-16 13:36
professionaljkirkerx23-Apr-16 13:36 
QuestionImproving Performance of Dynamic Sql Pin
indian14319-Apr-16 12:25
indian14319-Apr-16 12:25 
SuggestionRe: Improving Performance of Dynamic Sql Pin
CHill6020-Apr-16 2:50
mveCHill6020-Apr-16 2:50 
GeneralRe: Improving Performance of Dynamic Sql Pin
indian14326-Apr-16 7:55
indian14326-Apr-16 7:55 
AnswerRe: Improving Performance of Dynamic Sql Pin
Oscar Salgado9-Aug-16 12:44
Oscar Salgado9-Aug-16 12:44 
QuestionImproving Performance of my SP which is looping using While Pin
indian14318-Apr-16 12:54
indian14318-Apr-16 12:54 
AnswerRe: Improving Performance of my SP which is looping using While Pin
Chris Quinn19-Apr-16 0:45
Chris Quinn19-Apr-16 0:45 
You should be able to convert this to a single insert query with a correlated WHERE NOT EXISTS query, removing the loop entirely

Something like this:
SQL
INSERT INTO destination_table (
    id
    ,data_col_1
    ,data_col_2
    )
SELECT id
    ,data_col_1
    ,data_col_2
FROM #tempdata TD
WHERE NOT EXISTS (
        SELECT 1
        FROM destination_table
        WHERE id = TD.id
        )
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================

QuestionHow to sum consecutive in number of day Pin
hmanhha14-Apr-16 8:10
hmanhha14-Apr-16 8:10 
AnswerRe: How to sum consecutive in number of day Pin
Richard MacCutchan14-Apr-16 20:52
mveRichard MacCutchan14-Apr-16 20:52 
GeneralRe: How to sum consecutive in number of day Pin
hmanhha14-Apr-16 22:04
hmanhha14-Apr-16 22:04 
GeneralRe: How to sum consecutive in number of day Pin
Richard MacCutchan14-Apr-16 22:11
mveRichard MacCutchan14-Apr-16 22:11 
AnswerRe: How to sum consecutive in number of day Pin
John C Rayan15-Apr-16 4:47
professionalJohn C Rayan15-Apr-16 4:47 
QuestionReport is time out Pin
Member 1083678514-Apr-16 1:42
Member 1083678514-Apr-16 1:42 
AnswerRe: Report is time out Pin
Richard Deeming14-Apr-16 1:56
mveRichard Deeming14-Apr-16 1:56 
GeneralRe: Report is time out Pin
Member 1083678514-Apr-16 2:21
Member 1083678514-Apr-16 2:21 
GeneralRe: Report is time out Pin
Richard Deeming14-Apr-16 2:24
mveRichard Deeming14-Apr-16 2:24 
GeneralRe: Report is time out Pin
Member 1083678514-Apr-16 2:39
Member 1083678514-Apr-16 2:39 
GeneralRe: Report is time out Pin
Richard Deeming14-Apr-16 8:28
mveRichard Deeming14-Apr-16 8:28 
Questionhow to display record on screen Pin
Member 1245752113-Apr-16 17:08
Member 1245752113-Apr-16 17:08 
AnswerRe: how to display record on screen Pin
Richard MacCutchan13-Apr-16 20:51
mveRichard MacCutchan13-Apr-16 20:51 
QuestionTest AlwaysOn Availability Groups (mirroring) Pin
Bastien Vandamme11-Apr-16 22:15
Bastien Vandamme11-Apr-16 22:15 
AnswerRe: Test AlwaysOn Availability Groups (mirroring) Pin
Eddy Vluggen15-Apr-16 0:54
professionalEddy Vluggen15-Apr-16 0:54 
QuestionVS 2013 Get detailsview with SQL light Pin
BobbyStrain11-Apr-16 15:01
BobbyStrain11-Apr-16 15:01 
AnswerRe: VS 2013 Get detailsview with SQL light Pin
Richard MacCutchan11-Apr-16 21:37
mveRichard MacCutchan11-Apr-16 21:37 

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.