standard security:
"provider=msdaora;data source=myoracledb;user id=username;password=asdasd;"
this one's from microsoft, the following are from oracle
standard security:
"provider=oraoledb.oracle;data source=myoracledb;user id=username;password=asdasd;"
trusted connection:
"provider=oraoledb.oracle;data source=myoracledb;osauthent=1;"
standard:
"data source=myoracledb;integrated security=yes;"
this one works only with oracle 8i release 3 or later
specifying username and password:
"data source=myoracledb;user id=username;password=passwd;integrated security=no;"
this one works only with oracle 8i release 3 or later
declare the oracleconnection:
c#:
using system.data.oracleclient;
oracleconnection ooracleconn = new oracleconnection();
ooracleconn.connectionstring = "my connectionstring";
ooracleconn.open();
vb.net:
imports system.data.oracleclient
dim ooracleconn as oracleconnection = new oracleconnection()
ooracleconn.connectionstring = "my connectionstring"
ooracleconn.open()
用c 鏈結資料庫
1.建立連線字串 string a data source initial catalog qq integrated security true 12.建立連線物件 sqlconnection connection new sqlconnection a 1執行乙個sql語句 1.將想要執行的sq...
C 鏈結ORACLE資料庫
using system using system.data using system.configuration using system.linq using system.web using system.web.security using system.web.ui using syste...
Oracle資料庫鏈結
oracle net可用於資料庫之間的通訊 乙個資料庫的使用者會話可以的執行針對於另一資料庫的sql語句。這可以通過資料庫鏈結來完成。create database link sync connect to store identified by admin123 using db244 sync是...