Why are you so sure the error is at "note 2" rather than $session = OpenSession($dbh,$tsid);
In reply to Re^3: DBI Problem by huck in thread DBI Problem by tultalk