Author: Michael Gonzalez
Frequently Answered Questions
Miscellaneous

File Text Search & Replace Utility
HTML Text Extraction using innerText
E-mail (CDONTS.NewMail) Sample Code
SQL Server 7.0/2000

Incorporating ASP and SQL Server
100's of T-SQL Scripts
Don't Use @@ERROR with UPDATE Statements
Exporting Tables to Text Files
Creating SQL Server Databases
ASP (SQL) Query Analyzer
Increasing SQL Server Performance with Indexes
Distributed SQL Server Transactions & Queries
COM/COM+ Development
What is COM?
Isn't ActiveX and COM the same?
How can Components benefit my ASPs?
Am I using COM Components now?
How do I use COM Components in my ASPs?
Creating your First COM Component
Creating a COM Component that uses ASP Intrinsic Objects
Creating a COM Component to access an MS-Access Database
MTS Component Template
MSMQ Component Template / Example

ASP Query Analyzer

For those of you who don't know what a Query Analyzer is: it's a client application that allows SQL commands to be performed against a data store. The data store can be any OLE DB/ODBC compatible store such as MS-SQL Server, MS-Access, Oracle, mySQL, etc.

If you are familiar with SQL Server 7.0 then are most likely familiar with the SQL Server Query Analyzer. This handy client tool allows you to perform DELETE, INSERT, UPDATE, SELECT, EXEC, and more SQL commands which result in the application returning status, recordset, and other types of information. If you are familiar with Access then you are most likely familiar with the Query\Run (!) feature which allows you to run queries on the fly.


Until now, I haven't seen a Query Analyzer designed in ASP.

I have created one and you can download it by clicking here. It's a self-extracting executable that contains the ASP file called tsql.asp.

The TSQL.asp Application is pretty simple to use:
  • Enter a Connection String:
    For a SQL Server connection you would type:
    Provider=SQLOLEDB;Data Source=Computer_Name;Initial Catalog=Database_Name;User Id=User_Name;Password=Password
    For a System DSN using ODBC you would type:
    DSN=DSN_Name
    For a File DSN using ODBC you would type:
    FILEDSN=File_Name.dsn
    For a MS-Access Database Connection you would type:
    Drive={Microsoft Access Driver (*.mdb)};DBQ=Database_File_Name
  • Enter the SQL commands in the text area
  • When you are done with both areas click on the Execute Script button.

The TSQL.asp file should be stored on a web site directory hosted by an IIS 3/4 server in order for it to work correctly.
Technical Notes: This ASP Query Analyzer is designed to work with ADO version 2.0 or later. If this application doesn't work properly, download the latest ADO version by downloading Microsoft's latest MDAC (Microsoft Data Access Components) by cliking here.
Start using the TSQL.asp Query Analyzer NOW!
Comments & Questions Form

Send It!