Thomas,
Several thoughts. One does the USERID "MONEY" have a password. If so that
may be reason for problem attaching tables. Complete syntax from
www.rsyntax.com follows:
"Syntax
SCONNECT syntax diagram
Options
datasource
Specifies the name of the foreign data source that contains the table you want.
IDENTIFIED BY userid
Specifies your user account name for the foreign data source. You can use ''
(two single quotes) in this position if there is no User ID.
password
Specifies your password for the foreign data source. You can use '' (two single
quotes) in this position if there is no password.
About the SCONNECT Command
If you omit the datasource option, a dialog box opens, listing data sources
from which to choose and continues with prompts for username and password.
SCONNECT command is also supported in EEPs and Stored Procedures."
Second is on SATTACH command. Do you really mean for ALL columns in each table
to be used to uniquely indentify each row. Usually in most schemes each table
has a primary key. Following is part quote from www.rsyntax.com
"AS alias
Specifies a different name for the table while attached in R:BASE.
tblname
Specifies the table in the foreign database to attach.
USING ALL
Specifies all columns uniquely identify the rows in an attached table if no
primary or unique keys are defined.
USING collist
Specifies which columns uniquely identify the rows in an attached table if no
primary or unique keys are defined.
SATTACH requires an owner password if one has been defined, or permission to
create tables."
"R:BASE 2000 (version 6.5++), Build:1.847xRT03 and Higher ...
Enhanced Syntax:
SATTACH [TableName [AS TableAlias] [USING ColumnList] [ALIAS AliasList]]
There are no parentheses around the aliaslist, just names separated by commas.
[AS TableAlias] specifies an alias, or temporary name, for the foreign table.
[USING ColumnList] If the foreign table has no primary or unique key, specifies
the column(s) that uniquely identify the rows in the table.
[ALIAS AliasList] to specify alias names for columns."
Hope this helps.
--
Sincerely,
Jim Bentley
American Celiac Society
266 Midway Dr
River Ridge LA 70123
email: [EMAIL PROTECTED]
Phone: 504-738-6165
-----Original Message-----
From: Thomas J Cimicato <[EMAIL PROTECTED]>
Sent: Thu, 30 Dec 2004 18:15:16 -0500
To: [email protected] (RBASE-L Mailing List)
Subject: [RBASE-L] - SAttach Error
Here are my ODBC statements
SCONNECT DATBASE IDENTIFIED BY MONEY
SATTACH Checks AS DB_Checks USING ALL
SATTACH RCKDATA AS DB_RCKDATA USING ALL
On the SCONNECT I get no error. On each of the SATTACH commands I get
the
following error.
-ERROR- Error message from server: [RBTI][R:BASE ODBC
Driver][DATBASE]-ERROR- Unauthorized access to the table (2039) (2957)
Any thoughts??
Thomas Cimicato
��<