Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Visual Studio 2013 ?


  • Please log in to reply
1 reply to this topic

#1 rayanwaqas

rayanwaqas

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:11:40 AM

Posted 07 January 2018 - 01:28 AM

Hi Everyone please help me.

when i using the visual studio and apply the insert command all code is good but  command.ExecuteNonQuery()  query given an error anyone can tell what wrong with my code?

 

 

 

Dubai web development


Edited by rayanwaqas, 07 January 2018 - 01:32 AM.


BC AdBot (Login to Remove)

 


#2 RecursiveNerd

RecursiveNerd

  • Malware Study Hall Senior
  • 293 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Louisville, KY
  • Local time:01:40 AM

Posted 07 January 2018 - 12:16 PM

In order to help you out a little more, it would be helpful to have some more information since your question is very open-ended (since ExecuteNonQuery() can raise several exceptions on its own). See the relevant MSDN documentation.

 

It you could, please answer the following questions:

  • What database are you executing against? I'm assuming you're using the built in System.Data.SqlClient, so it's going to be some sort of Sql syntax-compatible database.
  • What is the exception that you are receiving when executing the statement? As mentioned above, that command can raise several different exceptions
  • Can you include a code sample showing how you open the database connection and how you're executing the commands?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users