Click here to Skip to main content
15,889,865 members
Home / Discussions / Database
   

Database

 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
Mycroft Holmes7-Jan-12 19:52
professionalMycroft Holmes7-Jan-12 19:52 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
jschell9-Jan-12 10:10
jschell9-Jan-12 10:10 
QuestionRETURN; before END Pin
Waldemar Sauer4-Jan-12 6:05
Waldemar Sauer4-Jan-12 6:05 
AnswerRe: RETURN; before END Pin
jschell4-Jan-12 8:24
jschell4-Jan-12 8:24 
AnswerRe: RETURN; before END Pin
Eddy Vluggen4-Jan-12 11:46
professionalEddy Vluggen4-Jan-12 11:46 
AnswerRe: RETURN; before END Pin
PIEBALDconsult4-Jan-12 13:18
mvePIEBALDconsult4-Jan-12 13:18 
AnswerRe: RETURN; before END Pin
Luc Pattyn4-Jan-12 14:10
sitebuilderLuc Pattyn4-Jan-12 14:10 
QuestionUsing Change Data Capture to Replicate data Pin
Pascal Ganaye4-Jan-12 0:12
Pascal Ganaye4-Jan-12 0:12 
I am building a reporting database that is pulling data from several source and different databases.

The plan so far is to turn on change data capture on the source databases and process the log generated using SSIS.

I can find a few papers and sample online on how to process the ubiquitous INSERT/UPDATE/DELETE log and it is helpful but I fail to find any good sample or tool with multiple tables.

I can't see how I can process the items in the right order and keep integrity.

Let's say we have a classic database with Product, Order and OrderLine.
And this scenario:

8:00 - Create a product P1
8:01 - Create an Order O1
8:02 - Create an Order Line L1
8:03 - Delete the Order Line L1
8:04 - Delete the Order O1
8:05 - Create a new Order O1
8:06 - Create a new Order Line L1


The cdc tables will contain

For Product
8:00 INSERT P1 


For Order
8:01 INSERT O1
8:04 DELETE O1
8:05 INSERT O1


For Order Line
8:02 INSERT L1 Order:O1 Product:P1
8:03 DELETE L1
8:06 CREATE L1 Order:O1 Product:P1

To keep the referential integrity of the reporting database, I would need to:
- insert order lines after orders
- delete order lines before orders

Because of this I can't really treat a CDC at a time.

As I see it the only way would be to process all CDC simulataneously in datetime order.
Is there ways to do that?


The source databases are Oracle and MS SQL and possibly text files.
The reporting database is MS SQL
AnswerRe: Using Change Data Capture to Replicate data Pin
Mycroft Holmes4-Jan-12 12:14
professionalMycroft Holmes4-Jan-12 12:14 
AnswerRe: Using Change Data Capture to Replicate data Pin
eusimonica8-Jan-12 23:32
eusimonica8-Jan-12 23:32 
AnswerRe: Using Change Data Capture to Replicate data Pin
shreekar11-Jan-12 7:44
shreekar11-Jan-12 7:44 
QuestionAutomate job schedule Pin
Neelesh_Rmsi2-Jan-12 23:10
Neelesh_Rmsi2-Jan-12 23:10 
AnswerRe: Automate job schedule Pin
SilimSayo3-Jan-12 10:58
SilimSayo3-Jan-12 10:58 
AnswerRe: Automate job schedule Pin
SilimSayo6-Jan-12 13:58
SilimSayo6-Jan-12 13:58 
QuestionOptimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Nadia Monalisa1-Jan-12 14:46
Nadia Monalisa1-Jan-12 14:46 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Luc Pattyn1-Jan-12 15:31
sitebuilderLuc Pattyn1-Jan-12 15:31 
GeneralRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Nadia Monalisa1-Jan-12 16:16
Nadia Monalisa1-Jan-12 16:16 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Luc Pattyn1-Jan-12 16:57
sitebuilderLuc Pattyn1-Jan-12 16:57 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
PIEBALDconsult1-Jan-12 16:07
mvePIEBALDconsult1-Jan-12 16:07 
GeneralRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Nadia Monalisa1-Jan-12 21:29
Nadia Monalisa1-Jan-12 21:29 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Shameel1-Jan-12 18:40
professionalShameel1-Jan-12 18:40 
GeneralRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
Nadia Monalisa1-Jan-12 21:30
Nadia Monalisa1-Jan-12 21:30 
AnswerRe: Optimizing TSQL Stored Procedure Code, need a better alternative for performance. Pin
unclejimbob5-Jan-12 11:52
unclejimbob5-Jan-12 11:52 
QuestionTable not updated when value not set Pin
lionelcyril29-Dec-11 19:36
lionelcyril29-Dec-11 19:36 
AnswerRe: Table not updated when value not set Pin
Md. Marufuzzaman29-Dec-11 21:01
professionalMd. Marufuzzaman29-Dec-11 21:01 

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.