Quantcast
Viewing all articles
Browse latest Browse all 4841

error when call sql server stored procedure

hello everybody,

I'm working with MII 14 and I want call a SqlServer stored procedure provided from my customer.

I configured a FixedQuery like this:

 

[dbo].[spElencoEntrateUscite_AV] @delta = 0, @daquando='130101', @CompanyID='000002', @Elenco = @MyCursor OUTPUT

 

but when i test the query i have back the error:

 

com.microsoft.sqlserver.jdbc.SQLServerException: Must declare the scalar variable "@MyCursor".

 

 

I tried also to set the query like this:

 

[dbo].[spElencoEntrateUscite_AV]

 

and pass Parameters:

 

0

130101

000002

OUTPUT

 

but i have this error:

 

com.microsoft.sqlserver.jdbc.SQLServerException: Procedure or function 'spElencoEntrateUscite_AV' expects parameter '@Elenco', which was not supplied.

 

 

Any suggestion?

thanks in advance

 

Alex


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>