Magic User Group

Magic Wiki-Wakka : PervasiveODBCflexibleDirectory

HomePage :: CATEGORIES | Index :: Changes :: Comments :: Search :: Login/Register
Most recent edit on 2005-07-30 19:47:17 by NorbertGutscher

Additions:
Categories
CategoryHowTo




Edited on 2005-07-18 17:20:58 by GroupsMBM [small corrections]

Additions:
We have a directory structure with root for central files and subdirectories for each company number. In the past, we couldn't find an easy solution to connect with ODBC. Some messages of today from Steve Blank and others give us the following idea.
Structure (SHOPN=Root. 000,001,...,999 = company number.)
The tables are flexible defined with %FIRMA% stored in Locical Names and the company (Firma) can be selected in Magic.

Write a start program to correct the data location in file.ddf

As each table name has a well defined prefix, we know which table is at root and which at company subdirectory. The start program is called after each change of the company number.
If the prefix is 'N' and if not done before

> update fileloc (in file.ddf) to CompanyNo&'\'&fileloc



Deletions:
We have a directory structure with root for central files and subdirectories for each company number. In the past, we don't found an easy solution to connect with ODBC. Some messages of today from Steve Blank and others give us the following idea. Structure (SHOPN=Root 000,001,...,999 = company number)
The tables are flexible defined with %FIRMA% stored in Locical Names and the company (Firma) can selected in Magic.

Write a start programme to correct the data location in file.ddf

As each table name has a well defined prefix, we know witch table is at root and witch at company subdirectory. The start programme is called after each change of the company number.
If the prefix is 'N' and if not done before

> update fileloc CompanyNo&'\'&fileloc





Edited on 2005-07-16 15:45:19 by NorbertGutscher

Additions:
Now we are able to connect with ODBC to the root and the specific chosen company files!

Deletions:
Now we are able to connect with ODBC to the root and the specific chosen companie files!



Edited on 2005-07-16 15:44:52 by NorbertGutscher

Additions:
Now we are able to connect with ODBC to the root and the specific chosen companie files!



Edited on 2005-07-16 15:42:58 by NorbertGutscher [second draft]

Additions:
second draft Prefix 'T' = Root for all companies
Prefix 'N' = File stored in company subdirectory
If the prefix is 'N' and if not done before

> update fileloc CompanyNo&'\'&fileloc



Deletions:
Prefix 'T' = Root Prefix 'N' = Subdirectory (company company number 000 - 999)
If the prefix is 'N'

> update fileloc CompanyNo&'\'&fileloc





Edited on 2005-07-16 15:38:57 by NorbertGutscher [second draft]

Additions:
As each table name has a well defined prefix, we know witch table is at root and witch at company subdirectory. The start programme is called after each change of the company number. Prefix 'N' = Subdirectory (company company number 000 - 999)
Draft function


Deletions:
PervasiveODBCchangeLocation
As the table names has an well defined prefix, we know witch table is at root and witch at company subdirectory. The start programme is called after each change of the company number.
Prefix 'N' = Subdirectory (company number 000 - 999)




Edited on 2005-07-16 15:35:19 by NorbertGutscher

Additions:
The tables are flexible defined with %FIRMA% stored in Locical Names and the company (Firma) can selected in Magic.

Deletions:
The tables are flexible defined with %FIRMA% and can selected.



Edited on 2005-07-16 01:30:17 by NorbertGutscher [first draft]

No differences.


Edited on 2005-07-16 01:28:40 by NorbertGutscher [first draft]

Additions:
(oh oh - this is not easy for me to explain in english. Please correct all my spelling!)
The tables are flexible defined with %FIRMA% and can selected.
Create Pervasives DDFs to access in Magic.

Write a start programme to correct the data location in file.ddf

As the table names has an well defined prefix, we know witch table is at root and witch at company subdirectory. The start programme is called after each change of the company number.
Example:
Prefix 'T' = Root
Prefix 'N' = Subdirectory (company number 000 - 999)
If the prefix is 'T'

> do nothing If the prefix is 'N'

> update fileloc CompanyNo&'\'&fileloc


Deletions:
PervasiveODBCfileDDF



Edited on 2005-07-16 01:08:44 by NorbertGutscher

Additions:
We get the right directory with
INIPUT ('[MAGIC_LOGICAL_NAMES]FIRMA='&STR (CompanyNo,'3P0'))




Edited on 2005-07-16 01:03:11 by NorbertGutscher

No differences.


Oldest known version of this page was edited on 2005-07-16 01:02:40 by NorbertGutscher []
Page view:

Flexible ODBC Database Locations


We have a directory structure with root for central files and subdirectories for each company number. In the past, we don't found an easy solution to connect with ODBC. Some messages of today from Steve Blank and others give us the following idea.


Structure (SHOPN=Root 000,001,...,999 = company number)
Maintain Database

PervasiveODBCchangeLocation
PervasiveODBCfileDDF
PervasiveODBCMaintainDB

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki trunk
Page was generated in 0.1372 seconds