I have a database, containing the usual file, field and index .DDF files,
as well as a load of .BTR tables.
I have Pervasive.SQL 2000i, but when I access the database, the only the
file, field and index tables appear.
Looking in the file.ddf file with Pervasive.SQL 2000i, the tables (.BTR)
are not listed. Looking at it with Notepad, the tables are listed, but
dont show up in Pervasive.SQL 2000i.
How can I get the tables to appear?
|
|
0
|
|
|
|
Reply
|
matttcattt
|
7/29/2004 10:36:59 AM |
|
I have never heard of files being in the DDF not showing up as part of
the database. The flip side to that is that just because you can see
them in there with Notepad does not mean that they are still in there.
Internally records are marked as free, not physically overwritten in
the data file so... there may not be but 3 records in the file (even
though the others are still "in the file". Use Butil -stat on
file.ddf to get a record count.
The other possibility is the "database" that you are looking at does
not in fact point at the DDFs you are looking at. In the Pervasive
Control Center, PCC, do a right-click on the database and select
properties. See exactly which Name Database is selected. Then in PCC
right click on "Configuration" and select "Maintain Named Database".
Select the database name and see what directory it is point to. If it
is not the correct one you can change it here.
Leonard
On Thu, 29 Jul 2004 06:36:59 -0400, "matttcattt"
<matttcattt@yahoo.co.uk> wrote:
>I have a database, containing the usual file, field and index .DDF files,
>as well as a load of .BTR tables.
>
>I have Pervasive.SQL 2000i, but when I access the database, the only the
>file, field and index tables appear.
>
>Looking in the file.ddf file with Pervasive.SQL 2000i, the tables (.BTR)
>are not listed. Looking at it with Notepad, the tables are listed, but
>dont show up in Pervasive.SQL 2000i.
>
>How can I get the tables to appear?
|
|
0
|
|
|
|
Reply
|
Leonard
|
7/30/2004 11:39:25 AM
|
|
There are many causes of "Error in assignment" messages:
1) Trying to insert a numeric value into a string field -- you must enclose
strings in single-quotes.
2) Trying to insert a string into a numeric field.
3) Using some combinations of Locale with European numeric formats (, instead
of .).
4) Having string columns exceeding the maximum of 254 characters
And more... See if any of these relate to your query...
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach@goldstarsoftware.com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: August, 2004: See our web site for details!
matttcattt wrote:
> I have found the problem. The tables, unlike the DDFs had full filenames,
> and so Pervasive.SQL 2000i wasn't looking in the database folder for the
> tables. Moving the database to a correctly names folder alows access to
> the files. :D
>
> However, I now get the following error when opeing one of the tables:
> "ODBC Error: SQLSTATE = 22005, Native error code = 0 Error in assignment".
> A Google search doesn't bring up anything useful (not to me at least). Any
> help?
|
|
0
|
|
|
|
Reply
|
Bill
|
8/2/2004 9:15:49 AM
|
|
I have found the problem. The tables, unlike the DDFs had full filenames,
and so Pervasive.SQL 2000i wasn't looking in the database folder for the
tables. Moving the database to a correctly names folder alows access to
the files. :D
However, I now get the following error when opeing one of the tables:
"ODBC Error: SQLSTATE = 22005, Native error code = 0 Error in assignment".
A Google search doesn't bring up anything useful (not to me at least). Any
help?
|
|
0
|
|
|
|
Reply
|
matttcattt
|
8/2/2004 11:53:03 AM
|
|
I am not running any query, just trying to open the table and view the data
by double clicking on the table's icon in Pervasive.SQL 2000i.
An import into Access (2000) also fails with the same, "Error in
assignment" message.
|
|
0
|
|
|
|
Reply
|
matttcattt
|
8/2/2004 5:01:25 PM
|
|
"matttcattt" <matttcattt@yahoo.co.uk> wrote in message news:<aea6e548e041c4fd76de58b89a954670@localhost.talkaboutdatabases.com>...
> I am not running any query, just trying to open the table and view the data
> by double clicking on the table's icon in Pervasive.SQL 2000i.
>
> An import into Access (2000) also fails with the same, "Error in
> assignment" message.
Matt, when you use DDFs you are using the relational interface and
that requires a query to return any data. Opening a table is basically
a "select * from table_name". Also Access uses SQL queries to return
data, so yes, you are doing a query even if you aren't typing it out
yourself.
It seems likely that your DDFs are incomplete and have other problems
as well. Since that is metadata created by the application vendor that
created the application the first place to start is to go back to them
or any group that knows about DDFs for this application and get the
latests and best DDFs. Even then the DDF format may be many years old
and incompete. Fixing or creating DDFs for existing data is a tedious
and often expensive job, but it can be done. The main thing is to
discover how much work it will entail and whether it is worth it to
your business.
John R. Rothgeb
Database Technology Consultant
johnr@rothgeb.net
|
|
0
|
|
|
|
Reply
|
jrothgeb
|
8/4/2004 5:28:11 PM
|
|
I realise I am using an SQL query, I meant that I wasn't specifying any
criteria for a query, simply displaying all records.
|
|
0
|
|
|
|
Reply
|
matttcattt
|
8/5/2004 9:00:43 AM
|
|
Then the last item might apply -- you have a string field longer than 254
characters?
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach@goldstarsoftware.com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: August, 2004: See our web site for details!
matttcattt wrote:
> I realise I am using an SQL query, I meant that I wasn't specifying any
> criteria for a query, simply displaying all records.
|
|
0
|
|
|
|
Reply
|
Bill
|
8/8/2004 9:43:59 PM
|
|
I doubt it, but I cannot check for obvious reasons. :(
|
|
0
|
|
|
|
Reply
|
matttcattt
|
8/9/2004 9:05:57 AM
|
|
|
8 Replies
269 Views
(page loaded in 0.156 seconds)
Similiar Articles: Btrieve tables dont appear - comp.databases.btrieveI have a database, containing the usual file, field and index .DDF files, as well as a load of .BTR tables. I have Pervasive.SQL 2000i, but when I ac... Update One Table from Another Table Using SQL - comp.soft-sys.sas ...... contents of specific = rows in one table ... 3Dtable1.key2); Unfortunately, SAS does not appear ... In Select Where Query - comp.databases.btrieve ... Re: Update One Table ... ODBC Driver Doesn't Show Up - comp.databases.filemaker... using Visual Studio to access NonStop SQL tables thru ... ... PHP ODBC not working anymore - comp.databases.btrieve ... Bugs: #5678: MyODBC appears to install, but does not show up ... remove any commas/data from mysql? - comp.databases.mysql ...... Forward | Print | Individual Message | Show ... ADD VALUE LABELS does not remove any already existing ... export data to sql-script - comp.databases.btrieve ..... table ... if statement - comp.soft-sys.matlab... always FALSE, because 13 does not appear ... statement - comp.databases.btrieve ... Is there a way for me to write a batch file to run an SQL statement in a Pervasive table. Could not connect via A-Record (code 11001) - comp.mail.misc ...The IP you posted from does not seem to be on any dsbl.org ... So there would not appear to be any valid reason > to ... idea, as query > plans based on a 1000-record table ... Can a procedure contain only a SELECT statement? - comp.databases ...Oracle does not support local temporary tables which are alternative to ... Some things appear to become easier and more ... Select IF-Statement - comp.databases.btrieve ... Lookups or copy data from one file to the other - comp.databases ...This does not happen if I copy data, > because that data ... How do I copy recordsets from one database table to ... the full path from file_1...file_n will appear inside to ... problem with int 13h function - comp.lang.asm.x86... had my posting made if through (which it doesn't appear ... By the way : didn't you notice that Debug does not use ... head >1, sector 1 >it appears the partition table and ... Some free VBA-stuff - comp.cad.solidworksBut SVG does not say anything about the ... Accessing BTrieve database from Visual ... guess it's possible ... modify table template like Excel-BOM-template now. To show ... Btrieve tables dont appear - comp.databases.btrieve | Computer GroupI have a database, containing the usual file, field and index .DDF files, as well as a load of .BTR tables. I have Pervasive.SQL 2000i, but when I ac... Chapter 21 - Migrating Btrieve Applications to MS SQL Server 7.0The symbols appear in the name column of the table whose headings are "ordinal," "hint ... if there is no corresponding record in the Orders table. Because Btrieve does not ... 7/23/2012 6:41:57 PM
|