Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to draw an image using form controls? Pin
Pete O'Hanlon15-Sep-16 22:04
mvePete O'Hanlon15-Sep-16 22:04 
QuestionCalling a stored procedure from C# failing Pin
Member 1274201915-Sep-16 5:35
Member 1274201915-Sep-16 5:35 
AnswerRe: Calling a stored procedure from C# failing Pin
#realJSOP15-Sep-16 5:43
mve#realJSOP15-Sep-16 5:43 
GeneralRe: Calling a stored procedure from C# failing Pin
Member 1274201915-Sep-16 5:45
Member 1274201915-Sep-16 5:45 
AnswerRe: Calling a stored procedure from C# failing Pin
OriginalGriff15-Sep-16 5:51
mveOriginalGriff15-Sep-16 5:51 
GeneralRe: Calling a stored procedure from C# failing Pin
Member 1274201915-Sep-16 6:28
Member 1274201915-Sep-16 6:28 
GeneralRe: Calling a stored procedure from C# failing Pin
OriginalGriff15-Sep-16 6:42
mveOriginalGriff15-Sep-16 6:42 
GeneralRe: Calling a stored procedure from C# failing Pin
Member 1274201915-Sep-16 7:01
Member 1274201915-Sep-16 7:01 
I'm embarrassed to say that my C# code was adding the quotes around the argument being passed because a long time ago(I think it was Monday) I wanted the SP to take a list of strings and check to see if any of them matched the item_ids in the view the SP was searching.

Here is how my SP was originally looking before I started messing with it.

@ItemsIDS AS VARCHAR(max)
AS

BEGIN

SET NOCOUNT ON


select item_id from q_Warehouse80_OOS_ItemsNeedingNotification where item_id in(@ItemsIDS)


END

As you can see I am using the in qualifier which requires the arguments being passed in the @ItemsIDS string to be separated by single quotes.

That's why the quotes were in the argument that I was passing to the SP.

So here I am back to square one trying to figure out why the SP doesn't work when I pass (in this case) one argument in the @ItemsIDS variable.
GeneralRe: Calling a stored procedure from C# failing Pin
OriginalGriff15-Sep-16 8:05
mveOriginalGriff15-Sep-16 8:05 
GeneralRe: Calling a stored procedure from C# failing Pin
Member 1274201915-Sep-16 11:07
Member 1274201915-Sep-16 11:07 
GeneralRe: Calling a stored procedure from C# failing Pin
OriginalGriff15-Sep-16 11:29
mveOriginalGriff15-Sep-16 11:29 
GeneralRe: Calling a stored procedure from C# failing Pin
Luc Pattyn15-Sep-16 21:12
sitebuilderLuc Pattyn15-Sep-16 21:12 
GeneralRe: Calling a stored procedure from C# failing Pin
OriginalGriff15-Sep-16 21:15
mveOriginalGriff15-Sep-16 21:15 
QuestionHow to call store procedure which return multiple result set with EF code first Pin
Tridip Bhattacharjee15-Sep-16 5:11
professionalTridip Bhattacharjee15-Sep-16 5:11 
AnswerRe: How to call store procedure which return multiple result set with EF code first Pin
OriginalGriff15-Sep-16 5:42
mveOriginalGriff15-Sep-16 5:42 
GeneralRe: How to call store procedure which return multiple result set with EF code first Pin
Pete O'Hanlon15-Sep-16 5:43
mvePete O'Hanlon15-Sep-16 5:43 
GeneralRe: How to call store procedure which return multiple result set with EF code first Pin
OriginalGriff15-Sep-16 5:59
mveOriginalGriff15-Sep-16 5:59 
GeneralRe: How to call store procedure which return multiple result set with EF code first Pin
Pete O'Hanlon15-Sep-16 9:05
mvePete O'Hanlon15-Sep-16 9:05 
QuestionEF code first and out type parameter in store procedure Pin
Tridip Bhattacharjee15-Sep-16 5:11
professionalTridip Bhattacharjee15-Sep-16 5:11 
AnswerRe: EF code first and out type parameter in store procedure Pin
Dave Kreskowiak16-Sep-16 3:51
mveDave Kreskowiak16-Sep-16 3:51 
QuestionHow to read single value return by store proc with EF code first Pin
Tridip Bhattacharjee15-Sep-16 5:10
professionalTridip Bhattacharjee15-Sep-16 5:10 
AnswerRe: How to read single value return by store proc with EF code first Pin
Pete O'Hanlon15-Sep-16 5:42
mvePete O'Hanlon15-Sep-16 5:42 
QuestionTask Canceled Exception Pin
Kevin Marois14-Sep-16 16:59
professionalKevin Marois14-Sep-16 16:59 
AnswerRe: Task Canceled Exception Pin
Super Lloyd14-Sep-16 17:55
Super Lloyd14-Sep-16 17:55 
Questionwhat is difference between LINQ and EF Pin
Tridip Bhattacharjee14-Sep-16 3:49
professionalTridip Bhattacharjee14-Sep-16 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.