-
March 30th, 2001 04:23 AM
#1
Urgent: Parameters of the Open-method
I work with Visual C++ 6.0 and an Oracle8 database. And want access to this database via ADO.
Now I have this code in C++:
_ConnectionPtr pConn;
pConn.CreateInstance(__uuidof(_Connection));
pConn->Open( ???)
But I don't know, how I must write the parameters of the Open-method.
Please help me.
Thanks Sascha
-
March 30th, 2001 05:51 AM
#2
Re: Urgent: Parameters of the Open-method
We are using something like this:
CString sCn;
sCn.Format("Provider=%s;Data Source=%s;User ID=%s;Password=%s",
"OraOLEDB.Oracle", "Oracle8ServiceName", "username", "password");
pConnect->Open((LPCTSTR)sCn, "", "", adOpenUnspecified /* -1 */);
That is.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Click Here to Expand Forum to Full Width
|
Bookmarks