If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > Connecting to Paradox database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-16-03, 16:08
dls2835 dls2835 is offline
Registered User
 
Join Date: Jan 2003
Posts: 1
Question Connecting to Paradox database

I don't know much about VB but here is what I'm trying to do. This code produces nothing. The web browser will just time out.

The code below uses a datasource named timereports. I'm 100% sure the datasource works as I've tested some sql statements using winsql.

I don't care if I need to connect without the data source, I just need to successfully send and retrieve an SQL statement from the database and I can go from there.

This is a paradox 5.x database, on my K drive in this example.

Thanks again and the code follows:


<html><head><Title>Database on the internet</title></head>
<body>

<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "dsn=TimeReports;" & "UID=master;" & "pwd=master;"

SQL = "SELECT * from untcard"

Set RS = Conn.Execute(SQL)
%>

<table border="1" bgcolor="lightblue">
<tr><td colspan="2">Here is the data in the table</td></tr>
<%
' keep printing out data until EOF
Do While Not RS.EOF
%>

<tr> <td><%=rs("TC_EMPNO")%></td>
<td><%=rs("TC_ATIME")%></td></tr>
<%
RS.MoveNext
Loop
Conn.Close %>

</table>
</body></html>
Reply With Quote
  #2 (permalink)  
Old 08-27-03, 17:14
Shores Shores is offline
Registered User
 
Join Date: Aug 2003
Location: Bologna - Italy
Posts: 209
Have you checked the SQL syntax?

The case of the tablename, putting ; in the end of the statement, and things like that?
__________________
The only failure is not trying to do it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On