Updating a Database from WinForms Controls Utah

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

Windows data recovery software
001-9811111111
Road
City, UT
freeware undelete
980-000-0000
Street
Town, UT
Jon Sult
801-654-7943
1464 Capitol
Ogden, UT
DigiCert, Inc
(801) 701-9600
355 E. 520 W. Canopy Bldg
Lindon, UT
Wasatch Software
888-275-8850
5093 West 6275 South
West Jordan, UT
Windows data recovery software
001-9811111111
Road
City, UT
freeware undelete
980-000-0000
Street
Town, UT
Herman Street, Inc.
801-528-4159
2425 Lincoln Ave
Ogden, UT
Aha!Logic
(801) 705-9357
1055 East 100 South
Lindon, UT
I.M. Flash Technologies
(801) 767-3965
1550 East 3400 North
Lehi, UT

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

Windows data recovery software

001-9811111111
Road
City, UT
http://www.techddi.com

Data recovery software restores lost pictures, audio songs and text document files.

Regional Articles
- Updating a Database from WinForms Controls American Fork UT
- Updating a Database from WinForms Controls Bountiful UT
- Updating a Database from WinForms Controls Brigham City UT
- Updating a Database from WinForms Controls Cedar City UT
- Updating a Database from WinForms Controls Centerville UT
- Updating a Database from WinForms Controls Clearfield UT
- Updating a Database from WinForms Controls Draper UT
- Updating a Database from WinForms Controls Kaysville UT
- Updating a Database from WinForms Controls Layton UT
- Updating a Database from WinForms Controls Lehi UT
- Updating a Database from WinForms Controls Logan UT
- Updating a Database from WinForms Controls Magna UT
- Updating a Database from WinForms Controls Midvale UT
- Updating a Database from WinForms Controls Ogden UT
- Updating a Database from WinForms Controls Orem UT
- Updating a Database from WinForms Controls Park City UT
- Updating a Database from WinForms Controls Pleasant Grove UT
- Updating a Database from WinForms Controls Provo UT
- Updating a Database from WinForms Controls Riverton UT
- Updating a Database from WinForms Controls Roy UT
- Updating a Database from WinForms Controls Saint George UT
- Updating a Database from WinForms Controls Salt Lake City UT
- Updating a Database from WinForms Controls Sandy UT
- Updating a Database from WinForms Controls South Jordan UT
- Updating a Database from WinForms Controls Spanish Fork UT
- Updating a Database from WinForms Controls Springville UT
- Updating a Database from WinForms Controls Tooele UT
- Updating a Database from WinForms Controls Vernal UT
- Updating a Database from WinForms Controls West Jordan UT
Related Local Event
Conference on Information Technology (CIT)
Dates: 10/19/2009 - 10/22/2008
Location: Salt Palace Convention Center
Salt Lake City, UT
View Details

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