Hello everyone,
Hope someone can help with my problem.
I am writing a VB 2005 Windows Application connecting to a SQL Server 2005 Express db. I can connect fine and read data out, but cannot save anything to the database.
I use a SQLDataReader to retrieve data from the db, and use the SQLCommand.ExecuteReader statement to invoke a SP which carries out an UPDATE to one table, and an INSERT to another (from within the same sp).
When an item in a listview is selected, a DataReader retrieves the details from SQL Server based on the a "companyID", i.e. I only get back records for a customer selected from the listview.
When I refresh my form, the changes are displayed in the listview and other controls, and even if I close the form and reopen it they display.
Here is my problem... When I quit the app and restart it, my changes are not there. I have used Server Namegement Studio Express to see if the data has changed and it has not.
I cannot understand why, so will be very grateful for your help as this is an app for a customer. At this stage I can't post code because there are 32 parameters in the stored procedure, so the cope snippet will be quite long.
A link to some code samples would be helpful too.
Thank You in advance.
Hope someone can help with my problem.
I am writing a VB 2005 Windows Application connecting to a SQL Server 2005 Express db. I can connect fine and read data out, but cannot save anything to the database.
I use a SQLDataReader to retrieve data from the db, and use the SQLCommand.ExecuteReader statement to invoke a SP which carries out an UPDATE to one table, and an INSERT to another (from within the same sp).
When an item in a listview is selected, a DataReader retrieves the details from SQL Server based on the a "companyID", i.e. I only get back records for a customer selected from the listview.
When I refresh my form, the changes are displayed in the listview and other controls, and even if I close the form and reopen it they display.
Here is my problem... When I quit the app and restart it, my changes are not there. I have used Server Namegement Studio Express to see if the data has changed and it has not.
I cannot understand why, so will be very grateful for your help as this is an app for a customer. At this stage I can't post code because there are 32 parameters in the stored procedure, so the cope snippet will be quite long.
A link to some code samples would be helpful too.
Thank You in advance.