VPASP supports 3 types of database, Access, SQLServer and MySQL.
MS Access Setup
VPASP comes with a MS Access database and is configured to use this database as default. It is recommended that you move the database (shopping600.mdb) from the root VPASP directory and place it into a different directory.
This directory needs to have write permissions enabled so that the database can be updated.
You also need to modify your shop$config.asp file to point to the new database location.
SQL Server Setup
SQL Server is a complex Microsoft software product. From the VP-ASP point of view it is very simple to use. The steps in using SQL Server are:
Create the SQL Server database. This can be done using SQL Server's Query analyzer or it may have been created for you by your web hosting company
Add the VP-ASP Tables
Load the configuration table with default values
Optionally add the demo shop values
Web Hosting company has created the database
If your web hosting company has already created the database and you DO NOT have the ability to use Query Analyzer, then VP-ASP supplies a tool called convertsql.asp. This tool can be used to build the VP-ASP tables but cannot create the database.
It can build the tables and load the default configuration. It can also load the demo shop if required.
To use convertsql.asp, you must first tell VP-ASP where the empty SQL Server database is located by changing these lines in shop$config.asp
Xdatabase=”yourdatabasename”
xdatabasetype="SQLSERVER”
xSqlUser=”youruserid”
xSQlpwd=”yourpassword”
xSQLServer=”www.yoursite.com” or IP Address in form “111.22.333.90”
Use convertsql.asp from your browser
www.yoursite.com/shopping/convertsql.asp
Building SQL Server Tables
Type in the filename
Create500sqlserver.txt
You will see messages being displayed telling you the tables that are being created. If you get an error that the database cannot be read or written, check the shop$config statements above.
Loading the Configuration File
The next step is to load the default configuration options. Now start convertsql.asp by typing the location where you installed VP-ASP www.yoursite.com/shopping/convertsql.asp
Type in file name below. This loads the initial configuration and language file
Create500admin.txt
Loading Demo Shop
This step is only necessary if you want to “play” with VP-ASP demo shop. Otherwise it is not necessary. Use convertsql.asp and type in the filename create500demo.txt. This loads the database with the demo shop.
The SQL Server database is loaded and ready. You should now be able to click shop on the home page and see the product categories.
Creating the SQL Server – Query Analyzer
If you have expertise with SQL Server, you can use the SQL Server tool called Query Analyzer to create the database. The database needs to be created using SQL Server Query Analyzer or your web hosting company sometimes creates the database for you. Query Analyzer comes as part of the Microsoft SQL Server Product and is not supplied by VP-ASP.
Please note YOU CANNOT USE THE UPSIZING WIZARD TO BUILD VP-ASP TABLES
1 Query Analyzer Creation
Simply start Query Analyzer. Open the file create500sqlserver.sql and run the script. It should take about ten seconds. The database and the tables are now created.
Updating Shop$config.asp
The shop$config.asp settings should be as follows:
Xdatabase=yourdatabasename
xdatabasetype="SQLSERVER”
xSqlUser=”youruserid”
xSQlpwd=”yourpassword”
xSQLServer=”www.yoursite.com” or IP Address in form “124.77.090.90”
MySQL Setup
Unix - Creating MYSQL database via command level
To use MYSQL under Windows you must have installed MYSQL database support for Windows. See www.mysql.com. All other requirements for Windows and ASP must also be met as noted below.
Windows -Running VP-ASP on your own local Personal Computer
First determine what Windows operating system you have. Then determine if you have the appropriate Microsoft prerequisites. If you have Windows 95/98 VP-ASP requires that you have the free Microsoft product called Personal Web Server (PWS).
If you do not have PWS installed, then you must install it. It comes either free on your Windows CDROM or it can be downloaded from the web. Please see http://www.vpasp.com/virtprog/info/faq_pws.htm
If you have Windows NT/Windows 2000/XP Professional
VP-ASP requires that you have Microsoft Internet Information Server (IIS).
This is available on the NT or XP CDROM.
If you have Windows ME/XP Home
Unfortunately Microsoft has not made available any software that can run ASP on these operating systems. To evaluate VP-ASP you will need to use VP-ASP on your web hosting company.
Steps to install VP-ASP on your local PC
Windows - Creating MYSQL database
Diagnostic Tools
Our diag_dbtest diagnostic tool or shopdbtest for releases prior to 5.0, tests if the directory has been set-up correctly to read and write the database.
OR
The problem may simply be a configuration setting in VP-ASP which is described below.