Michael (mholloway@core-techs.net) writes:[color=blue]
> This one's really got me. I have a VB.NET (version 1.1.4322) project
> that provides an easy way to execute stored procedures on a generic
> level. When I run the code on computer A (running SQL Server 2000
> version 08.00.0194) the code works great. However, computer B
> (running SQL Server 2000 version 08.00.0534) bombs when I try to
> execute the sproc saying 'Could not find stored procedure
> 'spmw_ReadByPage'. My thought process went as follows...[/color]
8.00.194 is the RTM release, and 534 is SP2. The most current service
pack is SP3, which is build 760. Many run with a security fix which
has build number 818.
[color=blue]
> 6. At this point I guess that what I've come to is....that in version
> 08.00.0534 of SQL SERVER 2000, I could NOT execute any stored
> procedure in VB.NET if it accepted parameters (Of course, I mean by
> using the OleDBCommand object)[/color]
I am right to assume that if you bave no parameters you will actually
use CommandType.Text? I cannot really be sure if I can conclude this
from your VB code.
Anyway, maybe you should add a parameter for the return value. Name
RETURN_VALUE, type OleDbTypes.Integer and Direction.ReturnValue. This
should be first parameter.
You could also use the Profiler to see what the program submits to
SQL Server.
--
Erland Sommarskog, SQL Server MVP,
sommar@algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp