cant not run stored procedure from input file (with cursor)

I try to run stored procedure under MS sql7, the stored procedure runs fine,
but with the exact same procedure, if I try to run from input file, it only
returned one row, then return me the error mesg:  'Cursor is not open'

I had several cursor declared in the stored procedure. and using
command line:
 c:\mssql7\binn\isql.exe /SServer /Uuser /Ppassward /i \\server\sproc.sql

the sproc.sql is the stored procedure file.

Please advise.

-----------== Posted via Deja News, The Discussion Network ==----------       Search, Read, Discuss, or Start Your Own