|
|
Database-related
ASP » Tips and Tutorials » Database-related
A D V E R T I S E M E N T
Today's Special: Get free Magazine from SAP!
Using Multiple RecordsetsThis article explains a solution on how to increase the performance of your ASP pages that rely on gathering data through several different Recordsets. Specially, using a nifty feature of the ADO Recordset object, Multiple Recordsets, you can store multiple SQL query results in one Recordset object, requiring fewer communications with the database. Fastest way of Database Access : Caching Records in MemoryA step by step tutorial on caching data in memory. This tutorial goes one step further from simply caching data in memory to allow you to set a time limit in seconds after which it refreshes the data in memory. Extremely useful technique. Online demo available. Using Disconnected RecordsetsThis article covers rarely discussed feature of ADO Recordsets, disconnected Recordsets. It examines what disconnected Recordsets are, how to use them, and what advantages they offer over connected Recordsets. Also examines how to create custom, disconnected Recordsets. Printing Headers on every page of a report (from a database)The author writes "Recently I was asked to develop a web based report that would collect data from a database, format it in an HTML page and then print a certain number of rows on each page with a column header on each page. This solution solves the problem." Source code available for download. Interrogating a Stored Procedure with ADOThis article describes how to use the refresh method of the ADO Parameters collection to interrogate a stored procedure. It shows how to create the code in an automated fashion for use in VBScript connecting to MS SQL Server 7. SQLServerTools ObjectThis example shows how to get a list of all current tables in the database, get a list of dependent stored procedures for each table and do it all in a stored procedure. AddCriteria Simplifies SQL QueriesAddCriteria is a small function that simplifies the code needed to produce a SQL query from a set of optional criteria posted by a user. This article explains how to use this function. Database Editing SampleThis is a quick sample code which combines a number of database functions into one script. Includes functions to add, delete, and edit records in a database table. It illustrates a number of useful techniques for database manipulation. Creating Custom Hierarchical RecordsetsThis article covers two advanced ADO topics: creating hierarchical Recordsets (via data shaping) and creating custom Recordsets. Specifically, this article looks at how to create custom hierarchical Recordsets. The reader is required to have a fluid understanding of both data shaping and custom Recordsets. Using SQL-DMO To Backup and Verify a DatabaseThis article shows you how to use SQL-DMO to create an Active Server Pages application to backup and verify a SQL Server database. The SQL Distributed Management Objects (SQL-DMO) extend the functionality of SQL Server by providing developers a way to execute common tasks. Turn foreign keys into list boxesThe author writes "CoverYourASP's original database administration tool didn't look for foreign keys, and just displayed a confusing list of primary key values. Now, it's been improved with automatically generated list boxes." This tutorial explains how to turn those foreign keys into list boxes automatically. What's in an ADO Connection String?This article explains ADO connection strings and parameters. By the end of the article you should be able to build appropriate ones on your own instead of cutting and pasting them. Name Search & Hyperlinks to DetailThis is an example code showing how to conduct searches on a database to display hyperlinked summaries that can be clicked on to display detail data. Display Table Script WriterThis is a Web-based script writer that generates an ASP code for displaying an Access or SQL Server database using user-submitted variable names and the name of the table. Copy the output code into an asp document on your web server and your db is ready to be displayed on the web. The DSN connection requires that you register the DSN for the db prior to executing the code. Add New Data Access Routines to Your ArsenalThis article presents three modular routines to access and fetch data easier with ASP. Topics include: Fetching a Recordset, An alternative to the GetConnectedRecordSet function that opens a connection, fetches a recordset, and immediately closes the connection, and Utilities for Creating Valid SQL Statements. Null Is NullA discussion of how to use null values effectively in your database tables. Includes a discussion of the logic behind nulls and some practical programming techniques. Database Paged SearchThis is a sample code that combines a Database Paging and a Database Search script into one. It shows you how to perform a wilcard search on a database table and then page through the results.
Integrating User Search with ASP and SQL Server Full-Text SearchThis article provides sample source code for a user query parser which allows users to submit full-text search queries from ASP to SQL Server 2000. Full source code available for download.
SQL: Sum, Average, Max, Min, Count, DetailThis example shows how to perform a variety of statistics on your data using simple SQL such as Sum, Average, Max, Min, and Count. It uses stock trading performance of EPOS as an example. Access Reports on the WebThis article shows how to publish and distribute Microsoft Access reports on the web using ASP.
|
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
| |
|