Storing table data for a session.

T

tharpa

I wish to store the data from a SQL Server table, close the
connection, and then use the data.

What is the best way to do this?
 
M

Miro

Create a typed dataset in your project,

This will also have the connection...

fill the dataset ( which opense and closes )
the dataset now has your data from your table(s).

Thats my simplest way.
 
T

tharpa

Create a typed dataset in your project,

This will also have the connection...

fill the dataset ( which opense and closes )
the dataset now has your data from your table(s).

Thats my simplest way.

Thanks.
 
M

Miro

Make a quick temp project and once you create your typed dataset,

drag the datagrid over to a form, and compile and run the project.

You should see a pretty good example how 'it runs' with some simple code on
the form that was generated.

Miro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top