Re: How to use perl dbi to create a database

2010-06-29 Thread Martin Evans
Ashish Mukherjee wrote: > http://search.cpan.org/~timb/DBI-1.611/DBI.pm#data_sources > > This is how you can check for existence of a database. > > - Ashish That won't help you with some DBDs e.g., with DBD::ODBC this returns a list of data sources and not databases. In DBD::ODBC a data source d

Re: How to use perl dbi to create a database

2010-06-29 Thread Ashish Mukherjee
http://search.cpan.org/~timb/DBI-1.611/DBI.pm#data_sources This is how you can check for existence of a database. - Ashish On Mon, Jun 28, 2010 at 2:21 PM, Sharma, Sumit wrote: > Hello, > > > > I am trying to use Perl to identify if a given database exists or not > and if it doesn't create the

Re: How to use perl dbi to create a database

2010-06-29 Thread Darren Duncan
Owen wrote: On Mon, 28 Jun 2010 04:51:45 -0400 "Sharma, Sumit" wrote: I am trying to use Perl to identify if a given database exists or not and if it doesn't create the database and then connect to it. Is there any way using Perl DBI to first identify whether a given database exists or not if