Click here to Skip to main content
15,886,258 members
Home / Discussions / Database
   

Database

 
GeneralRe: Can I syn Oracle DB to SQL server Pin
hmanhha21-Mar-16 12:51
hmanhha21-Mar-16 12:51 
GeneralRe: Can I syn Oracle DB to SQL server Pin
CHill6021-Mar-16 13:18
mveCHill6021-Mar-16 13:18 
QuestionChange Data Capture to handle parent and child tables Pin
indian14319-Mar-16 19:04
indian14319-Mar-16 19:04 
QuestionThrow error if date fails the conversion or invalid date string Pin
indian14318-Mar-16 15:20
indian14318-Mar-16 15:20 
AnswerRe: Throw error if date fails the conversion or invalid date string Pin
Mycroft Holmes18-Mar-16 18:03
professionalMycroft Holmes18-Mar-16 18:03 
GeneralRe: Throw error if date fails the conversion or invalid date string Pin
indian14319-Mar-16 19:05
indian14319-Mar-16 19:05 
AnswerRe: Throw error if date fails the conversion or invalid date string Pin
Richard Deeming21-Mar-16 3:25
mveRichard Deeming21-Mar-16 3:25 
QuestionGet modified column names from Change Data Capture Pin
indian14317-Mar-16 8:42
indian14317-Mar-16 8:42 
Hi All,

I am using CDC to capture the modified data, all I need to know is which columns are modified on a particular day so that I can extract those modified columns.

I am able to do it by using the CaptureInstance (like I have to use the name like this: cdc.fn_cdc_get_all_changes_CDC_Provider) name hard coded function, Is there any way I can get it by using the run time without using the hard coded name.
SELECT --sys.fn_cdc_map_lsn_to_time(__$start_lsn) AS 'Time', CAST(sys.fn_cdc_map_lsn_to_time(__$start_lsn) AS DATE),
             @captureinstance, @ColName, sys.fn_cdc_is_bit_set(@TrackIfColumnChanges, __$update_mask)
             --,fn_cdc_get_all_changes_CDC_Provider.__$operation
        FROM cdc.fn_cdc_get_all_changes_CDC_Provider(@from_lsn, @to_lsn, 'all')
        WHERE sys.fn_cdc_is_bit_set(@TrackIfColumnChanges, __$update_mask)=1
        AND CAST(sys.fn_cdc_map_lsn_to_time(__$start_lsn) AS DATE) = CAST(GETDATE() AS DATE)

Can anybody please give me any idea any code snippet, a link or even suggestion would help me a lot.

Thanks in advance.
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."


modified 17-Mar-16 20:24pm.

AnswerRe: Get modified column names from CDC Pin
Mycroft Holmes17-Mar-16 12:43
professionalMycroft Holmes17-Mar-16 12:43 
GeneralRe: Get modified column names from Change Data Capture Pin
indian14317-Mar-16 12:59
indian14317-Mar-16 12:59 
QuestionHow to design database to store userlog of changing data? Pin
hmanhha15-Mar-16 9:38
hmanhha15-Mar-16 9:38 
AnswerRe: How to design database to store userlog of changing data? Pin
Richard MacCutchan15-Mar-16 10:48
mveRichard MacCutchan15-Mar-16 10:48 
AnswerRe: How to design database to store userlog of changing data? Pin
Mycroft Holmes15-Mar-16 14:14
professionalMycroft Holmes15-Mar-16 14:14 
AnswerMessage Closed Pin
15-Mar-16 22:10
Luke Lonergan15-Mar-16 22:10 
GeneralRe: How to design database to store userlog of changing data? Pin
CHill6016-Mar-16 0:01
mveCHill6016-Mar-16 0:01 
QuestionSQLite: Correlated "EXISTS" vs uncorrelated "IN" Pin
Midi_Mick13-Mar-16 5:47
professionalMidi_Mick13-Mar-16 5:47 
AnswerRe: SQLite: Correlated "EXISTS" vs uncorrelated "IN" Pin
Richard Andrew x6413-Mar-16 6:02
professionalRichard Andrew x6413-Mar-16 6:02 
AnswerRe: SQLite: Correlated "EXISTS" vs uncorrelated "IN" Pin
GuyThiebaut13-Mar-16 7:06
professionalGuyThiebaut13-Mar-16 7:06 
AnswerRe: SQLite: Correlated "EXISTS" vs uncorrelated "IN" Pin
CHill6013-Mar-16 10:12
mveCHill6013-Mar-16 10:12 
AnswerRe: SQLite: Correlated "EXISTS" vs uncorrelated "IN" Pin
Jörgen Andersson13-Mar-16 11:00
professionalJörgen Andersson13-Mar-16 11:00 
AnswerRe: SQLite: Correlated "EXISTS" vs uncorrelated "IN" Pin
Midi_Mick14-Mar-16 2:25
professionalMidi_Mick14-Mar-16 2:25 
QuestionUnable to write data on to the Excel Pin
indian1438-Mar-16 7:40
indian1438-Mar-16 7:40 
AnswerRe: Unable to write data on to the Excel Pin
indian1438-Mar-16 12:34
indian1438-Mar-16 12:34 
GeneralRe: Unable to write data on to the Excel Pin
Mycroft Holmes8-Mar-16 13:17
professionalMycroft Holmes8-Mar-16 13:17 
GeneralRe: Unable to write data on to the Excel Pin
indian1439-Mar-16 4:19
indian1439-Mar-16 4:19 

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.