Connecting to database Home

Introduction
Welcome
System requirements
Licensing details
What is the registration
Using ASPRunner
Working with projects
Templates
What are templates
Cars
Classified ads
Events
Jobs
Knowledge base
News
Paypal
Real estate
Sporting
Vacation houses
Connecting to the database
Datasource tables
SQL query page
About SQL query designer
Query Designer
SQL
Results
Charts
Creating chart and setting parameters
Chart appearance
Using SQL to shape chart data
Reports
Creating report and setting parameters
Report totals and layout
Choose pages
Login page
User login settings
Advanced security settings
User group permissions
Fields order and totals
Miscellaneous settings
Choose theme
Visual Editor
About
Toolbars
Page Elements
"View as" settings
"Edit as" settings
Validation types
Lookup wizard
Events
Output directory settings
After you are done
FTP upload
FrontPage Publishing
Advanced topics
Connecting to database
Connecting to MS Access database
Connecting to MS SQL Server database
Connecting to FoxPro database
Connecting to MySQL database
Connecting to Oracle database
Connecting to MS Excel database
Connecting to CSV or Text file
Events
More about events
Global events
Table events
Page life cycle overview
Predefined actions
Send simple email
Send email with new data
Save new data in another table
Insert a record into another table
Check if specific record exists
Display a message on the Web page
Redirect to another page
Custom code
Sample code
Show list of customer orders
Check if start date is ealier than end date
Before deleting a record check if related records exist
Speed up data entry using events
Publishing ASP application to the remote Web server
Using third party FTP client to publish ASP pages to the remote Web server
Using FrontPage to publish ASP pages to the remote Web server
Demo account
What is the Demo Account?
Terms and Conditions
Master-details relationships
Using JOIN SQL queries
AJAX-based Functionality
ASPRunner session variables
Debugging tips
Template files processing rules (Files.txt)
Multilanguage support
Useful functions and links
Smarty templates
Stylesheets
Template language
Rich Text Editor plugins
How to control Inline Add/Edit functionality from script
Troubleshooting "Operation must use an updateable query" errors
ODBC
Upgrade Guide from ASPRunnerPro 4.0 and older
Frequently Asked Questions
Error: Operation must use an updateable query.
Error: Syntax error in UPDATE statement.
Error: Syntax error in INSERT INTO statement
Error: Login failed for user 'MACHINE_NAME\IUSR_MACHINE_NAME'
Error: Data type mismatch in criteria expression
Error: The Microsoft Jet database engine cannot open the file (unknown).
Error: Unable to open registry key 'Temporary (volatile) Jet DSN for process ...
Error: Data provider could not be initialized
Error: Invalid use of Null: 'Replace'
Error: Specified driver could not be loaded due to system error 5 (Oracle in OraHome92)
How can I add new ODBC Datasource
Error: Too many fields defined
Error: I enter correct login and password but receive Invalid Login error. I use SQL Server.
I cannot find ODBC Administrator applet on Windows 2000 machine
I cannot connect to my Excel (Access) database
Where can I download latest ODBC drivers
How to work with Access database stored on the remote computer?
Reserved Access, T-SQL, ODBC keywords.
Order ASPRunner online

 
  ASPRunner manual


Connecting to the database

 

Select your database type and press Next>>. Depending on the selected database type you will see one of the database-specific dialog boxes shown below.

Use Quick help links on the left if you need help connecting to a specific database.

Create new database - choose this if you do not have a database yet. ASPRunnerPro will help you to create a new empty MS Access database.

Using Create new table window you can create new tables in your database.

For each field type name, type, size, scale (applies to DECIMAL datatype in SQL Server, Oracle and MySQL only). Set the Primary key field. Databases created with ASPRunner will be saved to C:\Program Files\ASPRunnerPro5.0 directory (database.mdb, database1.mdb etc.)

NOTE: Don't change table settings after you've built your project and added data records. All data will be lost after table modification.

Click the Recent database button to see a list of recently opened databases. You can use this button to quickly connect to previously opened databases.

Autoconnect button will be enabled if you opened existing project or connected to the database successfully. Use this button to bypass database selection tab and jump directly to the table selection tab.

Database/spreadsheet file (MS Access, Excel, FoxPro, Paradox, Text file)

Browse for database file. Press Open when done.

ASPRunner will try to find what ODBC driver to use to connect to selected database file. Check Select ODBC driver manually checkbox if you'd like to select ODBC driver manually. (It is not always possible to define database type in the selected file automatically.)

Check Use Server.MapPath if you want relative path to be used in database connection string. Please also specify the path name if the database is located at a subfolder from the root. Use this option if you plan to transfer files to the remote Web server. In this case ASPRunner creates a copy of database in the Output folder. ASP pages will work with this database file copy which means you won't see changes in original database file.

Press Next>> when done.

ODBC DSN (If you already have an ODBC Data Source Name (DSN) associated with your database)

Select ODBC DSN from listbox. Enter your Login and Password if required. Press Next>> to continue.

ODBC driver dialog ( to connect directly through ODBC driver specific dialog (Oracle, MS SQL, DB2, Interbase, MySQL, FileMaker etc.))

Select ODBC driver from the list of available ODBC drivers and press Next>>.

Here is the sample SQL Server driver connection dialog. Each ODBC driver displays its own dialog box. Enter required parameters and press OK to continue.

After you successfully connected to database it's time to select datasource tables.

The CHM file was converted to HTML by chm2web software.