Monday, September 06, 2010
 
 
 SQL ASP Scripts
 ASP Script Home » SQL

25 ASP SQL Scripts

Sort: Most Viewed | Highest Rated | Newest

Dynamic Where Clause Using Variable

This code is a simple dynamic where clause base on the variable pass on the querystring. This is very useful in search with multiple parameter. You can view the working example in Ex-designz.net member search and member profile page....
Added on: 8/23/2007  Hits: 476 Rating: Dynamic Where Clause Using Variable has been rated  2.90 by  30 users (2.90) votes 30

Simple Sorting Records

This is the code use at Ex-designz.net to sort records. What it does, it will the sort records in Highest Rated, Most Downloaded and Newest depending the user querystring selected i.e. sortdownload.asp?sid=1 will display to most downloaded. ...
Added on: 2/19/2005  Hits: 5579 Rating: Simple Sorting Records has been rated  3.00 by  62 users (3.00) votes 62

Tables Function

The Tables Function returns an array of all table names in a database. There is one required argument, connstring which must be a valid OLE database connection string. ...
Added on: 12/5/2002  Hits: 4834 Rating: Tables Function  has been rated  2.92 by  48 users (2.92) votes 48

SqlExec Statement

The SqlExec statement executes an sql statement that returns no records. This is primarily useful for CREATE, DROP, INSERT, UPDATE or DELETE sql statements. There are two required arguments: ConnString and SQL. ConnString must be set to a valid database connection string and SQL must be se...
Added on: 12/5/2002  Hits: 4895 Rating: SqlExec Statement  has been rated  2.90 by  51 users (2.90) votes 51

SqlExec Statement

The SqlExec statement executes an sql statement that returns no records. This is primarily useful for CREATE, DROP, INSERT, UPDATE or DELETE sql statements. There are two required arguments: ConnString and SQL. ConnString must be set to a valid database connection string and SQL must be se...
Added on: 12/5/2002  Hits: 5368 Rating: SqlExec Statement  has been rated  3.20 by  50 users (3.20) votes 50

RecSet Function

The RecSet Function returns a two-dimensional array representing the resultant recordset of an SQL query. There are two required arguments, connstring which must be a valid OLE database connection string and SQL which must be an SQL statement. If no records are found, RecSet returns Null. ...
Added on: 12/5/2002  Hits: 5689 Rating: RecSet Function  has been rated  1.62 by  161 users (1.62) votes 161

Recs Function

The Recs function returns a long representing the record count returned by an SQL statement. There are two required arguments: ConnString and SQL. ConnString must be set to a valid database connection string and SQL must be set to a valid SQL statement. Recs returns Null if error handling is...
Added on: 12/5/2002  Hits: 6495 Rating: Recs Function  has been rated  3.04 by  52 users (3.04) votes 52

Procs Function

The Procs Function returns an array containing the names of all procedures in a database. There is one required argument, connstring which must be a valid OLE database connection string. ...
Added on: 12/5/2002  Hits: 5622 Rating: Procs Function  has been rated  2.98 by  46 users (2.98) votes 46

GetProcedureDef Function

GetProcedureDef returns information about the arguments of a given stored procedure. It returns a reference to a Scripting.Dictionary object whose keys and items collections will be filled about data gathered from the stored procedure. GetProcedureDef is primarily useful for MS Access users ...
Added on: 12/5/2002  Hits: 5726 Rating: GetProcedureDef Function  has been rated  2.96 by  52 users (2.96) votes 52

Database Full Cycle

Display Table, Edit Record, Update Record...
Added on: 11/26/2002  Hits: 5524 Rating: Database Full Cycle  has been rated  2.97 by  36 users (2.97) votes 36

Delete Record with SQL statement

SQL statements can be used to delete data as well. ...
Added on: 11/26/2002  Hits: 6904 Rating: Delete Record with SQL statement has been rated  2.87 by  39 users (2.87) votes 39

Database -- Convert to Comma-Delimited File

This page demonstrates the capabilities how to write an ASCII comma-delimited file from a SQL statement. ...
Added on: 11/26/2002  Hits: 6835 Rating: Database -- Convert to Comma-Delimited File  has been rated  3.00 by  41 users (3.00) votes 41

Count Records

This script counts the records in a database. Many people who attempt to use the .recordcount property have the value -1 returned to them. In a nutshell, -1 means "I don't know how many records this query/table contains". It happens since the default cursor type is AdOpenforwardonly (see b...
Added on: 11/25/2002  Hits: 5755 Rating: Count Records  has been rated  3.00 by  63 users (3.00) votes 63

Table Database Display via GetRows

This page demonstrates the capabilities how to display a table from a SQL statement a very fast and scaleable way using a recordset method called GetRows. GetRows that move many records and fields into a memory array. Once in the array it is accessed very fast. If you read the code closely you will ...
Added on: 11/25/2002  Hits: 6388 Rating: Table Database Display via GetRows  has been rated  3.00 by  36 users (3.00) votes 36

call an Oracle Stored Procedure

Folks, contrary to popular belief there are many ways to call stored procedures from an ASP page. I've tried it with Oracle (the only REAL RDBMS ;-) and it works. ...
Added on: 11/25/2002  Hits: 5731 Rating: call an Oracle Stored Procedure has been rated  3.08 by  37 users (3.08) votes 37

Database Display via GetString

This page demonstrates the capabilities how to display a table from a SQL statement a very fast and scaleable way using a recordset method called GetString. GetString essentially asks the backend database to build a huge string instead of moving the data as rows and columns. It allows very limited s...
Added on: 11/25/2002  Hits: 4327 Rating: Database Display via GetString  has been rated  3.18 by  33 users (3.18) votes 33

Connection Info

If you want to know what drivers and other vital details are being used for a DSN, here is some code to the rescue. ...
Added on: 11/23/2002  Hits: 5379 Rating: Connection Info  has been rated  3.00 by  42 users (3.00) votes 42

Import the SQL Server error log into a table

To import the SQL Server error log into a table, so that it can be queried ...
Added on: 11/21/2002  Hits: 6523 Rating: Import the SQL Server error log into a table has been rated  3.06 by  62 users (3.06) votes 62

Stored Procedure Interface Generator

Generate the ASP code to interface with a stored procedure....
Added on: 11/19/2002  Hits: 4810 Rating: Stored Procedure Interface Generator  has been rated  3.05 by  134 users (3.05) votes 134

Common Database Routines

To assist in interfacing with databases. This script can format variables and return SQL formats. Such as double quoting apposterphies and surrounding strings with quotes, Returning NULL for invalid data types, trimming strings so they do not exceed maximum lengths. This also has some functions so t...
Added on: 11/10/2002  Hits: 4617 Rating: Common Database Routines  has been rated  3.04 by  46 users (3.04) votes 46
Records 1 to 20 of 25






HOME | ARTICLES | MUSIC | DOWNLOADS | LINK DIRECTORY |  GAMES | TEST-QUIZZES | SITEMAP | ABOUT | HELP
Copyright © 2000 - 2007 Ex-designz. All rights reserved. Website Developed By Dexter Zafra of Myasp-net.com
Link to us | Contact us | Privacy Policy | Terms of use | Accessibility