Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: Finding database DSN (Data Source Name)

Perl: Finding database DSN (Data Source Name)
{filelink=14651}

#!/usr/bin/perl
use strict;
use DBI;
my @drivers;
@drivers = DBI->available_drivers;
foreach my $driver (@drivers)
{
  print "Driver $driver";
  my @dsns = DBI->data_sources($driver);
  foreach my $dsn (@dsns)
  {
    print "DSN: $dsn";
  }
}

Users who found this page were searching for:

  • calculate day month years between two date difference in swing java programme
  • datainputstream example to get int from keyboard
  • python getfile *.txt
  • java bigdecimal 3.1415
  • perl dsn=$dsn

No comments yet.

Leave a Comment