home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_5c882b0d1ddf37fa471ff7c007cace1f
< prev
next >
Wrap
Text File
|
2000-03-15
|
560b
|
26 lines
<Job ID="Test">
<script language=PerlScript runat=server>
$conn=$WScript->CreateObject('ADODB.Connection', 'MyWSH_');
$conn->Open(<<EOF);
Provider=SQLOLEDB;
User ID=sa;
Catalog=Northwind;
EOF
if($conn->{State} == 1) {
$WScript->Echo("Connection Successful!")
}
else {
$WScript->Echo("Connection Failed ...");
}
sub MyWSH_ConnectComplete {
$WScript->Echo("ConnectComplete was fired ... ");
}
sub MyWSH_WillConnect {
$WScript->Echo("WillConnect was fired ... ");
}
</script>
</Job>