Updating a Database from WinForms Controls North Carolina

Old school programming, whereby the programmer reads control values and writes inline SQL, still works, but it's so 90s. If you are new to WinForms or Web programming but experienced, peruse the article and then master LINQ.

Local Companies

StreamLogic Inc.
704-771-1090
3030 Glen Summit Dr.
Charlotte, NC
D P Solutions Inc
336-854-7700
4411 W Market St
Greensboro, NC
Advantec Information Systems LLC
336-275-2832
2007 Yanceyville St
Greensboro, NC
Blue Lizard Technologies, inc.
(919) 858-8885
1151 Executive Circle
Cary, NC
Racarie Software
919-654-4560
201 Shannon Oaks Circle
Cary, NC
The Lead Tree
321-206-8283
306 North Rankin Street
Atkinson, NC
BuildLinks: Web-based Project Management for Home Builders
888-700-9470
3800 Paramount Parkway, Suite 100
Morrisville, NC
Software Design Inc
336-378-0900
1301 Carolina St
Greensboro, NC
Community Web
336-499-3001
133 Hicks St
Winston-Salem, NC
Quadland
(336) 714-7417
301 N. Main Street
Winston-Salem, NC

Introduction



So much about programming technology changes and a lot of it stays the same. One reader wrote and asked me how to update a database from WinForms controls (not a grid), writing SQL inline. I haven't used this approach in a while, so I had no ready-made examples. I did whip one up and send it to him, though. Another reader wrote and told me that my Sieve of Eratosthenes prime number algorithm sucked (his word, not mine), but after he told me that he had been writing it and re-writing it for 40 years I didn't feel so bad.

Of all of the reader email I get, just these two things alone reminded me that of course I don't know everything, and many of you are working at a widening level of experience. To that end, this article is an old school article that shows new-to-WinForms programmers how to read data from controls and contrive SQL that updates a database.

I would encourage anyone reading this article, working at this level, to immediately upgrade to stored procedures very quickly and then move on to LINQ. Inline SQL works fine, but it's so 90s. LINQ, LINQ to SQL, LINQ to Entities, and declarative programming will help you be much more productive and are much cooler technologies.



Describing the Scenario



Maybe you are a FoxPro programmer or one of the dwindling numbers of COBOL or assembler programmers finally moving over to Web and Windows programming with .NET, or maybe you are just getting started. (We were all there once, and in this business everyone is just getting started with some new technology—like Ruby, F#, or LINQ to Entities.) The challenge is how to get data from a WinForm control (or controls) into your database. The way you can do it (but fewer of us will going forward) is to read a value, format it as part of a SQL query, and invoke the SQL command.

Read the Rest of this Article at Developer.com

Featured Local Company

The Lead Tree

321-206-8283
306 North Rankin Street
Atkinson, NC

Regional Articles
- Updating a Database from WinForms Controls Albemarle NC
- Updating a Database from WinForms Controls Apex NC
- Updating a Database from WinForms Controls Arden NC
- Updating a Database from WinForms Controls Asheboro NC
- Updating a Database from WinForms Controls Asheville NC
- Updating a Database from WinForms Controls Bessemer City NC
- Updating a Database from WinForms Controls Boone NC
- Updating a Database from WinForms Controls Brevard NC
- Updating a Database from WinForms Controls Burlington NC
- Updating a Database from WinForms Controls Camp Lejeune NC
- Updating a Database from WinForms Controls Candler NC
- Updating a Database from WinForms Controls Cary NC
- Updating a Database from WinForms Controls Chapel Hill NC
- Updating a Database from WinForms Controls Charlotte NC
- Updating a Database from WinForms Controls Clayton NC
- Updating a Database from WinForms Controls Clemmons NC
- Updating a Database from WinForms Controls Clinton NC
- Updating a Database from WinForms Controls Concord NC
- Updating a Database from WinForms Controls Conover NC
- Updating a Database from WinForms Controls Dunn NC
- Updating a Database from WinForms Controls Durham NC
- Updating a Database from WinForms Controls Eden NC
- Updating a Database from WinForms Controls Elizabeth City NC
- Updating a Database from WinForms Controls Fayetteville NC
- Updating a Database from WinForms Controls Forest City NC
- Updating a Database from WinForms Controls Fort Bragg NC
- Updating a Database from WinForms Controls Fuquay Varina NC
- Updating a Database from WinForms Controls Garner NC
- Updating a Database from WinForms Controls Gastonia NC
- Updating a Database from WinForms Controls Goldsboro NC
- Updating a Database from WinForms Controls Granite Falls NC
- Updating a Database from WinForms Controls Greensboro NC
- Updating a Database from WinForms Controls Greenville NC
- Updating a Database from WinForms Controls Havelock NC
- Updating a Database from WinForms Controls Henderson NC
- Updating a Database from WinForms Controls Hendersonville NC
- Updating a Database from WinForms Controls Hickory NC
- Updating a Database from WinForms Controls High Point NC
- Updating a Database from WinForms Controls Hillsborough NC
- Updating a Database from WinForms Controls Hope Mills NC
- Updating a Database from WinForms Controls Huntersville NC
- Updating a Database from WinForms Controls Jacksonville NC
- Updating a Database from WinForms Controls Kannapolis NC
- Updating a Database from WinForms Controls Kernersville NC
- Updating a Database from WinForms Controls King NC
- Updating a Database from WinForms Controls Kings Mountain NC
- Updating a Database from WinForms Controls Kinston NC
- Updating a Database from WinForms Controls Knightdale NC
- Updating a Database from WinForms Controls Laurinburg NC
- Updating a Database from WinForms Controls Leland NC
- Updating a Database from WinForms Controls Lenoir NC
- Updating a Database from WinForms Controls Lexington NC
- Updating a Database from WinForms Controls Lillington NC
- Updating a Database from WinForms Controls Lincolnton NC
- Updating a Database from WinForms Controls Louisburg NC
- Updating a Database from WinForms Controls Lumberton NC
- Updating a Database from WinForms Controls Marion NC
- Updating a Database from WinForms Controls Matthews NC
- Updating a Database from WinForms Controls Mebane NC
- Updating a Database from WinForms Controls Mocksville NC
- Updating a Database from WinForms Controls Monroe NC
- Updating a Database from WinForms Controls Mooresville NC
- Updating a Database from WinForms Controls Morganton NC
- Updating a Database from WinForms Controls Mount Airy NC
- Updating a Database from WinForms Controls Mount Olive NC
- Updating a Database from WinForms Controls Murphy NC
- Updating a Database from WinForms Controls New Bern NC
- Updating a Database from WinForms Controls North Wilkesboro NC
- Updating a Database from WinForms Controls Raeford NC
- Updating a Database from WinForms Controls Raleigh NC
- Updating a Database from WinForms Controls Reidsville NC
- Updating a Database from WinForms Controls Roanoke Rapids NC
- Updating a Database from WinForms Controls Rockingham NC
- Updating a Database from WinForms Controls Rocky Mount NC
- Updating a Database from WinForms Controls Roxboro NC
- Updating a Database from WinForms Controls Rutherfordton NC
- Updating a Database from WinForms Controls Salisbury NC
- Updating a Database from WinForms Controls Sanford NC
- Updating a Database from WinForms Controls Shelby NC
- Updating a Database from WinForms Controls Siler City NC
- Updating a Database from WinForms Controls Statesville NC
- Updating a Database from WinForms Controls Tarboro NC
- Updating a Database from WinForms Controls Taylorsville NC
- Updating a Database from WinForms Controls Thomasville NC
- Updating a Database from WinForms Controls Trinity NC
- Updating a Database from WinForms Controls Wake Forest NC
- Updating a Database from WinForms Controls Waxhaw NC
- Updating a Database from WinForms Controls Waynesville NC
- Updating a Database from WinForms Controls Weaverville NC
- Updating a Database from WinForms Controls Wendell NC
- Updating a Database from WinForms Controls Whiteville NC
- Updating a Database from WinForms Controls Williamston NC
- Updating a Database from WinForms Controls Wilmington NC
- Updating a Database from WinForms Controls Wilson NC
- Updating a Database from WinForms Controls Winston Salem NC
- Updating a Database from WinForms Controls Zebulon NC
Related Local Events
Green Manufacturing Expo-Charlotte
Dates: 4/28/2010 - 4/29/2010
Location: Charlotte Convention Center
Charlotte, NC
View Details

Automation Technology Expo South
Dates: 4/28/2010 - 4/29/2010
Location: Charlotte Convention Center
Charlotte, NC
View Details

Making the Right Decision with Business Intelligence and Analytics, NCTA Emerging Technologies & Trends Series
Dates: 2/10/2010 - 2/10/2010
Location: Belk Action Center
Charlotte, NC
View Details

North Carolina Legislative Holiday Reception (Govt. Affairs)
Dates: 12/3/2009 - 12/3/2009
Location: Washington Duke Inn & Golf Club
Durham, NC
View Details

North Carolina Legislative Holiday Reception (Govt. Affairs)
Dates: 12/3/2009 - 12/3/2009
Location: Washington Duke Inn & Golf Club
Durham, NC
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML