Hi,
Not sure if this is correct forum for this
I am very new to vb net and to database programming. I have done some VB6.
I have been going round in circles for last 2 days, I have read MSN and googled all over place about the issue but to be honest it is not making much sense.
What I am trying to do should be easy but I cant get any code to work.
my thinking is build array then write this to database.
I hav a form which ask several questions, this information is submitted to the server then repeats until logout
I want to build up a table with rows after a user clicks submit button then say after 20 new rows added or a time period passes then this data is to be added to the server sqldatabase using the dataadapter update method, reason is to reduces hits on server
I am using vb net 2010
i have a dataset named dataset1.xsd
dataadpater name = main_Testadapter
datatable = main_Test
columns = ID (auto unique), FirstName, Surname, Ref etc
I am currently adding 1 row at a time, which works but there are many users and this could cause a hit on the server in future and I know it can be done but I cant get any where close to making it work, I know meant to use rows but Im stuck
this is working for adding row when submit
Me.Tbl_Main_TestAdapter.AddNew(FirstName, Surname, Ref, etc)
any help appreciated.
Not sure if this is correct forum for this
I am very new to vb net and to database programming. I have done some VB6.
I have been going round in circles for last 2 days, I have read MSN and googled all over place about the issue but to be honest it is not making much sense.
What I am trying to do should be easy but I cant get any code to work.
my thinking is build array then write this to database.
I hav a form which ask several questions, this information is submitted to the server then repeats until logout
I want to build up a table with rows after a user clicks submit button then say after 20 new rows added or a time period passes then this data is to be added to the server sqldatabase using the dataadapter update method, reason is to reduces hits on server
I am using vb net 2010
i have a dataset named dataset1.xsd
dataadpater name = main_Testadapter
datatable = main_Test
columns = ID (auto unique), FirstName, Surname, Ref etc
I am currently adding 1 row at a time, which works but there are many users and this could cause a hit on the server in future and I know it can be done but I cant get any where close to making it work, I know meant to use rows but Im stuck
this is working for adding row when submit
Me.Tbl_Main_TestAdapter.AddNew(FirstName, Surname, Ref, etc)
any help appreciated.