Since we are on this thread, perhaps I should mention that I have been struggling to connect to MS SQL via
DBD::Sybase for the last two days. Connection to Sybase/Linux via DBD::Sybase is just fine, but connecting to MS SQL 2000 leads to problems
use DBI;
my $data_source = "dbi:Sybase:database=SynergyOne;server=MSSQL";
my $username = 'sa';
my $auth = '';
+
+
my $dbh = DBI->connect($data_source, $username, $auth)
or die "no connection: $DBI::errstr";
[tbone@MDB tbone]$ ~/bin/db-connect.pl
DBI connect('database=SynergyOne;server=MSSQL','sa',...) failed: at /
+home/tbone/bi\
n/db-connect.pl line 9
no connection: OpenClient message: LAYER = (1) ORIGIN = (2) SEVERITY =
+ (6) NUMBER = (151)
Message String: ct_connect(): user api layer: internal Client Library
+error: A connection to the server must exist on the connection struct
+ure before this routine can
be called.
[tbone@MDB tbone]$
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.