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. General Programming
  3. C#
  4. Passing boolean parameter to an oracle procedure

Passing boolean parameter to an oracle procedure

Scheduled Pinned Locked Moved C#
csharporacletutorialquestion
8 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.
  • S Offline
    S Offline
    Subin Mavunkal
    wrote on last edited by
    #1

    Hi , Could you please let me know how to pass a boolean value to an oracle parameter ?. When I googled I found that boolean data type is not supported in .net With Regards

    L E 2 Replies Last reply
    0
    • S Subin Mavunkal

      Hi , Could you please let me know how to pass a boolean value to an oracle parameter ?. When I googled I found that boolean data type is not supported in .net With Regards

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Subin Mavunkal wrote:

      boolean data type is not supported in .net

      It most certainly is supported in .NET, http://msdn.microsoft.com/en-us/library/wts33hb3(v=VS.71).aspx[^]

      S 1 Reply Last reply
      0
      • L Lost User

        Subin Mavunkal wrote:

        boolean data type is not supported in .net

        It most certainly is supported in .NET, http://msdn.microsoft.com/en-us/library/wts33hb3(v=VS.71).aspx[^]

        S Offline
        S Offline
        Subin Mavunkal
        wrote on last edited by
        #3

        which is not there in 'OracleType' structure

        L 1 Reply Last reply
        0
        • S Subin Mavunkal

          which is not there in 'OracleType' structure

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Subin Mavunkal wrote:

          'OracleType' structure

          What exactly does that have to do with .NET supporting Boolean data types?

          S 1 Reply Last reply
          0
          • L Lost User

            Subin Mavunkal wrote:

            'OracleType' structure

            What exactly does that have to do with .NET supporting Boolean data types?

            S Offline
            S Offline
            Subin Mavunkal
            wrote on last edited by
            #5

            I want to pass a boolean value to an oracle parameter .My doubt is how to create .net oracle parameter for a boolean data type and pass that value. Even entity framework is not supported for stored procedures with boolean parameters

            L 1 Reply Last reply
            0
            • S Subin Mavunkal

              I want to pass a boolean value to an oracle parameter .My doubt is how to create .net oracle parameter for a boolean data type and pass that value. Even entity framework is not supported for stored procedures with boolean parameters

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Subin Mavunkal wrote:

              boolean value to an oracle parameter

              That has nothing at all to do with .NET supporting Boolean data types. You should asking this in the database forum where database people hang out. And you might be helped by reading http://stackoverflow.com/questions/4079662/boolean-parameter-for-oracle-stored-procedure[^]

              S 1 Reply Last reply
              0
              • L Lost User

                Subin Mavunkal wrote:

                boolean value to an oracle parameter

                That has nothing at all to do with .NET supporting Boolean data types. You should asking this in the database forum where database people hang out. And you might be helped by reading http://stackoverflow.com/questions/4079662/boolean-parameter-for-oracle-stored-procedure[^]

                S Offline
                S Offline
                Subin Mavunkal
                wrote on last edited by
                #7

                That is not the case. SPs are already written and unfortunately we can not change it :(. This is the issue The function 'SP_GBM_AUDIT_FIELD_ENTRY' has a parameter 'BCHECK' at parameter index 5 that has a data type 'pl/sql boolean' which is currently not supported for the target .NET Framework version

                1 Reply Last reply
                0
                • S Subin Mavunkal

                  Hi , Could you please let me know how to pass a boolean value to an oracle parameter ?. When I googled I found that boolean data type is not supported in .net With Regards

                  E Offline
                  E Offline
                  Ennis Ray Lynch Jr
                  wrote on last edited by
                  #8

                  Or at least most flavors don't. Usually dba's will use Char(1) Y or N to indicate boolean. I have seen quite a lot of difference. Find what ever your DB is using and pass it in: Code:

                  if(value== true)
                  parameter = "Y"
                  else if(value==false)
                  paramter = "N"
                  else
                  parameter = "FileNotFound" // : )

                  Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost "All users always want Excel" --Ennis Lynch

                  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