Jon has asked for the wisdom of the Perl Monks concerning the following question:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: perl and microsoft sql server
by Ovid (Cardinal) on Sep 29, 2000 at 21:49 UTC | |
This script was a quick hack (which explains the poor commenting), but should give you a nice starting point for writing your own: Hope this helps!
Cheers, Join the Perlmonks Setiathome Group or just go the the link and check out our stats. | [reply] [d/l] [select] |
|
RE: perl and microsoft sql server
by lhoward (Vicar) on Sep 29, 2000 at 21:26 UTC | |
| [reply] | |
by extremely (Priest) on Sep 30, 2000 at 02:44 UTC | |
If you are working from Linux or other GNUish/BSD ish platforms, you can also install the Sybase libraries and treat the M$SQL server as a Sybase machine. Handy trick once in a while. -- | [reply] |
|
(dchetlin: FreeTDS) Re: perl and microsoft sql server
by dchetlin (Friar) on Sep 30, 2000 at 04:33 UTC | |
You'll find that the documentation for being able to talk to an MS SQL server is quite good, I think. You should also get your hands on a program called sqsh, which is a free software command line SQL interface to Sybase/MS SQL. Basically, it's to those databases what sqlplus is to Oracle. Also, you'll want to consider your choices in terms of a Perl interface to the database. The obvious choice is DBI, using DBD::Sybase. However, DBD::Sybase is still relatively young and unstable, and it doesn't do a lot of things one might want. Unless you need your database code to be written so that it could be easily ported to another database, I would recommend using the Sybase::* modules instead. They aren't DBI-based, but will get you mostly everything you need from DBI except the modularity. (Sybase::* is the Perl5 version of sybperl, the TDS equivalent of oraperl). Both DBD::Sybase and Sybase::* are written and maintained by Michael Peppler, and he prefers the latter, so that's what I generally use when forced to interface with MS SQL. -dlc | [reply] |
by extremely (Priest) on Sep 30, 2000 at 06:03 UTC | |
++'ed with my last point of the day 'cause I shoulda said dat. Also, check TDS carefully before you use it. It tortured me to the point of exasperation one day. Also, your DBAdmin may not like having to use DBAUTH mode rather than MSAUTH mode. Too bad, MSAUTH mode is still blackbox evil... -- | [reply] |