Database Connection from ASP to dbase IV

Database Connection from ASP to dbase IV

I have made a databaseconnection to a dbase IV database in VisualInterdev (with global.asa).
In the Data View window I can see the tables, but when I open a databaseconnection
in an ASP file I get the following error [Microsoft][ODBC dBase Driver] ‘(unknown)’
is not a valid path. Make sure that the path name is spelled correctly and that you are
connected to the server on which the file resides. Error has occurred in the following line:
DataConn.Open Application(“Connection1_ConnectionString”)I use the following code:

strSql = "select * from events"Set DataConn	= Server.CreateObject("ADODB.Connection")Set cmdTemp		= Server.CreateObject("ADODB.Command")DataConn.Open Application("Connection1_ConnectionString")Set cmdTemp.ActiveConnection = DataConnSet RS = Server.CreateObject("ADODB.RecordSet")cmdTemp.CommandText = strSqlRS.Open cmdTemp, , 0, 1In global.asa Application("Connection1_ConnectionString")is defined as "Provider=MSDASQL.1;Persist Security Info=False;
Extended Properties=""CollatingSequence=ASCII;
Deleted=1;Driver={Microsoft dBase Driver (*.dbf)};DriverId=277;FIL=dBase III;
"";Initial Catalog=F:Temp;"

Do you know what I have done wrong?

Your problem has a simple solution.

You can see the dbase files since it is on your “F:…” drive.
Your Web server cannot see them, since it has no “F:..” drive.

Set up an ODBC dsn on your Web Server that can see your dbase database and use the name of the ODBC DSN as your Connection String.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several