|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[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.
Your Input Matters 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! |
||
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: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: |
use Win32::ODBC;
# start wzunzip vars.
my ($start_unzip_time,$end_unzip_time);
my $WINUNZIP_TIMEOUT=240; # seconds time out for autowinzip
my $winunzip_process_time;
my $winunzip_kicked_off;# controls wzunzip call
my $WINUNZIP_COMMAND='C:\\Program Files\\WinZip\\wzunzip';
my $UnZipFile;
my $TempUnZipFolder;
my $long_zip_database_filename = "Long ZIP Database Name.txt"; # long zip filenames for test database
$DriverType = "Microsoft Access Driver (*.mdb)";
$DSN = "MS Access Database TMP";
$Dir = 'C:\Program Files\Perl Express\test';
$uid = "";
$password = '';
$DBTable = 0;
# Configures temporary DSN
Win32::ODBC::ConfigDSN(ODBC_ADD_DSN, $DriverType,
("DSN=$DSN",
"Description=Win32 ODBC Test DSN for Perl",
"DBQ=$Dir\\$DBase",
"DEFAULTDIR=$Dir",
"UID=$uid", "PWD=$password")) or
die "ConfigDSN(): Could not add temporary DSN".Win32::ODBC::Error();
$db = new Win32::ODBC($DSN) or die "Connect to database failed.\nError: ".Win32::ODBC::Error()."\n";
# Prints data from the table No. $DBTable
&PrintDatabase($db);
# Remove temporary DSN
Win32::ODBC::ConfigDSN(ODBC_REMOVE_DSN, $DriverType, "DSN=$DSN") or
die "ConfigDSN(): Could not remove temporary DSN because ".Win32::ODBC::Error();
sub PrintDatabase {
my $db = shift(@_);
#my @table = $db->TableList;
my @column;
my $column;
@column = $db->FieldNames();
printf("%15.15s ", $_) for @column;
print "\n";
printf("%15.15s ", "_" x 15) for @column;
print "\n";
while($db->FetchRow()) {
my %Data = $db->DataHash();
defined($Data{$_}) ? printf("%15.15s ", $Data{$_}) : printf("%15.15s ", "") for @column;
print "\n";
}
print "\n";
}
$db->Close();
|
Advertisement
| Hall of Fame |