Magic User Group

Magic Wiki-Wakka : PervasiveODBC

HomePage :: CATEGORIES | Index :: Changes :: Comments :: Search :: Login/Register
Most recent edit on 2005-07-15 16:30:43 by GroupsMBM [spelling]

Additions:

3. Pervasive Control Center



Deletions:

3. Parvasive Control Center





Edited on 2005-07-14 01:48:55 by NorbertGutscher

Additions:
1.4) Make sure to change columns' Modifiable property from the default "yes" to the overridden "yes" (or to "no" if needed). For more information on this quirk, see the NOTE under Step 6 in following message in the here: PervasiveDDF NOTE:
For details on steps 3 and 4, refer to the following here: PervasiveDDF


Deletions:
1.4) Make sure to change columns' Modifiable property from the default "yes" to the overridden "yes" (or to "no" if needed). For more information on this quirk, see the NOTE under Step 6 in following message in the
magicu-l archives:
PervasiveDDF
NOTE: For details on steps 3 and 4, refer to the following message in the magicu-l archives:
magicu-l message #61813




Edited on 2005-07-14 01:36:28 by NorbertGutscher

Additions:
PervasiveDDF



Edited on 2005-07-14 01:33:19 by NorbertGutscher

Additions:
Originally posted by Steve Blank

Deletions:
Originally posted by Steve Blank



Edited on 2005-07-06 01:30:02 by NorbertGutscher [formattings]

Additions:
Originally posted by Steve Blank
There are several ways that one could go about this including simply copying a table definition and changing the database from "Btrieve" to "Pervasive" (or vice-versa). But the copying approach won't work without at least some manual tweaking. Briefly, here's the procedure I believe requires the least amount of work:
1.1.2) Table names must be unique within the database; no two tables within the same database can be named the same. Likewise, column names must be unique within the table; no two columns within a table can be named the same. Table and column names are NOT case-sensitive.


Deletions:
There are several ways that one could go about this including simply copying a table definition and changing the database from "Btrieve" to "Pervasive" (or vice-versa). But the copying approach won't work without
at least some manual tweaking. Briefly, here's the procedure I believe requires the least amount of work:
1.1.2) Table names must be unique within the database; no two tables within the same database can be named the same. Likewise, column names must be unique within the table; no two columns within a table can be named the
same. Table and column names are NOT case-sensitive.
Steve Blank




Edited on 2005-07-06 01:19:29 by NorbertGutscher [design]

Additions:
CategoryDataBases CategoryHowTo

Pervasive and ODBC

There are several ways that one could go about this including simply copying a table definition and changing the database from "Btrieve" to "Pervasive" (or vice-versa). But the copying approach won't work without
at least some manual tweaking. Briefly, here's the procedure I believe requires the least amount of work:

1. Create

Create the table definitions initially in the "Btrieve" database.
1.1) Be sure to respect ODBC API requirements for table and column naming conventions, specifically:
1.1.1) Table and column names cannot be longer than twenty characters, must begin with a letter of the alphabet (A-Z, a-z), and can only contain letters (A-Z, a-z), digits (0-9) and the underscore character (_).
1.1.2) Table names must be unique within the database; no two tables within the same database can be named the same. Likewise, column names must be unique within the table; no two columns within a table can be named the
1.3) Certain column types will require that you manually change their Stored As properties from those Magic assigns by default, specifically:
1.4) Make sure to change columns' Modifiable property from the default "yes" to the overridden "yes" (or to "no" if needed). For more information on this quirk, see the NOTE under Step 6 in following message in the

2. Magic

Use Magic to create the underlying, physical data files via these "Btrieve" table definitions -- Ctrl+G is good enough. Do not use Magic to create data files via the "Pervasive" database.

3. Parvasive Control Center

Use the Pervasive Control Center's Create New Database wizard to create the "Pervasive" database on the server. This wizard creates the Named Database, the Engine DSN and a fresh set of empty DDFs.

4. DDF Utility

Use Magic's DDF Make utility to populate the new, empty DDFs.
NOTE: For details on steps 3 and 4, refer to the following message in the magicu-l archives:

5. Database Wizard

Run the Pervasive Control Center's Check Database wizard; do not proceed until all tables pass the wizard with no failures.

6. Get Definition

Use Magic's Get Definition utility to create table definitions in the Table Repository for the "Pervasive" database. In my experience, the only problem you might encounter with these table definitions will be with those Btrieve tables that contain Memo columns: Magic's Get Definition utility will create these columns without a Picture. The solution is to manually enter the same Picture as you defined in the table's "Btrieve" counterpart -- everything else should be okay as is.


Deletions:
There are several ways that one could go about this including simply
copying a table definition and changing the database from "Btrieve" to
"Pervasive" (or vice-versa). But the copying approach won't work without
at least some manual tweaking. Briefly, here's the procedure I believe
requires the least amount of work:
1) Create the table definitions initially in the "Btrieve" database.
1.1) Be sure to respect ODBC API requirements for table and column naming
conventions, specifically:
1.1.1) Table and column names cannot be longer than twenty characters, must
begin with a letter of the alphabet (A-Z, a-z), and can only contain
letters (A-Z, a-z), digits (0-9) and the underscore character (_).
1.1.2) Table names must be unique within the database; no two tables within
the same database can be named the same. Likewise, column names must be
unique within the table; no two columns within a table can be named the
1.3) Certain column types will require that you manually change their
Stored As properties from those Magic assigns by default, specifically:
1.4) Make sure to change columns' Modifiable property from the default
"yes" to the overridden "yes" (or to "no" if needed). For more information
on this quirk, see the NOTE under Step 6 in following message in the
2) Use Magic to create the underlying, physical data files via these
"Btrieve" table definitions -- Ctrl+G is good enough. Do not use Magic to
create data files via the "Pervasive" database.
3) Use the Pervasive Control Center's Create New Database wizard to create
the "Pervasive" database on the server. This wizard creates the Named
Database, the Engine DSN and a fresh set of empty DDFs.
4) Use Magic's DDF Make utility to populate the new, empty DDFs.
NOTE: For details on steps 3 and 4, refer to the following message in the
5) Run the Pervasive Control Center's Check Database wizard; do not proceed
until all tables pass the wizard with no failures.
6) Use Magic's Get Definition utility to create table definitions in the
Table Repository for the "Pervasive" database. In my experience, the only
problem you might encounter with these table definitions will be with those
Btrieve tables that contain Memo columns: Magic's Get Definition utility
will create these columns without a Picture. The solution is to manually
enter the same Picture as you defined in the table's "Btrieve" counterpart
-- everything else should be okay as is.
HomePage > Pervasive > PervasiveODBC




Edited on 2005-06-29 23:39:26 by GroupsMBM

Additions:
magicu-l message #61813
magicu-l message #61813


Deletions:
http://groups.yahoo.com/group/magicu-l/message/61813
http://groups.yahoo.com/group/magicu-l/message/61813




Edited on 2005-06-29 21:37:33 by NorbertGutscher

Additions:


HomePage > Pervasive > PervasiveODBC




Oldest known version of this page was edited on 2005-06-28 00:34:49 by NorbertGutscher []
Page view:
There are several ways that one could go about this including simply
copying a table definition and changing the database from "Btrieve" to
"Pervasive" (or vice-versa). But the copying approach won't work without
at least some manual tweaking. Briefly, here's the procedure I believe
requires the least amount of work:

1) Create the table definitions initially in the "Btrieve" database.

1.1) Be sure to respect ODBC API requirements for table and column naming
conventions, specifically:

1.1.1) Table and column names cannot be longer than twenty characters, must
begin with a letter of the alphabet (A-Z, a-z), and can only contain
letters (A-Z, a-z), digits (0-9) and the underscore character (_).

1.1.2) Table names must be unique within the database; no two tables within
the same database can be named the same. Likewise, column names must be
unique within the table; no two columns within a table can be named the
same. Table and column names are NOT case-sensitive.

1.2) Observe ODBC restrictions on data types, specifically:

1.2.1) Alpha-type columns cannot be longer than 255 characters.

1.2.2) No table can contain more than one Memo/BLOB-type column.

1.3) Certain column types will require that you manually change their
Stored As properties from those Magic assigns by default, specifically:

1.3.1) Logical columns will need to be changed to Stored As: Integer
Logical, Size: 1.

1.3.2) Date columns will need to be changed to Stored As: YYMD Date.

1.3.3) Time columns will need to be changed to Stored As: HMSH Time.

1.4) Make sure to change columns' Modifiable property from the default
"yes" to the overridden "yes" (or to "no" if needed). For more information
on this quirk, see the NOTE under Step 6 in following message in the
magicu-l archives:

http://groups.yahoo.com/group/magicu-l/message/61813

2) Use Magic to create the underlying, physical data files via these
"Btrieve" table definitions -- Ctrl+G is good enough. Do not use Magic to
create data files via the "Pervasive" database.

3) Use the Pervasive Control Center's Create New Database wizard to create
the "Pervasive" database on the server. This wizard creates the Named
Database, the Engine DSN and a fresh set of empty DDFs.

4) Use Magic's DDF Make utility to populate the new, empty DDFs.

NOTE: For details on steps 3 and 4, refer to the following message in the
magicu-l archives:

http://groups.yahoo.com/group/magicu-l/message/61813

5) Run the Pervasive Control Center's Check Database wizard; do not proceed
until all tables pass the wizard with no failures.

6) Use Magic's Get Definition utility to create table definitions in the
Table Repository for the "Pervasive" database. In my experience, the only
problem you might encounter with these table definitions will be with those
Btrieve tables that contain Memo columns: Magic's Get Definition utility
will create these columns without a Picture. The solution is to manually
enter the same Picture as you defined in the table's "Btrieve" counterpart
-- everything else should be okay as is.

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