ADO to connect to Oracle databases , packaged problem ?

Category: VC/MFC -> Database Author: rlgao2009 Date: 2003-05-12 08:47:11
 
rlgao2009
2003-05-12 08:47:11
Client installed oracle   client package on the msado15.dll system directory , the client test the connection to the database , but the program can not connect to the database , and in the installation of the machine can be connected to the VC database , Do not know did not play a complete package ? Expert guidance
wangzhenlindengfeng
2003-05-12 08:53:37
Try :
1.   msado15.dll whether your version 2.7 or above ,   if   not,   try   version 2.7 or higher <br /. > 2.   when you install the client ,   msado15.dll whether your registration is successful
3.  ? VC install in your machine ,   msado15.dll you are only one in your loom ,   if   more   than   1,  
      which msado15.dll been registered ,   what   versions
fengyunfyer
2003-05-12 08:58:52
should be packed yet? complete

fact I think you just need to install mdac what you can, do not need to play msado15.dll
star98986545
2003-05-12 09:07:10
write-off version 2.6 client Shen   - > regsvr32   / u   " < file   path > \ msado15.dll "
copy   Version 2.7 to the client and then register   - > regsvr32   " < file   path > \ msado15.dll "

If you are using   InstallShield   then the above steps can be automated
lhwjzhp
2003-05-12 09:13:38
when packaged directly packaged mdac, only msado15.dll can . do
typelf
2003-05-12 09:31:52
I use ADO interface
Oracle provides CString   strConnect   =   _T (" Provider = OraOLEDB.Oracle.1;   Data   Source = ")   +   dbname   +  
  _T ("; Persist   Security   Info = False ")   +   _T (";   User   ID = ")   +   user   +     _T (";   Password = ")   +   pass;
which have MDAC it?
mututian
2003-05-12 09:48:44
I tried it , put MDAC2.5 said to have installed a result , there is no other reason ?
qq545519044
2003-05-12 09:59:07
Nobody encountered?
xtawfnhzhangwei
2003-05-12 10:16:17
I checked , the version is different , the client is version 2.6 , the machine is fitted VC version 2.7 . Register now how to judge success? How it can change the registry ?
tom_staryxc
2003-05-12 10:21:21
I used your method can be deleted, but after msado15.dll deleted automatically pop up , and beat up the msado15.dll   Version 2.7 also automatically become version 2.6 , depressed
yijieshusheng0810
2003-05-12 10:27:26
version becomes  ?
lb392801404
2003-05-12 10:38:02
Yes, because the   msado15.dll is in C: \ Program   Files \ Common   Files \ System \ ado \ msado15.dll, is not the system will automatically restore it
wenbin19801115
2003-05-12 10:43:35
installed MDAC2.8, msado15.dll version is now changed to 2.8 , but the database or Rom , consult experts pointing pointing .
liruiqin
2003-05-12 11:01:13
looking for a test of the machine , reinstall the system and Vc, MDAC, Oracle   client , now or Rom, code to connect to the database as follows :
_ConnectionPtr   m_pConnection;

hRes = m_pConnection- > Open (" Provider = MSDAORA.1; Password = maj; Persist   Security   Info = True; User   ID = maj; Data   Source = MEDIA; ", " ", " ", adModeUnknown);
this is not due to the use of smart pointer 's sake ? Do not understand it , is there any way you can check Rom reasons?