Generally print statements are used for debug purposes. Even if we remove all
print statements we will need it later when we will need to debug the sp.
If we ignore the purpose we use the print statement, I guess there's a bug
in SQL Server 2000. Am I right?
> Generally print statements are used for debug purposes. Even if we
> remove all print statements we will need it later when we will need to
> debug the sp.
>
> If we ignore the purpose we use the print statement, I guess there's a bug
> in SQL Server 2000. Am I right?
That message is an indication of that there is a bug somewhere. The
message itself comes from SqlClient, the client API that SQL Server
Management Studio uses.
It doesn't seem to matter where the remote procedure is located. I get
the error both when the procedure is on SQL 2000 and on SQL 2005.
But I only get the error if I call the remote procedure from SQL 2000.
And only if I connect with Mangement Studio. That is, I get no error when
I connect with Query Analyser (ODBC), SQLCMD (OLE DB) or ISQL (DB-Library).
If your real application is a .Net application, you have a problem. If your
application does not use SqlClient you can sleep over.

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx