473,385 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Storing table data for a session.

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?
Nov 3 '08 #1
3 983
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.

"tharpa" <83*******@sneakemail.comwrote in message
news:b9**********************************@v39g2000 pro.googlegroups.com...
>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?
Nov 3 '08 #2
On Nov 3, 4:47 pm, "Miro" <m...@beero.comwrote:
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.

"tharpa" <83433a...@sneakemail.comwrote in message

news:b9**********************************@v39g2000 pro.googlegroups.com...
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?
Thanks.
Nov 4 '08 #3
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

"tharpa" <83*******@sneakemail.comwrote in message
news:ae**********************************@s9g2000p rm.googlegroups.com...
On Nov 3, 4:47 pm, "Miro" <m...@beero.comwrote:
>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.

"tharpa" <83433a...@sneakemail.comwrote in message

news:b9**********************************@v39g200 0pro.googlegroups.com...
>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?

Thanks.
Nov 4 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Francisco | last post by:
I have this problem: I have a database with information about games, and users are able to vote for them. Everytime a user votes for a game I store the unique game name into a session variable (an...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
6
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server...
7
by: Dave | last post by:
I have a system that basically stores a database within a database (I'm sure lots have you have done this before in some form or another). At the end of the day, I'm storing the actual data...
6
by: Jason | last post by:
Is it possible to store an entire datatable/dataset in session state? If so, could someone please provide a code snippet or a link to documentation for me please? (I'm having no luck at all) ...
2
by: jakk | last post by:
Below is the exception that Iam getting. It says that the DataView that Iam storing in the session is not Serializable. BUt works fine if I store in the inproc session and fails if I switch to...
4
by: kanones | last post by:
I have some data that is been retrieved from a call to sql server stored procedure that I want to store for a period of time in a web farm architecture. I want to minimize the calls to sql server...
8
by: rgparkins | last post by:
Hi I am creating a sign-up process on a web site much like that of a wizard form. I have browsed many sites to look for examples of how to store the entry data, so that the user can go back and...
1
by: booksnore | last post by:
I have an application where a have a single admin database and multiple customer databases containing the customer's warehouse data. In the admin database I hold a user table and also a client...
3
by: RSH | last post by:
Hi, I have a situation where I have created an object that contains fields,properties and functions. After creating the object I attempted to assign it to a session variable so i could retrieve...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.