Click here to Skip to main content
15,926,062 members
Home / Discussions / Database
   

Database

 
GeneralHelp!! ADO and NT Pin
Ralf Friedrich Hain12-Jul-01 6:35
Ralf Friedrich Hain12-Jul-01 6:35 
GeneralRe: Help!! ADO and NT Pin
Sardaukar12-Jul-01 6:45
Sardaukar12-Jul-01 6:45 
GeneralRe: Help!! ADO and NT Pin
Ralf Friedrich Hain12-Jul-01 7:13
Ralf Friedrich Hain12-Jul-01 7:13 
GeneralRe: Help!! : I've solved my problem ... Pin
Ralf Friedrich Hain17-Jul-01 2:03
Ralf Friedrich Hain17-Jul-01 2:03 
Generalretrieving XML Pin
Özgür11-Jul-01 23:20
Özgür11-Jul-01 23:20 
GeneralCRecordset object of type snapshot turned into dynaset => recordset readonly! Pin
9-Jul-01 21:01
suss9-Jul-01 21:01 
GeneralADO and JRO question Pin
Roger Cornell9-Jul-01 12:08
Roger Cornell9-Jul-01 12:08 
GeneralRe: ADO and JRO question Pin
Roger Cornell11-Jul-01 12:05
Roger Cornell11-Jul-01 12:05 
I've got a solution for my own question now, here it is.

I've found out how to create a replica of an Access .mdb file through VC++. Here's the code.

This code goes at the end of STDAFX.H

#import "C:\\program files\\common files\\system\\ado\\msado21.tlb" \
no_namespace \
rename("EOF", "adoEOF")
#import "C:\\program files\\common files\\system\\ado\\msjro.dll"

MSJRO.DLL uses a namespace JRO.

This code goes in a .CPP file

CoInitialize(NULL);

JRO::IReplicaPtr m_pReplica;

HRESULT hr0;
hr0 = m_pReplica.CreateInstance(__uuidof( JRO::Replica ) );

if(SUCCEEDED(hr0))
{
CString m_connectString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\\JDOCS\\Data\\JDOCS.mdb";
m_pReplica->PutActiveConnection(_bstr_t(m_connectString));
CString m_repName = "D:\\JDOCS\\Data\\JDOCSRep2.mdb";
CString m_repDesc = "JDOCS Database Replica";
m_pReplica->CreateReplica(_bstr_t(m_repName), _bstr_t(m_repDesc), JRO::jrRepTypeFull, JRO::jrRepVisibilityGlobal, -1, JRO::jrRepUpdFull);
}

CoUninitialize();



Roger Cornell
Generalhelp! source code on buffer manager and page Pin
thinker8-Jul-01 12:07
thinker8-Jul-01 12:07 
GeneralADO and excel Pin
Gérald Mercet4-Jul-01 22:39
Gérald Mercet4-Jul-01 22:39 
GeneralADO AddNew problem Pin
3-Jul-01 13:35
suss3-Jul-01 13:35 
GeneralIDE for SQL Store procedure Pin
- Emanuele -2-Jul-01 22:35
- Emanuele -2-Jul-01 22:35 
GeneralRe: IDE for SQL Store procedure Pin
Anders Molin3-Jul-01 0:31
professionalAnders Molin3-Jul-01 0:31 
Questionprinting MS Data-Grid? or copying? Pin
Ralf Friedrich Hain1-Jul-01 4:59
Ralf Friedrich Hain1-Jul-01 4:59 
Generalinserting in CLOB > 4K using ADO ( C++) Pin
parag29-Jun-01 20:52
parag29-Jun-01 20:52 
GeneralRe: inserting in CLOB > 4K using ADO ( C++) Pin
3-Jul-01 11:51
suss3-Jul-01 11:51 
GeneralAsync Queries + ADO Pin
Mukesh27-Jun-01 19:43
Mukesh27-Jun-01 19:43 
GeneralOld DAO to ADO Pin
Tim Fronczek26-Jun-01 11:40
Tim Fronczek26-Jun-01 11:40 
Generaldatabase in embedded visual c++ Pin
26-Jun-01 3:40
suss26-Jun-01 3:40 
GeneralPaging Implementation in ADODataReader Pin
26-Jun-01 0:08
suss26-Jun-01 0:08 
GeneralAdo/MFC DB Classes Pin
Aky25-Jun-01 19:44
Aky25-Jun-01 19:44 
GeneralDatabase connection and stored procedure Pin
Bharat Gadhia25-Jun-01 9:26
Bharat Gadhia25-Jun-01 9:26 
GeneralRe: Database connection and stored procedure Pin
25-Jun-01 10:02
suss25-Jun-01 10:02 
GeneralRe: Database connection and stored procedure Pin
Carlos Antollini25-Jun-01 15:21
Carlos Antollini25-Jun-01 15:21 
GeneralSchedule Backup for SQL Database Pin
Aviad25-Jun-01 2:15
Aviad25-Jun-01 2:15 

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.