ADOX.Append Creates a Read-Only Linked Table to SQL Server 7.0

ADOX.Append Creates a Read-Only Linked Table to SQL Server 7.0

Post by Craig Perso » Wed, 13 Sep 2000 08:05:08



Hello,

I am programmatically using ADOX to Append a Linked SQL Server 7.0 table to
a local Access 2000 database.  That is working fine.  However the table is
linked in read-only mode!  This is odd because manually linking the table
using Access 2000 link table wizard works fine.  Any one encounter this
issue before?

Thanks,

Craig

 
 
 

ADOX.Append Creates a Read-Only Linked Table to SQL Server 7.0

Post by mary chipma » Thu, 14 Sep 2000 01:01:48


yes -- it plain old doesn't work. use DAO instead. if you need sample
code, write back i'll post some for you.

On Mon, 11 Sep 2000 16:05:08 -0700, "Craig Person"


>Hello,

>I am programmatically using ADOX to Append a Linked SQL Server 7.0 table to
>a local Access 2000 database.  That is working fine.  However the table is
>linked in read-only mode!  This is odd because manually linking the table
>using Access 2000 link table wizard works fine.  Any one encounter this
>issue before?

>Thanks,

>Craig



 
 
 

ADOX.Append Creates a Read-Only Linked Table to SQL Server 7.0

Post by Paul » Thu, 14 Sep 2000 10:07:43


It may be as simple as setting one of the properties.  I'm soory I shouldn't
be posting when I don't have all of the information, but if you were to
iterate through the properties of your linked table you will note that one
of them deals with the table be read-only.  once that property is determine,
you simply need to set it to false or true prior to your append.

I would be interested in the code you are using since I am trying to do the

Thank-you and regards

Paul


> Hello,

> I am programmatically using ADOX to Append a Linked SQL Server 7.0 table
to
> a local Access 2000 database.  That is working fine.  However the table is
> linked in read-only mode!  This is odd because manually linking the table
> using Access 2000 link table wizard works fine.  Any one encounter this
> issue before?

> Thanks,

> Craig


 
 
 

ADOX.Append Creates a Read-Only Linked Table to SQL Server 7.0

Post by mary chipma » Thu, 14 Sep 2000 21:07:49


as far as i know, it works fine with access tables. but SQL Server
tables come in read-only.


>It may be as simple as setting one of the properties.  I'm soory I shouldn't
>be posting when I don't have all of the information, but if you were to
>iterate through the properties of your linked table you will note that one
>of them deals with the table be read-only.  once that property is determine,
>you simply need to set it to false or true prior to your append.

>I would be interested in the code you are using since I am trying to do the

>Thank-you and regards

>Paul



>> Hello,

>> I am programmatically using ADOX to Append a Linked SQL Server 7.0 table
>to
>> a local Access 2000 database.  That is working fine.  However the table is
>> linked in read-only mode!  This is odd because manually linking the table
>> using Access 2000 link table wizard works fine.  Any one encounter this
>> issue before?

>> Thanks,

>> Craig


 
 
 

1. ADOX : Linking Access and SQL Server leaves Access read only

I want to link SQL Server tables to an Access mdb.
Everything is OK when I link thru Access Get External Data
function using a DSN.
When I do this thru ADOX, all my tables are "read only"
(even when opening in Access).
How can I solve this problem.
Here my code :

Set db = New ADOX.Catalog              
db.ActiveConnection = "Provider=SQLOLEDB;Data
Source=Server & ";Initial Catalog=" & f & ";User
Id=sa;Password=;"
ODBCString = "ODBC;DSN=eBooks"
For Each tdf In db.Tables
  If tdf.Type = "TABLE" _
    Set Thistdf = New ADOX.Table
    With Thistdf
    .ParentCatalog = DBc
    .Name = tdf.Name
    .Properties("Jet OLEDB:Create Link") = True
    .Properties("Jet OLEDB:Link Provider String") =
ODBCString
    .Properties("Jet OLEDB:Remote Table Name") = tdf.Name
    End With
    DBc.Tables.Append Thistdf
    Set Thistdf = Nothing
  End If
Next tdf

Nota : I tried with a lot of options (trusted connection,
storing password, aso) without any success.

2. ODBC - Permissions/Security

3. Creating link to read only database using ADOX

4. 500'000 records - who does best?

5. ADOX Linking to an external table on read-only media

6. Replication Performance Counters

7. Linking Access 7.0 to SQL Server 7.0 tables using ODBC File DSN

8. SQL CE + CE .NET ??

9. Error 7303: When creating Linked server (SQL Server 7.0 and Access 2000)

10. Using ADOX to create linked table

11. How to create database and table into SQL server using ADOX

12. In SQL Server select statement return error when creating table using ADOX