Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have a stored procedure which rweturns a char variable

I am getting error in calling the SP in csharp with LINQ concept.

sp:sp_Sample<br />

I declared

System.Nullable<char> outx=null;<br />
</char>


And I called sp in codebehind as,

sp_Sample(ref outx)<br />

But it is not working for me.
Can anyone tell me the correct way of calling SP returning a char parameter using LINQ.


Thanks in advance.
Posted
Updated 8-Sep-10 3:06am
v4
Comments
[no name] 8-Sep-10 8:46am    
It might be more helpful if you included the code that is actually executing the query
TheyCallMeMrJames 8-Sep-10 15:55pm    
What is the error? Is it a compiler or runtime error? Are you using the DBML designer? If so, does your stored procedure call match the definition in the DBML? Does that match the stored proc signature? Did you make a change and forget to update the reference?

Don't know what the problem is, but it is easy in ADO .NET
 
Share this answer
 
Have you setup a connection string? Is that string connect?
Make sure you are able to connect to the database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900