ASP 101 - Active Server Pages 101 - Web06
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash




Script Output:

Record id 1111351 added!

id text_field integer_field date_time_field
1111346 Tuesday 2 12/2/2008 5:19:53 AM
1111347 Tuesday 2 12/2/2008 5:19:53 AM
1111348 Tuesday 2 12/2/2008 5:49:22 AM
1111349 Tuesday 2 12/2/2008 5:50:57 AM
1111350 Tuesday 2 12/2/2008 6:00:04 AM
1111351 Tuesday 2 12/2/2008 6:13:34 AM

ASP HTML Download            FAQ

ASP.NET Version

The last record in the table above was just added when you loaded this page!

Click here to add another record to the database.


This is the first in a set of 3 database samples. The series will cover, inserting, deleting, and updating a table in a database. Being the first of the three, this one is commented the most heavily and should be read before the other two since much of the code is similar between the three. As with all our samples, these are placed here as a service to our readers and as a learning aid. They are not necessarily ready for live use on your site and you should thoroughly test them if you intend to use them on your site. This set of three especially is placed here to show you one way to accomplish the tasks covered. There are other methods which may give you better performance and scalability based upon your particular situation.

Another thing to note is that in order to keep this database reasonable, the script automatically purges old records when the database reaches about a dozen records. If you see entries disappear, appear, or change, it is most likely due to the fact that you've reached this limit. Please note that it is also likely that others may be viewing either this sample or one of the other two samples which share the same table in the database at the same time you are viewing this one. This also will cause changes to the database resulting in entries which you may not be expecting to see. Ah, the wonderful world of concurrent users!

This sample is running off of our SQL Server, but a copy of the database in Access format is available for download here.

Part 1  Part 2  Part 3


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
HP eBook: Guide to Storage Networking
MORE WHITEPAPERS, EBOOKS, AND ARTICLES