I'm trying to implement automated logging of some hardware information to a MSSQL DB at logontime but i keep getting the errormessage "Script error: IDispatch pointers not allowed in expressions!" in both v. 4.11 and v. 4.12. The script looks like this:
$Komm = "(a string containing a call to stored procedure wit parameters)"

$SQLConn = CreateObject("ADODB.Connection")
$SQLConn.ConnectionString = "Driver={SQL Server};Provider=SQLOLEDB;Server=xxxx;Database=nnnn;Trusted_Connection=Yes"
$SQLConn.ConnectionTimeout = 30
$SQLConn.Cursorlocation=3
$SQLConn.Open
$SQLConn.Execute($Komm)

The SQL-orders contained in $Kom are executed ok on the server but the script terminates, allowing me only one SQL-order in the last line for the script.

I'll be gratefull for any help!
_________________________
I never visited a more inspiring BBS than this.