Hi all,
We are facing a issue in fetching data from microsoft SQL Server 2000 (installed on another machine) using iwperl.
We have created a test.pl to test the DSN and database connection and uses the same function as in our .ipl file. The code for our test.pl is:
use DBI;
use DBD:

DBC;
my $data_type = "locale";
#connect to the al2 database
my $dbh = DBI->connect( 'DBI

DBC:myDSN','user_name','password')
|| die "cannot connect to database: $DBI::errstr\n";
my $sql = "select locale_code, language_desc from locale";
my $sth = $dbh->prepare($sql);
my $rv = $sth->execute();
# Read the values and populate the select list
while (
@data = $sth->fetchrow_array()) {
$data[1] =~ s/&/&/g;
print $data[1];
}
$sth->finish;
$dbh->disconnect;
This works fine for us. But when we try to connect the same database using same DSN and fire the same query through our .ipl script (i.e. from teamsite), we received an error message which says:
[Microsoft][ODBC SQL Server Driver][Named Pipes]Access denied. (SQL-08001)
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionOpen (CreateFile()). (SQL-01000)(DBD: db_login/SQLConnect err=-1)
I have explored documents, searched on net also. But wasn't able to find the solution. It would be a great help if anyone can help me in this.
Our machine and teamsite configuration is as follows:
OS: Microsoft Windows 2000 Server (SP4)
Teamsite: 6.5 SP3
SQL Server 2000 is installed on Windows 2003.
Thanks in advance...