View Single Post
  #1 (permalink)  
Old 11-30-2007, 08:26 AM
newguy15 newguy15 is offline
Newbie
 
Join Date: Nov 2007
Posts: 3
Rep Power: 0
newguy15 is on a distinguished road
Default Linking a Form to a SQL Database

Hi, hope someone can help me with this. No one has been able to so far! Surely there must be someone out there who knows this?

I've set up a basic windows form in Visual Studio 2005. All it has is Name, and Surname, with a textbox for each.

I've also set up a table in a database in SQL2005, with two columns, Name and Surname.

My layout is all complete in visual studio, I've linked the database to the form from the data wizard, but how do I now set this up so that
when I click a button on the form, it sends the data entered in the textboxes to my table in SQL?

I know how to insert and view data using T-SQL in SQL management studio, but how do I do it through my application.
Thanks in advance.
Reply With Quote

Sponsored Links