Hi friends,

Need urgent help..

I am trying to pull data from sybase DB using ODBC connection...

Here follows the code I am using...
I am not getting the output. Please let me know where I am wrong
Find each step...

1.      $db = new Win32::ODBC("DSN=my DSN;UID=UID;PWD=PWD")
        This is successful

2.      $result =""
        This is successful

3.      $result = $query_temp[0][0]; (query_temp contains my query)
        This is successful

4.      $db->sql($result)
        This is successful (Value of $db is
"Win32::ODBC=HASH(0x1ce3e14)")

5.      $db->FetchRow()
        This is successful (Value of $db is
"Win32::ODBC=HASH(0x1ce3e14)")

6.      $x=$db->Data("Desc") (Desc is name of the field)
        This is successful


Regards,
Anil

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to