Click here to Skip to main content
12,633,373 members (32,166 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted

About insert value in database

, 25 Jan 2013 CPOL
The SqlCommand calling the ExecuteNonQuery() method only has 1 "m" while you declared it with 2. com.ExecuteNonQuery() should be comm.ExecuteNonQuery()Also, I would declare your SqlConnection in the same scope your other code is in.

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 24-Jan-13 23:49 Available Richard C Bishop
Updates in content. 67 changes had been made.
1 No 24-Jan-13 23:48 Available Richard C Bishop

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Richard C Bishop
Software Developer
United States United States
I have been on my software developing journey since May 2011. I was dumbfounded at the shear amount of information involved when first starting out but have become comfortably numb to it.

My base knowledge is in ASP.Net and C#, but I am continuously expanding upon that.

I am now a SharePoint Engineer and have been working with AngularJS, REST api, and the new app model for SharePoint, both provider hosted and SharePoint hosted.

You may also be interested in...

Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 25 Jan 2013
Article Copyright 2013 by Richard C Bishop
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid