Click here to Skip to main content
15,903,201 members
Home / Discussions / Database
   

Database

 
AnswerRe: Sum the Counts Pin
Mycroft Holmes8-Jan-12 23:51
professionalMycroft Holmes8-Jan-12 23:51 
QuestionDatabase Restor Pin
Danzy838-Jan-12 8:05
Danzy838-Jan-12 8:05 
AnswerRe: Database Restor Pin
manognya kota8-Jan-12 22:35
manognya kota8-Jan-12 22:35 
AnswerRe: Database Restor Pin
Eddy Vluggen9-Jan-12 8:05
professionalEddy Vluggen9-Jan-12 8:05 
QuestionResetting 'Identity Specification' column in Sql Table Pin
AmbiguousName5-Jan-12 20:56
AmbiguousName5-Jan-12 20:56 
AnswerRe: Resetting 'Identity Specification' column in Sql Table Pin
Ellen_South_Africa5-Jan-12 21:15
Ellen_South_Africa5-Jan-12 21:15 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
AmbiguousName9-Jan-12 6:08
AmbiguousName9-Jan-12 6:08 
AnswerRe: Resetting 'Identity Specification' column in Sql Table Pin
unclejimbob6-Jan-12 1:26
unclejimbob6-Jan-12 1:26 
JokeRe: Resetting 'Identity Specification' column in Sql Table Pin
SilimSayo6-Jan-12 6:04
SilimSayo6-Jan-12 6:04 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
unclejimbob6-Jan-12 14:21
unclejimbob6-Jan-12 14:21 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
Mycroft Holmes6-Jan-12 20:26
professionalMycroft Holmes6-Jan-12 20:26 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
unclejimbob6-Jan-12 21:16
unclejimbob6-Jan-12 21:16 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
Mycroft Holmes7-Jan-12 13:24
professionalMycroft Holmes7-Jan-12 13:24 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
unclejimbob7-Jan-12 17:33
unclejimbob7-Jan-12 17:33 
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 

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.