Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2003, 03:21 PM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crobarian
Default Connecting to Paradox Table using ASP

I have been looking all over for working connection strings and recordset coding to connect ASP with Paradox. Can someone help me here please?

[u]Here is my latest code:</u>
Dim oConn 'Connection Object
Dim cmdDC 'Command Object
Dim rsTest ' Recordset

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open = "Driver={Microsoft Paradox Driver (*.db )}; DriverID=538; Fil=Paradox 5.X; DefaultDir=" & Server.Mappath("../Paradox") & "; Dbq=" & Server.Mappath("../Paradox") & "; CollatingSequence=ASCII"


Set cmdDC = Server.CreateObject("ADODB.Command")
cmdDC.ActiveConnection = oConn
cmdDC.CommandText = "SELECT CompanyName FROM Customer"
cmdDC.CommandType = 1


SET rsTest = Server.CreateObject("ADODB.Recordset")
rsTest.Open cmdDC, , 0, 1

[u]This is the latest error I have been getting:</u>

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Paradox Driver] External table is not in the expected format.

All I need is some kind of code that will allow me to view what is inside the Customer.db file.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to a DBF Table webgen ADO.NET 5 April 1st, 2006 03:52 AM
Update the Paradox table myunus SQL Server DTS 1 August 19th, 2005 11:28 PM
Connect to Paradox Using ASP crobarian Classic ASP Basics 1 April 27th, 2005 11:58 AM
connecting to Paradox 7 mikeuk PHP Databases 2 August 27th, 2004 06:28 AM
ADO connecting to a Paradox 8.0 table cpopham Access VBA 0 December 5th, 2003 01:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.