Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2010

    Unanswered: Issues with stored procedure through ODBC


    I am running a SQL stored procedure that has been written by someone else for me and if I run it through SQL Query Analyzer is works fine but when I run it through my program via a ODBC it doesn't return a value it just returns the number of rows affected.

    The strange thing is that if I run a stored procedure which doesn't pass any variables it returns the value no problem.

    I have tried running the procedure using ODBCView and I get the same result.

    I know there isn't much info here but just wondered if anyone else had come across this issue.

    Below is the command I use to call the procedure:

    EXEC [RPA].[dbo].[getPdfFilenameNo] '12345', 'jamesisa'

    The procedure does a select and then updates if this helps?

  2. #2
    Join Date
    Apr 2002
    Toronto, Canada

    move, not re-post

    now you've got two identical threads in the same forum

    (well, except for the replies, which are different) | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    Set nocount on
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts