/**

popular collection of scripts for all

*/
/** Search */

Database-related

 }

Filling Data into Select List

Hits: 2755
*****
4.0

Counting Records in SQL Script

Hits: 2618
*****
3.5
Now everybody can connect to
In this short ASP source
Sometimes we worry about
Sum function can be used for
a database. Simple database
code, we will pull some data
limits of database table and
to get the sum of a numeric
access is a huge feature of
from a database and fill it
we need to know how manay
expression evaluated over a
ASP and one of the most
into a select list. We will
recods we have. In ASP we
set. This function must be
widely used by developers
create a custom and dynamic
could count all recods using
placed in an SQL statement.
but when you are first
output.
a loop. But if we have a
Following example will
learning, it‘s hard to
 
small piece of knowledge
return the sum of ratings in
separate the database stuff
 
about SQL script, our
articles.
from the rest of the code so
 
script works better and
 
I made this example. I even
 
faster.
 
removed the includes and
 
 
 
everything.
 
 
 


Date: May, 22 2000


Date: Mar, 22 2006


Date: Sep, 06 2006


Date: Apr, 01 2004
You can use transactions in
This example shows how to
This source code displays
The power of Active Server
ASP as a kind of insurance
perform a variety of
results dividing to pages.
Pages comes through when we
policy for your database
statistics on your data
Code provides Next Previous
tie databases to our web
activities, making them
using simple SQL such as
page links with numeric page
sites. To connect to a
safer and providing better
Sum, Average, Max, Min, and
numbers. You may modify
database, ASP uses what is
error recovery. Transactions
Count. It uses stock trading
source code to use with MS
called ActiveX Data Objects,
are most useful when doing
performance of EPOS as an
SQL or MS Access database.
or ADO for short. ADO comes
multiple actions on multiple
example.
For this example, we have
with ASP, and can be used
tables. The example below
 
used MS SQL Server using
easily from your ASP pages.
shows just how easy it is to
 
sample database Northwind.
In this tutorial we will
use transactions from ASP,
 
 
show you how to connect to
inserting a record into a
 
 
Access database and retrieve
table and doing a
 
 
all the records from the
"rollback" if
 
 
table.
there's a problem.
 
 
 


Date: Jan, 08 2007


Date: Apr, 20 2001


Date: Nov, 12 2003


Date: Sep, 25 2006
{ Copyright } ©2019 NuclearScripts.com