Current location: Hot Scripts Forums » Programming Languages » ASP » Restriict Records


Restriict Records

Reply
  #1 (permalink)  
Old 09-27-03, 12:40 PM
geneane's Avatar
geneane geneane is offline
Newbie Coder
 
Join Date: Sep 2003
Location: The Carolinas
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Restriict Records

How can I use asp/sql to restrict records in a database? Table is products. If more than say 20 records is entered, a message displays.
Reply With Quote
  #2 (permalink)  
Old 09-27-03, 05:46 PM
Stealth Stealth is offline
1337 pr0gr4mm3r
 
Join Date: Jun 2003
Location: Glasgow, Scotland
Posts: 188
Thanks: 0
Thanked 0 Times in 0 Posts
select top 20 * from table
Reply With Quote
  #3 (permalink)  
Old 09-27-03, 06:30 PM
geneane's Avatar
geneane geneane is offline
Newbie Coder
 
Join Date: Sep 2003
Location: The Carolinas
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
What I am tryinng to do is restrict the number of records that can be put INTO a database

...not restrict the number returned.

Thanks.
Reply With Quote
  #4 (permalink)  
Old 09-27-03, 07:01 PM
Stealth Stealth is offline
1337 pr0gr4mm3r
 
Join Date: Jun 2003
Location: Glasgow, Scotland
Posts: 188
Thanks: 0
Thanked 0 Times in 0 Posts
you would need to show more info.

who is inserting the data?
why would more than 20 be put in?

e.g if users login and add records individually then its better to add a counter and an if statement. theres no way (that i know of) it can be done otherwise
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql - auto deletion of records munricer Script Requests 0 10-05-03 03:21 PM
records from database with the link sasi ASP 2 09-24-03 04:41 AM
Problem in Deleting records from Access skchakri ASP 1 09-20-03 12:59 AM
displaying all duplicate records in my table. dsumpter PHP 6 09-02-03 10:54 AM
Repeating MySQL records in a mail script watix PHP 2 07-22-03 05:25 PM


All times are GMT -5. The time now is 03:36 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.