Rob,
it works in the query analyzer of the enterprise manager, but it doesn't in the php script.
I get this message:
Warning: SQL error: [Microsoft][ODBC SQL Server Driver][SQL
Server]Cannot open a cursor on a stored procedure that has anything
other than a single select statement in it , SQL state 37000 in
SQLExecDirect in ./DP_get_SN_4_boardtype.php on line 123
I think I work with my first solution, it's not so comfortable, but it's working and I
can't spent a lot of time for debuging.
Thanks again
Andreas from Bavaria