Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How to insert textbox values in database using ADO

This is a discussion on How to insert textbox values in database using ADO within the VB.NET forums, part of the Software Development category; How to insert textbox values in the database using ADO connections in VB Question asked by visitor Durga Prasad.Argi...

Go Back   Geeks Talk > Software Development > VB.NET
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

VB.NET Visualbasic.NET

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-20-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
How to insert textbox values in database using ADO

How to insert textbox values in the database using ADO connections in VB

Question asked by visitor Durga Prasad.Argi
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-20-2007
Junior Member
 
Join Date: May 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
monica15568 is on a distinguished road
Re: How to insert textbox values in database using ADO

Could you please explain the question a bit?
Reply With Quote
  #3 (permalink)  
Old 03-18-2009
Junior Member
 
Join Date: Mar 2009
Location: hyderabad
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
challa Rajeshkumarreddy is on a distinguished road
Re: How to insert textbox values in database using ADO

i understand wat ur saying

first open a window form and create a textbox in the form
and create a one button and create a database for ur textbox
in button click
write a below code

dim oc as oledbconnection
oc= new loedbconnection("") \\ in brackets write the database link
dim cmd as oledbcommand
cmd=new oledbcommand("") \\ in brackets write insert command (ex:insert into tablename values('" & textbox1.text & "')",oc)
try
oc.open()
cmd.executenonquery()
catch e as exception
if(oc.state=connectionstate.open) then
oc.close()


now u enter data intextbox and click button
the data is displayed in ur database
ok bye
Reply With Quote
  #4 (permalink)  
Old 03-18-2009
Junior Member
 
Join Date: Jun 2007
Location: Philippines
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
nklastra is on a distinguished road
Re: How to insert textbox values in database using ADO

dim oc as oledbconnection
oc= new loedbconnection("") \\ in brackets write the database link
dim cmd as oledbcommand
cmd=new oledbcommand <<<< could also change this part to call a stored procedure ... and then below execute the name of the stored proc, to make server the work for you.
Reply With Quote
Reply

  Geeks Talk > Software Development > VB.NET

Thread Tools
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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
insert picture to table rashinkar Oracle 9 04-25-2009 11:53 AM
Add a new column to a table and insert values Ajit Kumar Maharatha Oracle 11 12-12-2008 10:58 AM
Cannot identify the object "TextBox" Geek_Guest QTP 3 04-20-2007 12:47 PM
textbox TextChanged Event Geek_Guest ASP.NET 1 03-15-2007 03:04 AM
Insert Multiple Records at once Radhi09 SQL 6 02-19-2007 06:11 AM


All times are GMT -4. The time now is 01:27 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved