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
 


��<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:[EMAIL PROTECTED]"> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} span.EmailStyle17 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:windowtext;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} span.GramE {mso-style-name:""; mso-gram-e:yes;} [EMAIL PROTECTED] Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--> </head> <body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'> <div class=Section1> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Here are my ODBC statements<o:p></o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><span style='mso-spacerun:yes'>&nbsp;&nbsp; </span>SCONNECT DATBASE IDENTIFIED BY MONEY<o:p></o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><span style='mso-spacerun:yes'>&nbsp;&nbsp; </span>SATTACH <span class=GramE>Checks<span style='mso-spacerun:yes'>&nbsp; </span>AS</span> <span class=SpellE>DB_Checks</span><span style='mso-spacerun:yes'>&nbsp; </span>USING ALL<o:p></o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><span style='mso-spacerun:yes'>&nbsp;&nbsp; </span>SATTACH RCKDATA AS DB_RCKDATA USING ALL<o:p></o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>On the SCONNECT I get no error. On each of the SATTACH commands I get the <o:p></o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span class=GramE><font size=2 face="Courier New"><span style='font-size:10.0pt; font-family:"Courier New"'>following</span></font></span><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> error.<o:p></o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>-ERROR- Error message from server: [RBTI<span class=GramE>][</span>R:BASE ODBC Driver][DATBASE]-ERROR- Unauthorized access to the table (2039) (2957)<o:p></o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span class=GramE><font size=2 face="Courier New"><span style='font-size:10.0pt; font-family:"Courier New"'>Any thoughts??</span></font></span><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p> <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Thomas Cimicato<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> </div> </body> </html>

Reply via email to