dbTalk Databases Forums  

ERROR ODBC UNIDATA

comp.databases.pick comp.databases.pick


Discuss ERROR ODBC UNIDATA in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
alegon
 
Posts: n/a

Default ERROR ODBC UNIDATA - 09-04-2006 , 07:48 AM






HI,
I AM A BEGINNER IN UNIDATA ODBC. I AM WORKING WITH STUDIO 2005 TO HAVE
ACCESS UNIDATA DATABASE AND THIS HAPPENING AN ERROR.

"Connection Failed : Unable to cast object of type
'IBMU2.UODOTNET.UNICOMMAND' to type 'UNIOBJECTSLIB.UNICOMMAND'

IN LINE cmd = "us1.CreateUniCommand()"

THE PROGRAM :

Dim us1 As UniSession = Nothing
Dim cmd As UniCommand = Nothing

us1 = UniObjects.OpenSession("207.209.240.15", "AGOADM", "CCss58,
"DONNEES.BR")
cmd = us1.CreateUniCommand() <--- Line ERROR
cmd.Command = "LIST BP"
cmd.Execute()
Dim response_str As String
response_str = cmd.Response
MsgBox(" Response from UniCommand :" + response_str)

WHAT IT CAN BE?


Reply With Quote
  #2  
Old   
Symeon
 
Posts: n/a

Default Re: ERROR ODBC UNIDATA - 09-04-2006 , 08:29 AM






Hi Alegon - Not sure if it is a copy and paste error but there is a
missing closing quote at the end of the password argument of the
OpenSession

e.g it should be
us1 = UniObjects.OpenSession("207.209.240.15", "AGOADM", "CCss58",
"DONNEES.BR")


rgds
Symeon.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.