|
-
Jan 11th, 2000, 04:17 AM
#1
Thread Starter
New Member
I tried the single line connection code like this
cn.Open "Provider=MSDAORA.1;Data Source=Personal Oracle7;User Id=SCOTT;Password=TIGER;"
but am getting error message like this
"Runtime error - 2147467259(80004005)
ORA-12154-TNS:Could not resolve service name"
I am using Personal Oracle 7.3.4
I think the error is in Data Source string
Please help me
thanks
-
Jan 11th, 2000, 01:25 PM
#2
Guru
I believe the Data Source is the name of the computer that your DBMS resides on. (for client/server databases anyways)
Is Personal Oracle7 the name of your DB server?
-
Jan 11th, 2000, 07:32 PM
#3
Thread Starter
New Member
My computer name is Lakshmi, which i am given in the Idendification tab of network properties. I replaced Personal Oracle7 with Lakshmi, but still the same problem persists what could be the reason
thanks
-
Jan 12th, 2000, 04:56 AM
#4
Thread Starter
New Member
"Microsoft OLE DB Provider for Oracle: Tips Tricks And Traps"
Where i will get the above mentioned book.
-
Jan 12th, 2000, 12:02 PM
#5
Frenzied Member
According to the MSDN library (the one that ships with VB6), under the topic of "Accessing a Data Source", it indicates (in tabular format) that the value of "Data Source" should be set to "path to server".
You also might want to take a look at:
"Microsoft OLE DB Provider for Oracle: Tips Tricks And Traps"
[This message has been edited by JHausmann (edited 01-12-2000).]
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
|