MasteringVFP/12/8/2

出自VFP Wiki

(修訂版本間差異)
跳轉到: 導航, 搜尋
第2行: 第2行:
Local ConnectString AS String  
Local ConnectString AS String  
 +
Public Connected AS Integer
Public Connected AS Integer
 +
ConnectString = "Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=myUsername;Pwd=myPassword"
ConnectString = "Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=myUsername;Pwd=myPassword"
第11行: 第13行:
Local ConnectString AS String  
Local ConnectString AS String  
 +
Public Connected AS Integer
Public Connected AS Integer
 +
ConnectString = "Driver={Oracle ODBC Driver};Dbq=myDBName;Uid=myUsername;Pwd=myPassword"
ConnectString = "Driver={Oracle ODBC Driver};Dbq=myDBName;Uid=myUsername;Pwd=myPassword"
Connected = SQLSTRINGCONNECT(ConnectString)
Connected = SQLSTRINGCONNECT(ConnectString)

在2005年2月17日 (四) 06:15所做的修訂版本

&& ==ODBC Driver for Oracle - from Microsoft For the current Oracle ODBC Driver from Microsoft ====

Local ConnectString AS String

Public Connected AS Integer

ConnectString = "Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=myUsername;Pwd=myPassword"

Connected = SQLSTRINGCONNECT(ConnectString)


&& === ODBC Driver for Oracle - from Oracle ====

Local ConnectString AS String

Public Connected AS Integer

ConnectString = "Driver={Oracle ODBC Driver};Dbq=myDBName;Uid=myUsername;Pwd=myPassword"

Connected = SQLSTRINGCONNECT(ConnectString)