Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Output/Return

Output/Return

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amit Kumar G
    wrote on last edited by
    #1

    Any specific guidelines when we should go for return/output wrt SQL Server stored procedures. If i have only one output to return? Thanks, Amit

    P M 2 Replies Last reply
    0
    • A Amit Kumar G

      Any specific guidelines when we should go for return/output wrt SQL Server stored procedures. If i have only one output to return? Thanks, Amit

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Does your app need to work with the returned value?

      "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

      A 1 Reply Last reply
      0
      • P Paul Conrad

        Does your app need to work with the returned value?

        "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

        A Offline
        A Offline
        Amit Kumar G
        wrote on last edited by
        #3

        Means?

        P 1 Reply Last reply
        0
        • A Amit Kumar G

          Means?

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Ummm, does your app do anything with the returned value?  E.g. report the row count, put the returned values in a datagrid, etc?

          "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

          1 Reply Last reply
          0
          • A Amit Kumar G

            Any specific guidelines when we should go for return/output wrt SQL Server stored procedures. If i have only one output to return? Thanks, Amit

            M Offline
            M Offline
            Mike Dimmick
            wrote on last edited by
            #5

            I tend to reserve the return value for succeeded/failed notifications, where I haven't used RAISERROR (which throws a SqlException in .NET client code). The return value can only be an integer, while output parameters can be any type. I rarely use output parameters unless it's an out-of-band value, not associated with the other data in a result set, and I don't want to return an extra result set just containing that data.

            Stability. What an interesting concept. -- Chris Maunder

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups