adding data to sql db

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 7
Reputation: stevendmar is an unknown quantity at this point 
Solved Threads: 0
stevendmar stevendmar is offline Offline
Newbie Poster

adding data to sql db

 
0
  #1
Dec 31st, 2007
Someone please help!! I am use to working with MS Access. So, for me, working with SQL is a downgrade at this point. But, I have to do it.

I am working with Microsoft Visual Web Developer which apparently is supposed to be easy!!! The help feature is pretty extensive which is nice though. I have an SQL test database that I am playing with in there. What I want to do is have the users be able to insert data via a form. I played with ListView a little. Apparently I can only add one item at a time though. What I want is to have about 50 empty lines already be on the page. When the user populates the data for all 50, then clicks a submit button and updates the database. Sounds easy enough, but, what a headache!!!

If anyone knows of a way, please let me know.

Also, I would be open to just using a SQL statement versus one of the built in functions like "ListView", hopefully I said that right. Please keep in mind that I am new to SQL.

Thanks.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 370
Reputation: greeny_1984 is an unknown quantity at this point 
Solved Threads: 29
greeny_1984's Avatar
greeny_1984 greeny_1984 is offline Offline
Posting Whiz

Re: adding data to sql db

 
0
  #2
Jan 2nd, 2008
Hi,
u want to update a table based on the data entered in the page ,thats right.
u want to update the data for each line seperately or wholey.if u want to enter large data u can use varchar ,the update statement is same as u do in msaccess
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 19
Reputation: postmaster is an unknown quantity at this point 
Solved Threads: 1
postmaster postmaster is offline Offline
Newbie Poster

Re: adding data to sql db

 
0
  #3
Jan 2nd, 2008
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: adding data to sql db

 
0
  #4
Jan 3rd, 2008
You need to write an INSERT statement... INSERT into TableName (Column1, ...ColX) VALUES ('TextBox1.text' & "','" & TextBox2.text & "','" ... & TextBoxX.text & "'")

If you need help creating the connection to the database, email me at stenson1 at gmail
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1564 | Replies: 3
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC