Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > Database & Database Programming

Vote on your favorite hash algorithm here!

Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC).

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-2007, 07:26 AM
newguy15 newguy15 is offline
Newbie
 
Join Date: Nov 2007
Posts: 3
Credits: 0
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-30-2007, 07:40 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 7,397
Last Blog:
Tramp Variables
Credits: 1
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

What are you using in Visual Studio 2005? C#, VB, C++?

Here is the MSDN reference that should help you out: Connecting to Data in Visual Studio
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-04-2007, 02:13 AM
newguy15 newguy15 is offline
Newbie
 
Join Date: Nov 2007
Posts: 3
Credits: 0
Rep Power: 0
newguy15 is on a distinguished road
Default

Thanks Jordan.
I would use VB.I'm very new to programming so would try VB first.
I've worked out how to display my textbox input in a msgbox, but would like to be able to send it to my table i've created in SQL.I've linked a SQL database to my app.

How do I do this in VB so that this happens when I click the button. Is it a stored procedure or trigger or something>

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Windows form to SQL2005 Database newguy15 Visual Basic Programming 0 11-23-2007 06:04 AM
How do I centralize sql server database hoser2001 Database & Database Programming 3 07-13-2007 01:07 PM
Best program for SQL database manipulation Rhadamanthys Database & Database Programming 3 07-02-2007 02:32 PM
Database Tuning Advisor in SQL Server 2005 reachpradeep Database & Database Programming 0 03-03-2007 12:46 PM
Question: free webhosting with PHP, SMTP, and at least one SQL database skilletsteve Hosting and Registrars 5 12-08-2006 04:36 AM


All times are GMT -5. The time now is 10:26 PM.

Contest Stats

Xav ........ 1357.94
MeTh0Dz|Reb0rn ........ 1077.71
WingedPanther ........ 919.18
marwex89 ........ 906.86
morefood2001 ........ 900.18
John ........ 890.77
Brandon W ........ 770.65
chili5 ........ 312.39
Steve.L ........ 264.99
dcs ........ 232.34

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 83%

Ads