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 > Database Server Software > Other > ACT 6.0 DB From ASP Page

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-04, 10:25
timclaason timclaason is offline
Registered User
 
Join Date: Nov 2003
Posts: 9
ACT 6.0 DB From ASP Page

So, I've connected to an Act DB from an ASP page using the connect string:
strConnect = "Driver={Microsoft Visual FoxPro Driver}; SourceType=DBF; SourceDB=C:\ActTestDB; Exclusive=No;"

I've read from the database, written to the database, updated the database (using the format INSERT INTO filename... [where filename is the name of the .dbf file]) using SQL style programming.

When I insert into the db, I can see the record I added when I do a SELECT query on a webpage, but when I open that Act file, I don't see the record I added until I compress/reindex the database. My conclusion is that I also need to update the .mdx file (which is the index file for the contacts table), but I don't know how to do this. Has anyone had experience doing this, and could you help me out if you have?

-----------------------------
By the way, a tip for people who are looking to get started on doing this sort of database manipulation...on INSERT queries, you have to insert on all fields...that is, INSERT INTO file (field1, field2,...,fieldn) Values (...). There are at least 60 fields in the default Act DB. Get the SDK from act.com to read more...it's on page 32 of the .pdf file
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