Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
507 B

  1. <Job ID="ADOSample2">
  2. <script language=PerlScript runat=server>
  3. $conn=$WScript->CreateObject('ADODB.Connection', 'MyWSH_');
  4. $conn->Open('ADOSamples');
  5. if($conn->{State} == 1) {
  6. $WScript->Echo("Connection Successful!")
  7. }
  8. else {
  9. $WScript->Echo("Connection Failed ...");
  10. }
  11. sub MyWSH_ConnectComplete {
  12. $WScript->Echo("ConnectComplete was fired ... ");
  13. }
  14. sub MyWSH_WillConnect {
  15. $WScript->Echo("WillConnect was fired ... ");
  16. }
  17. </script>
  18. </Job>