I use Visual Basic 2008. I have a table in sql server. DDL:
On my form I have 2 textbox (id and name) that I complete. I want when I press the button (button3_Click) (it takes me the specific lines) in Table Test. (Each press has introduced what he had written in 2 textbox). In button3_Click is my problem. I attach the complete source (vb 2008) to be easier to help.Code:CREATE TABLE Names ( Id int PRIMARY KEY NOT NULL , Name varchar(255) )
Example output:
I give you an example here. I put in textbox1 Test1, in textbox2 Test2. I press the button insert into table. But it is not properly inserted. Normally in this case I want the output:In the 2 textboxes I placed 1 Michel
Then I press the button to introduce the first line in table names
After that I introduced 2 Christian
Then I press for the second time the button to automatically introduce the second line in table names in sql server.
So desire output:
1 Michel (which was introduced by example in the 2 textboxes on my form)
2 Christian
Code:Name Surname Test1 Test2
Bookmarks