Click here to Skip to main content
15,919,931 members
Home / Discussions / Database
   

Database

 
GeneralRe: Porting to Oracle V's DB2 from Access 2000 Pin
Heath Stewart12-Jul-03 7:32
protectorHeath Stewart12-Jul-03 7:32 
GeneralRe: Porting to Oracle V's DB2 from Access 2000 Pin
Mark Conger16-Jul-03 7:50
Mark Conger16-Jul-03 7:50 
QuestionDoes ODBC allow mapping to remote DSN via TCP/IP? Pin
Terry O'Nolley10-Jul-03 13:27
Terry O'Nolley10-Jul-03 13:27 
AnswerRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Nino_110-Jul-03 20:35
Nino_110-Jul-03 20:35 
GeneralRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Terry O'Nolley11-Jul-03 5:54
Terry O'Nolley11-Jul-03 5:54 
GeneralRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Nino_111-Jul-03 16:05
Nino_111-Jul-03 16:05 
GeneralRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Terry O'Nolley12-Jul-03 3:44
Terry O'Nolley12-Jul-03 3:44 
GeneralRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Mike Dimmick12-Jul-03 7:40
Mike Dimmick12-Jul-03 7:40 
It depends very much on how your app's written.

If it's an MFC app, look at the CDatabase and CRecordset classes (connecting using ODBC), or CDaoDatabase and CDaoRecordset if you want to use Data Access Objects. For a new app I'd avoid DAO - I don't think MS intends to port Jet to 64-bit processors, and DAO only works with Jet anyway.

If the application is written with raw Win32 API calls, look up the ODBC functions directly - see SQLConnect and its kin.

I'd avoid ADO from C++. It's designed as a nice wrapper around OLE DB for languages that can't cope with multiple interfaces, especially scripting languages. From C++ it's a royal pain of constantly wrapping parameters in VARIANTs and strings in BSTRs.

If you want to tackle it, you can use OLE DB directly. If you're happy with C++ templates, you can use the OLE DB Templates. If you intend to do this, I suggest OLE DB Consumer Templates: A Programmer's Guide[^]. There are wizards for it too - go to Insert > New ATL Object, then select the Data Access category and the Consumer object.

I have tried this out once, but my boss preferred doing it 'a way that everyone can understand', with the odd result that a data import application - which looks for new files to import, then imports them - is written in VB6. Confused | :confused:

--
Mike Dimmick
GeneralRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Terry O'Nolley14-Jul-03 13:22
Terry O'Nolley14-Jul-03 13:22 
GeneralDataGrid columns renaming Pin
Kant10-Jul-03 7:39
Kant10-Jul-03 7:39 
GeneralRe: DataGrid columns renaming Pin
Not Active10-Jul-03 12:52
mentorNot Active10-Jul-03 12:52 
GeneralRe: DataGrid columns renaming Pin
Kant10-Jul-03 13:16
Kant10-Jul-03 13:16 
GeneralPass array to pl/sql procedure using .NET OracleClient Pin
IPC20009-Jul-03 8:45
IPC20009-Jul-03 8:45 
GeneralMSDE sp3 Installation Hangs Pin
Nathan Blomquist9-Jul-03 2:36
Nathan Blomquist9-Jul-03 2:36 
Questionquery problem? Pin
Asim N.9-Jul-03 2:20
Asim N.9-Jul-03 2:20 
GeneralMultiple SQLServer databases Pin
John Oliver8-Jul-03 23:12
John Oliver8-Jul-03 23:12 
GeneralRe: Multiple SQLServer databases Pin
Gaurav Bindlish9-Jul-03 3:23
Gaurav Bindlish9-Jul-03 3:23 
GeneralNeed an Access97 MDI application. Pin
WREY8-Jul-03 10:34
WREY8-Jul-03 10:34 
GeneralRe: Database Newbie Q Pin
Gaurav Bindlish8-Jul-03 9:34
Gaurav Bindlish8-Jul-03 9:34 
GeneralRe: Database Newbie Q Pin
Gaurav Bindlish9-Jul-03 3:19
Gaurav Bindlish9-Jul-03 3:19 
Generalstorage of images into oracle database as blob using vc++.net or ADO.net Pin
Shaffiq7-Jul-03 7:57
Shaffiq7-Jul-03 7:57 
GeneralRe: storage of images into oracle database as blob using vc++.net or ADO.net Pin
Not Active7-Jul-03 9:04
mentorNot Active7-Jul-03 9:04 
GeneralRe: storage of images into oracle database as blob using vc++.net or ADO.net Pin
Shaffiq7-Jul-03 18:45
Shaffiq7-Jul-03 18:45 
GeneralRe: storage of images into oracle database as blob using vc++.net or ADO.net Pin
Not Active8-Jul-03 2:42
mentorNot Active8-Jul-03 2:42 
GeneralNeed to Export Records to Remote Terminal Pin
Leon van Wyk7-Jul-03 0:24
professionalLeon van Wyk7-Jul-03 0:24 

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.