473,378 Members | 1,407 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,378 software developers and data experts.

Saving Query Strings

I have an interface that works with an Access back-end. I would like to
store and/or load user defined query strings per each user (i.e. no user can
access another's queries). The idea I had was a "table" stored with the C#
front-end (not in the Access database), but don't know if this is even
possible. If it is, can someone let me know how? Otherwise, how do other
people handle storing and loading query strings for possible later use?
Mar 14 '07 #1
3 1727


"Nathan Guill" <NG****@Forgeman.comwrote in message
news:ep**************@TK2MSFTNGP05.phx.gbl...
>I have an interface that works with an Access back-end. I would like to
store and/or load user defined query strings per each user (i.e. no user
can
access another's queries). The idea I had was a "table" stored with the
C#
front-end (not in the Access database), but don't know if this is even
possible. If it is, can someone let me know how? Otherwise, how do other
people handle storing and loading query strings for possible later use?

Is this for an ASP.Net application? WinForms app? For ASP.Net, I would go
with defining a table within the database that contained such strings. For
the latter, I would go with defining a custom configuration file per user
that is stored within the user directory of the current user. All in all
though, I probably would not be storing such strings anywhere. Depending on
your requirements, you may be able to go about this without using "custom"
query strings.

What is it exactly that is "custom" about these query strings that can't be
made static with additional parameters?

HTH,
Mythran
Mar 15 '07 #2
Sorry, It's for a WinForms app.

I was just thinking that the user might want to save a query that they run a
lot, but is not something I have been asked to develop a standard for. This
way they do not have to reenter the search criteria each time. But now that
I'm thinking about it, these forms are not showing that much data to begin
with, so I think I'm going to leave this capability out as I don't think it
would be that big of a hassle for the user to do...

"Mythran" <ki********@hotmail.comwrote in message
news:03**********************************@microsof t.com...
>

"Nathan Guill" <NG****@Forgeman.comwrote in message
news:ep**************@TK2MSFTNGP05.phx.gbl...
I have an interface that works with an Access back-end. I would like to
store and/or load user defined query strings per each user (i.e. no user
can
access another's queries). The idea I had was a "table" stored with the
C#
front-end (not in the Access database), but don't know if this is even
possible. If it is, can someone let me know how? Otherwise, how do
other
people handle storing and loading query strings for possible later use?

Is this for an ASP.Net application? WinForms app? For ASP.Net, I would
go
with defining a table within the database that contained such strings.
For
the latter, I would go with defining a custom configuration file per user
that is stored within the user directory of the current user. All in all
though, I probably would not be storing such strings anywhere. Depending
on
your requirements, you may be able to go about this without using "custom"
query strings.

What is it exactly that is "custom" about these query strings that can't
be
made static with additional parameters?

HTH,
Mythran


Mar 16 '07 #3
Does he write his own query, or select stuff on the screen?

I have written a few apps that provide my users with the ability to run ad
hoc requests against the database. I have a bunch of selection criteria on
the screen that they fill in. I create the query, run it, and return the
data to them.

If you are doing that, you can save the values of all of the controls using
My.Settings in VB (it's also in C#, but has a different name; post back if
you need it), then reload them when the user comes back in. That's what I
do.

If they are actually crafting queries, I would do the same thing. I would
save them to My.Settings and then fill it back in.

Anything you can do to make your users' lives easier makes you look better.
It's the small things that count in an application. I once got kudos from a
top-level manager because I used masked edit boxes for the dates, and he
didn't have to type the slashes. Haha!

If you want more info on saving settings, post back with your language of
choice, and I'll post some code for you.

Robin S.
-------------------------------------------
"Nathan Guill" <NG****@Forgeman.comwrote in message
news:O0**************@TK2MSFTNGP02.phx.gbl...
Sorry, It's for a WinForms app.

I was just thinking that the user might want to save a query that they
run a
lot, but is not something I have been asked to develop a standard for.
This
way they do not have to reenter the search criteria each time. But now
that
I'm thinking about it, these forms are not showing that much data to
begin
with, so I think I'm going to leave this capability out as I don't think
it
would be that big of a hassle for the user to do...

"Mythran" <ki********@hotmail.comwrote in message
news:03**********************************@microsof t.com...
>>

"Nathan Guill" <NG****@Forgeman.comwrote in message
news:ep**************@TK2MSFTNGP05.phx.gbl...
>I have an interface that works with an Access back-end. I would like
to
store and/or load user defined query strings per each user (i.e. no
user
can
access another's queries). The idea I had was a "table" stored with
the
C#
front-end (not in the Access database), but don't know if this is even
possible. If it is, can someone let me know how? Otherwise, how do
other
people handle storing and loading query strings for possible later
use?


Is this for an ASP.Net application? WinForms app? For ASP.Net, I would
go
>with defining a table within the database that contained such strings.
For
>the latter, I would go with defining a custom configuration file per
user
that is stored within the user directory of the current user. All in
all
though, I probably would not be storing such strings anywhere.
Depending
on
>your requirements, you may be able to go about this without using
"custom"
query strings.

What is it exactly that is "custom" about these query strings that can't
be
>made static with additional parameters?

HTH,
Mythran



Mar 17 '07 #4

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

Similar topics

3
by: Michael | last post by:
Hi, I have a map and I want to save it to disk. What is the most efficient method of doing this? As i understand it, maps are stored as a binary tree. Is it balanced or is this implementation...
2
by: jim_geissman | last post by:
I would like to save a query plan (estimated or actual) created in Query Analyzer -- paste it into a document, or simply print. It doesn't seem to be possible to select and copy the Execution...
1
by: MIchael McDowell | last post by:
Anyidea how this might be done using and XML Web Service and the XMLSerialzation class? A pointer to an online example would be deeply appreciated. Thankyou in advance, Michael McD
7
by: MacDermott | last post by:
For a client who wants answers, but doesn't want to bother to learn Access, I've built a cut-down query generator, where they can select fields and criteria. I then compose the appropriate SQL...
4
by: tt40 | last post by:
Anyone know how to prevent Access 2002 from automatically breaking all the incorrect joins in a query and then automatically saving the broken query? This is what I would call stupid design...
4
by: ulaskaraoz | last post by:
Hi, I have a std::map instance that I want to save into harddisk so that I donot have to recompute it each time. The map itself is keyed by a string and the values are pointers to other objects....
2
by: Tal Shachar | last post by:
Hi, I have a windows application that needs to save some user preferences to an xml and to load it on the next application run. Saving the preferences is done per user. I know that there is a way...
17
by: NeoAlchemy | last post by:
I am starting to find more web pages that are using a query parameters after the JavaScript file. Example can be found at www.opensourcefood.com. Within the source you'll see: <script...
5
by: Just_a_fan | last post by:
I tried to put an "on error" statement in a routine and got the message that I cannot user "on error" and a lamda or query expression in the same routine. Help does not list anything useful for...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.