Error at the following line:
Dim connect As New LCConnection(“Driverdb”)
'*****old name is ‘oracle8’ and it works fine
'****new name “Driverdb” fails
System DNS name set up on client and server corrrectly. Tested connection on client and it works. Used the ndctest.exe to test connection on server and it works. Used the “Driverdb” name in a ODBC dbcolumn formula and it works. And the Driverdb name is entered exactly the same in all locations, it’s not a case issue.
Tried other names, but the error always occurs on the same line.
It is not a script error. I reviewed many, many documents from this forum and used some of the codes presented to verify it wasn’t a script problem.
'*****Option Public set correctly
Option Public
Uselsx “*lsxlc”
Not using DECS. Not using LEI. Just a simple script formula.
What am I missing?
Subject: Error creating product object - I’m stumped!!
Michael,
You can’t just make up your own parameters here. If you are doing ODBC, the only value allowed is “odbc2”.
Ken
Subject: RE: Error creating product object - I’m stumped!!
First, thanks for your reponse. And second, I believe you’re right.
I did more reading and research and a “blinding flash of the obvious” occurred. You can change the name in odbc formulas as long as you update the TSN Names file. However, when using the LC Connection, you only use the source, i.e., db2, oracle, oracle8.
Thanks again.
Subject: RE: Error creating product object - I’m stumped!!
Michael,
I don’t know what a TSN Names file is, but as you realized, you have to stick with the supported values on the LCConnection. We connect to SQL Server on the back-end, so for us, “odbc2” does the job.
Ken
Subject: RE: Error creating product object - I’m stumped!!
First of all, thanks for your response.
And second, I believe you’re right!
I continued to do some more reading and research when “a blinding flash of the obvious” occurred.
In my example, Dim connect As New LCConnection(“oralcle8”) is the name of Oracle installed on the server. When Driverdb worked in my ODBC formula, I started to get the picture.
You can change the name in ODBC formulas and update the TNS Names files and any name will work; however, the New LCConnection must use the name of the source, hence, db2 or oracle8.
Thanks!