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. Database Connectivity Error....

Database Connectivity Error....

Scheduled Pinned Locked Moved C#
csharpdatabasehelp
4 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.
  • C Offline
    C Offline
    codingrocks
    wrote on last edited by
    #1

    I am doing a windows application.. I was working well with it and suddenly a form shows error... i am using stored procedures to insert and retrieve data ...and it seems that the stored procedure is correct.. in C#.net code**

    command.ExecuteNonQuery();

    the error handler points to this and puts error "Failed to convert parameter value from a String to a Int32."**

    SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

    A M 2 Replies Last reply
    0
    • C codingrocks

      I am doing a windows application.. I was working well with it and suddenly a form shows error... i am using stored procedures to insert and retrieve data ...and it seems that the stored procedure is correct.. in C#.net code**

      command.ExecuteNonQuery();

      the error handler points to this and puts error "Failed to convert parameter value from a String to a Int32."**

      SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

      A Offline
      A Offline
      AikinX
      wrote on last edited by
      #2

      sajan ss wrote:

      "Failed to convert parameter value from a String to a Int32."

      sajan ss, This error says that you mistakenly provide String instead of int to stored procedure. Could you give us more code for analyze. I want to get the listing where you are filling the stored procedure parameters and signature of calling stored procedure.

      1 Reply Last reply
      0
      • C codingrocks

        I am doing a windows application.. I was working well with it and suddenly a form shows error... i am using stored procedures to insert and retrieve data ...and it seems that the stored procedure is correct.. in C#.net code**

        command.ExecuteNonQuery();

        the error handler points to this and puts error "Failed to convert parameter value from a String to a Int32."**

        SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

        M Offline
        M Offline
        Muammar
        wrote on last edited by
        #3

        There's not much you're showing from your code, but if you're sure the error is fired exactly from that line, then double check your stored procedure parameter values and make sure the types are matching. Cheers,


        Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

        C 1 Reply Last reply
        0
        • M Muammar

          There's not much you're showing from your code, but if you're sure the error is fired exactly from that line, then double check your stored procedure parameter values and make sure the types are matching. Cheers,


          Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

          C Offline
          C Offline
          codingrocks
          wrote on last edited by
          #4

          thanks for that information.... type mismatched ... i made it correct.....

          SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

          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