HI, I Changed the code still its giving error.
use DBI; my $user = "user"; my $passwd = "user"; $dbh = DBI->connect("dbi:Sybase:host=10.89.40.35;port=2640;databas +e=master",$user, $passwd);

The error are ------ install_driver(Sybase) failed: Can't locate DBD/Sybase.pm in @INC (@INC contains : C:/Perl/site/lib C:/Perl/lib .) at (eval 3) line 3. Perhaps the DBD::Sybase perl module hasn't been fully installed, or perhaps the capitalisation of 'Sybase' isn't right. Available drivers: CSV, DBM, ExampleP, File, Gofer, ODBC, Oracle, Pg, Proxy, SQL ite, Sponge, mysql. at sybaseconnect.pl line 6.

I am trying to connect a remote server(Sybase). Sybase is not installed locally in my machine. All the drivers is installed properly. i am using active perl 5.14. My local machine is in windows and the sybase is installed in Sun solaris machine. Please help.

Thanks in advance.

In reply to unable to connect sybase DB in windows by rammoorthi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.