sql server - how to discards the scalar value in stored procedure? -
please 1 tell me how discards scalar value in stored procedure?
this sp
create procedure testdata begin set nocount on; select c.customername,c.customercode, a.address, a.email,a.phone,a.zipcode customer c join address on c.customercode = a.customercode end go
this c# code
customerdataentities enty = new customerdataentities(); var productentity = enty.testdata123(); // error foreach statement cannot operate on variables of type int foreach (var prd in productentity) { } return customerlist;
thanks.
based on you're showing here, i'm assuming stored procedure set imported function. guess not mapping results of function entity type.
Comments
Post a Comment