Streen has asked for the wisdom of the Perl Monks concerning the following question:
And then I get the following Error:#!/usr/bin/perl -w use strict; use DBI; my $dbhost = 'MUCSQL64'; my $dbuser = 'User'; my $dbpass = 'Password'; my $dbname = 'LotTracking'; my $dbh; #Database Handler $dbh = DBI->connect("dbi:ODBC:DSN=$dbname;host=$dbhost", $dbuser, $dbpass, {'RaiseError' => 1});
What did I wrong?DBI connect('DSN=LotTracking;host=MUCSQL64','User',...) failed: [Micro +soft][ODBC Driver Manager] Data source name not found and no default +driver specified (SQL-IM002)(DBD: db_login/SQLConnect err=-1) at H:\w +ork\Tracking System\ODBCTestingUkas.pl line 17
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to connect to a MsSql Database
by Samy_rio (Vicar) on Oct 26, 2005 at 11:13 UTC | |
|
Re: Trying to connect to a MsSql Database
by marto (Cardinal) on Oct 26, 2005 at 11:07 UTC | |
by arunvelusamy (Monk) on Oct 26, 2005 at 11:17 UTC | |
|
Re: Trying to connect to a MsSql Database
by jesuashok (Curate) on Oct 26, 2005 at 11:14 UTC |