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

Web app that limits access by the # of objects created

I'm not quite sure the best way of going about this (code in the
business tier or stored procedure on the SQL Server). I have an
e-commerce web app that generates labels for the user. The sales
department wants to offer "packages" where the customer pre-pays for n
amount of labels made. Once they hit their limit, the feature is
disabled.

Since I'm not the best SQL guru, I'm not sure how to store data for
this scenario, or even know if there is some sort of "bell and whistle"
in SQL Server that I don't know about.
Any ideas are always appreciated.

- Richard
- MAIL, Inc

Nov 18 '05 #1
2 956
Hmmm... It seems like you might want to keep track in your database of how
many labels each customer has purchased, as well as the number they have
pre-paid for. Then it's a simple query to find out if they have reached
their limit.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Richard" <ri*********@gmail.com> wrote in message
news:cd********@odbk17.prod.google.com...
I'm not quite sure the best way of going about this (code in the
business tier or stored procedure on the SQL Server). I have an
e-commerce web app that generates labels for the user. The sales
department wants to offer "packages" where the customer pre-pays for n
amount of labels made. Once they hit their limit, the feature is
disabled.

Since I'm not the best SQL guru, I'm not sure how to store data for
this scenario, or even know if there is some sort of "bell and whistle"
in SQL Server that I don't know about.
Any ideas are always appreciated.

- Richard
- MAIL, Inc

Nov 18 '05 #2
"Richard" <ri*********@gmail.com> wrote in news:cd8ou0$nd5
@odbk17.prod.google.com:
I'm not quite sure the best way of going about this (code in the
business tier or stored procedure on the SQL Server). I have an
e-commerce web app that generates labels for the user. The sales
department wants to offer "packages" where the customer pre-pays for n
amount of labels made. Once they hit their limit, the feature is
disabled.


A simple way is to have a table with the UserID, Labels Purchase, Labels
Used

Enable the fuction if Labels purchased is >= Labels Used.

Of course you can design the database tables to be much more complex (i.e.
have a "Packages Table" which you reference) but that maybe a little too
much for you if you're not familiar with SQL.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #3

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

Similar topics

24
by: jason | last post by:
Hi Ray...a while ago you explained an elegant solution to enable me to CREATE and EDIT existing tables and queries inside my online access 2000 database.... could you provide refresher links on...
49
by: Relaxin | last post by:
It is just me or has MS created some of the worst ways to access and display data? You can use a DataSet, but if you want to sort or filter the data to must use a DataView which is created from...
17
by: Jelmer | last post by:
Hi, I am mildly familiar with ms access developement and I have been asked to port and document a ms access app. I expect the porting (97 to XP) to be fairly straightforward. However documenting...
1
by: Matt Alanzo | last post by:
On another newsgroup an Access knowledgable party posted: >You should be able to connect an Access ADP to an existing SQLExpress >database running in SQLS 2000 compatibility mode. The only thing...
37
by: Carol Depore | last post by:
How do I determine the maximum array size? For example, int a works, but a does not (run time error). Thank you.
4
by: lars.uffmann | last post by:
Hey everyone! I am (still) working on a project that I took over from former students, so don't blame me for the criminal approach on coding *g* The problem I have is fairly easy and while I...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
4
by: howard.canaway | last post by:
I have always wondered about the specification page in the Access Help files. It reads Microsoft Access database (.mdb) file size 2 gigabytes. However, because your database can include linked...
44
by: vippstar | last post by:
n1256.pdf (C99 TC3), 5.2.4.1 Translation limits p1 says: Does that mean that *any* program using an array of two or more elements other than char is allowed to be rejected by an implementation?...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.