vb Á¬½ÓORACLE ´òÓ¡
ÕâÊÇÎÒÔÀ´Á¬½ÓSQLµÄ´òÓ¡µÄ´úÂë
Connection1.Open "Provider=MSDataShape.1;Persist Security Info=True;Data Source=mm;User ID=sa;Password=sa;Initial Catalog=lc-liuh2;Data Provider=SQLOLEDB.1"ÊÇ¿ÉÒÔµÄ
ÏÖÔÚÏë¸Ä³ÉÁ¬½ÓORACLE
Connection1.Open "Provider=MSDataShape.1;Persist Security Info=True;User ID=PATROL;Password=PATROL;Data Source=MYORACLE;Data Provider=MSDAORA.1"»òÕß
Connection1.Open "Provider=MSDataShape.1;Persist Security Info=True;User ID=PATROL;Password=PATROL;Data Source=MYORACLE;Data Provider=OraOLEDB.Oracle.1"
Á½¸ö¶¼Ã»Óа취Á¬½ÓÉÏ,ÏëÎÊÏÂÓ¦¸ÃÔõôÁ¬½Ó,ÎÒÊý¾ÝÒѾÁ¬½ÓÉÏÁË,²éѯ,ɾ³ý,Ð޸Ķ¼ÊÇûÓÐÎÊÌâ,µ«ÊÇ´òÓ¡ÐèÒª¼ÓProvider=MSDataShape.1À´×öһЩ¹¦ÄÜ
Persist Security Info=False ÊÔÊÔ¡£
½«¼¸¸ö Provider Öеİ汾ºÅ .1 È¥µôÊÔÊÔ¡£
°´ÕÕÄã˵µÄÊÔÁ˼¸ÖÖÇé¿ö¶¼²»ÐÐ
ÕâÑùÊÔ
Provider=MSDataShape.1;Persist Security Info=False;Data Provider=MSDAORA;Data Source=orac;User Id=myUsername;Password=myPassword;
È·¶¨Oracle¿Í»§¶ËµÄÇý¶¯°²×°ÁË£¿½ÚµãÒ²ÅäÖÃÁË£¿
Æäʵ Oracle ÓÐ×Ô¼ºµÄµÝ¹é²éѯÓï·¨SQL code:
[ START WITH condition ]
CONNECT BY [ NOCYCLE ] condition
¶ÔORACLE²»ÊǺÜÁ˽⡣·¢ÏÖÖ±½ÓÔÚ³ÌÐòÁ¬½ÓºÃÖ®ºóÄÇÑùÀ´×öÊÇ¿ÉÒԵġ£
ÔÚPrivate Sub DataEnvironment_Initialize()Öн«CONNECTSTRING´ò³öÀ´Ö®ºóµÃµ½µÄ½á¹ûÊÇ:
Provider=MSDataShape.1;Persist Secur
Ïà¹ØÎÊ´ð£º
ÎÒÓг§¼Ò×öµÄASPµÄ¼à¿Ø¼Ïñ£¨DVR£©µÄ¾ÖÓòÍø²¥·ÅµÄÔ´³ÌÐòÓë¿Ø¼þ£¬ÏëÒªÓÃASP.net×öÒ»¸öÊÓƵ»Ø·ÅµÄ³ÌÐò£¨ÀûÓÃËûµÄ¿Ø¼þ£©µ«²»ÖªÈçÏÂÈ¥×ö£¬Íû¸÷λָµã¡£
ÏȸãÇå³þËûÃǵĿؼþÊÇÔõôÓõÄ,
È»ºó¾ÍÖ±½ÓÓúÃÁË.
²»¹ý,Èç ......
ÈÕÇ°ÓÃociº¯Êý²éѯoracleÊý¾Ýʱ³öÏÖ¸öÎÊÌ⣬¾ÍÊÇÔÚ²éѯµ½dateÀàÐ͵ÄÊý¾Ýʱ£¬Ê¹ÓÃpl/sql ²éѯoracle¿âÖеÄÊý¾ÝÏÔʾÊÇ
2009-9-29 12:12:12
µ«ÊÇͨ¹ýÓï¾äselect * from tablename ²éѯ£¬Ê¹ÓÃoci_fetch_array£¨£© ......
<?php
getenv("ORACLE_HOME");
$conn=ocilogon("test","test","test_db");
if($conn)
echo success;
&nb ......
vbдµÄ³ÌÐò±àÒëºó,ÔËÐÐÈô³ö´í,ÈçºÎÖªµÀµ½ÔÚÄÄÒ»ÐÐ?
°´Ctrl+F5Ô¤±àÒ룬³ö´íʱ»áÌøתµ½´íÎóÐÐ
²»ÊÇÄÇÑùµÄÁË,ÎÒÊÇÒªÇó±àÒë³ÉEXEºóÔËÐÐ,Ìáʾ³ö´íÄÜ·ñÌáʾ´íÔÚÄÄÒ»ÐÐ.
ÎÒ±àÒëºóÔÚÎҵĵçÄÔÉÏÔËÐÐûÎÊÌâ,µ«Ô ......
Ï£Íû´ó¼ÒÄܹ»°ïÎÒÏÂ.¸ÐлÁË..
Ô´Âë´«ÔÚ´óÃ×ÅÌ VB6 µÄÔ´Âë http://www.damipan.com/file/3wNoKLW.html
תΪVB.NETÔ´Âë.
СµÜÍêÈ«ÊÇÐÂÊÖ ²»¶®µÄ˵.Âé·³¸÷λ°ïæһÏÂ
ÎÒµÄEMAILÊÇ:4452 ......