Thank you!
Works like a breeze :)
The setup is like this (on Solaris / CF 4.51):
MERANT dBase/FoxPro Driver:
Fill out the fields Datasourcename and Databasedirectory
Databasedirectory is only the directory part that is common for all
directories, for example "db"
Then the table is called like this:
<CFQUERY name="GetRecord" dataSource="userdb" maxRows=1>
SELECT *
FROM /www/docs/home/#session.username#/db/EMPLOYEES.DBF
WHERE EMPLOYEEID = #Variables.RecordID#
</CFQUERY>
Helge
-----Original Message-----
From: Howie Hamlin [mailto:[EMAIL PROTECTED]]
Sent: 25. mai 2000 16:55
To: [EMAIL PROTECTED]
Subject: Re: DBASE
----- Original Message -----
From: Helge Hetland <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 25, 2000 10:25 AM
Subject: DBASE
> Is it possible to register a dbase in CF admin once and then use the same
> dsn name in many directories?
>
Yes, just give the full path to the dbf file in your query.
> I'll have multiple directories/users that will need to use a database with
> identical tables but with different content.
>
> I need the syntax for something like this:
>
>
> <cfquery name="Testdata" datasource="/www/users/username/db/db.dbf">
> select bla,bla,bla
> </cfquery>
>
>
Set up a dbase datasource called dbfds (or something). Set it up to a
default directory (the driver only checks that the directory exists - you
don't even need any dbase files in it).
Then set up your queries like:
<cfquery name="testdata" datasource="dbfds">
select something from c:\dbasefiles\client1\test.dbf
</cfquery>
HTH,
Howie
>
>
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.