[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] ASP database connectivity
- Subject: [cobalt-users] ASP database connectivity
- From: "Hedwyg van den Elzen" <hedwyg@xxxxxxxxxxxx>
- Date: Mon Oct 29 07:34:11 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
I have a .dbf database on a cobalt-server with ASP (ChiliSoft).
I got this error message:
ADODB.Connection.1 error '800a0bb9'
The application is using arguments that are of the wrong type, are out
of acceptable range, or are in conflict with one another.
My code is:
<%
connectionstring = "DRIVER={Microsoft dBase Driver (*.dbf)};DBQ=" &
Server.MapPath("adressen.dbf")
Set db = Server.CreateObject("ADODB.connection")
db.Open connectionstring
sql = "SELECT voornaam FROM adressen ORDER BY voornaam"
Set rs = db.Execute("sql")
Do While NOT rs.EOF
Response.Write rs("voornaam")
Response.Write "<br>"
rs.MoveNext
Loop
db.Close
%>
What's wrong?
Best regards,
Hedwyg van den Elzen
The Netherlands