Philip Bondi (pjbondi@SystemDatabase.com) writes:
> I want to get the output from xp_msver through
> ExecuteWithResultsAndMessage2 SQL-DMO and perl. This is the script
> I've got so far. Can anyone give me a few more pointers?
And the problem is?
OK, so I ran your script, and this line:
> $qr = $server->ExecuteWithResultsAndMessages2( $c, $m );
resulted in:
Win32::OLE(0.1701) error 0x8002000f: "Parameter not optional"
in METHOD/PROPERTYGET "ExecuteWithResultsAndMessages2" at slask.pl line 51
This is because you are passing an undef in $m. The correct call would be:
$qr = $server->ExecuteWithResultsAndMessages2( $c, \$m );
--
Erland Sommarskog, SQL Server MVP,
esquel@sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp