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. .NET (Core and Framework)
  4. Error when I want to Insert data in a database(SQLEXPRESS)?

Error when I want to Insert data in a database(SQLEXPRESS)?

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpdatabasesysadminquestion
2 Posts 1 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.
  • M Offline
    M Offline
    maryam saboor
    wrote on last edited by
    #1

    Hi everybody I'm making a web custom control which is just for getting feedbacks from visitors so I have created a database and a dataset via SQRExpress and then in my send buttom click event I have this code: void _send_Click(object sender, EventArgs e) { FeedBackDBDataSetTableAdapters.FDTableTableAdapter ta=new FDTableTableAdapter(); tableAdapter.InsertQuery(Category, textBox1.text); tableAdapter.Dispose(); } The problem is here that after I run a project which contains this control and press the send buttom, this Error Appears: :wtf: :confused: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.) Does any one know why? thanks.

    M 1 Reply Last reply
    0
    • M maryam saboor

      Hi everybody I'm making a web custom control which is just for getting feedbacks from visitors so I have created a database and a dataset via SQRExpress and then in my send buttom click event I have this code: void _send_Click(object sender, EventArgs e) { FeedBackDBDataSetTableAdapters.FDTableTableAdapter ta=new FDTableTableAdapter(); tableAdapter.InsertQuery(Category, textBox1.text); tableAdapter.Dispose(); } The problem is here that after I run a project which contains this control and press the send buttom, this Error Appears: :wtf: :confused: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.) Does any one know why? thanks.

      M Offline
      M Offline
      maryam saboor
      wrote on last edited by
      #2

      I think that I found the answer to this problem,(of course if any one knows a better way it's very kind of him/her to post it to me). so my answer to me is this: :-\ probably when you want a SQLEXPRESS database to be included in a web custom control, and then drag the control to a web page the page can not log to database for any insertion or update. I made a SQl database some were out side the control and passed the connection string to a dataset in the control and I was very pleased to see it worked!!.

      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