| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
編集の要約なし
==VC++.NET Express から Oracleへ接続==
[[VC++.NET][Oracle]]
*[http://otn.oracle.co.jp/tech/dotnet/index.html .NET Developer Center]
(L"user id=****;password=****;data source=[host name]/[service name]");
conn->>Open();
Debug::Print(L"Oracle Connection Opened.");
OracleCommand^ cmd = gcnew OracleCommand(L"select * from all_tables");
cmd->>Connection = conn;
OracleDataReader^ reader = cmd->>ExecuteReader();
String^ ret = L"";
while (reader->>Read()) { ret += "\n" + reader->>GetString(1);
}
MessageBox::Show(ret);
conn->>Close();
=====結果=====
[[File:1273_vc_ora_02.JPG]]

案内メニュー