Advertisement

02.20.2008 at 05:02PM PST, ID: 23179764
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Cannot Connect to Access DSN with Perl ("Use of uninitialized value in die")

Tags: Perl, Perl Script connection to Access, Perl, IE
Hey Guys, I am working on a project for school and I cannot figure out what is wrong with my code. I have an Access .mdb we are supposed to connect to with a ODBC DSN.  I created the DSN and have IIS running on my laptop. When I enter the path to the Perl script to connect the page comes back with "Use of uninitialized value in die at c:\inetpub\wwwroot\ksmee\select_to_table.pl line 9.
-1032[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'.  It is already opened".  The .mdb is not open and I don't see what is wrong with line 9.
Any help would be appreciated. Thanks! Kevin
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
#!c:\perl\bin\perl.exe -w 
  ### use strict;
  use CGI ':standard';
  use Win32::ODBC;  #use ODBC package
 
  my $db;
 
  ### Connect to a data source
  $db = new Win32::ODBC("DSN=accessDSN")
     or die Win32::ODBC::Error();
 
 ### Prepare and Execute a statement
 if ($db->Sql("SELECT CustID,Last,First FROM customer")) {
  print "SQL Error: " . $db->Error() . "\n";
   $db->Close();
   exit;
 }
 
 ### Fetch rows from data source and present in an HTML table 
 print "Content-type: text/html\n\n";
 print "<center><b><i><h2><font COLOR=red>Customer Data from  Database</font></h2></i></b>";
 print "<table BORDER=1 CELLPADDING=10>";
 print    "<tr BGCOLOR=yellow><th>Customer ID</th>";
 print                       "<th>Last Name</th>";
 print                       "<th>First Name</tr>";
 while ($db->FetchRow) {
    my ($CustID,$Last,$First) = $db->Data();  ### Get data values for the row
    print "<tr><td ALIGN=center>" . $CustID . "</td><td>";
    print                           $Last . "</td><td>";
    print                           $First . "</td></tr>";
}
print "</center></table>";
 
### Disconnect
$db->Close();
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: k_smee
Solution Provided By: Adam314
Participating Experts: 2
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
02.20.2008 at 06:16PM PST, ID: 20944378

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.20.2008 at 06:26PM PST, ID: 20944427

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.20.2008 at 09:24PM PST, ID: 20945196

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 11:28AM PST, ID: 20950974

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 11:38AM PST, ID: 20951070

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 11:48AM PST, ID: 20951157

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 12:22PM PST, ID: 20951494

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 12:36PM PST, ID: 20951600

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 12:44PM PST, ID: 20951670

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 12:53PM PST, ID: 20951739

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 01:19PM PST, ID: 20951964

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 02:16PM PST, ID: 20952464

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 02:43PM PST, ID: 20952684

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 03:03PM PST, ID: 20952835

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 03:53PM PST, ID: 20953299

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 04:08PM PST, ID: 20953416

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 09:05PM PST, ID: 20954765

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.22.2008 at 06:14AM PST, ID: 20957416

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628