Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

DataAdapter and Stored Procedure Insert

$
0
0

What I am trying to do I thought would be simple and easy to achieve but I keep coming up against barriers which make me feel I might be going about this the wrong way.

I have a Winforms application using VS2010 in C# and SQL 2008r2 database.

I want to be able to add a record to an existing table, but do not want to 'get' all the data from the table when the DataAdapter is called.

I have a simple 'wizard' type form that the user enters data in a series of pages, mainly from choices in comboboxes populated from datasets etc. The last but one page in the wizard is a summary of the entered data with validation to ensure that all is present and correct. The final operation for the user is to 'Save' the enquiry in order that it can be passed onto a colleague, a simple CRM type exercise.

The pages in the wizard are not grids, the summary page is a series of label controls populated from the previous pages input data. I have created a stored procedure to populate the underlying table which works fine when run from within SSMS. 

I have read on various forums and boards so called solutions but I have no need to get the whole of the underlying tables data as this can takes ages to load due to it's size. In MS Access you could create a form that was DataEntry and therefore blank and just inserted the entered data into the underlying table. This is what I want to achieve, please can some one point me in a direction that suits the scenario rather than one that has been cobbled together from various posts?

A very frustrated dev head

 


Andrew Gilbert


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>