Rebuild Links from Access 2003 to SQL server 2005 using Vs.net app

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Problem statement:

I have many legecy MS Access front-end applications. Each is linked to a
small set of sql server 2005 databases (3)

The database structure in each sql server instance is the same for each
database. Of course the rows are different. However the sql server instance
changes (e.g. sqlTest, sqlProduction)

It's not as simple as referring to them as "local host" and running the code
only on the appropriate machine.

I am trying to write a vs.net application (note: not vba) that will read
the current:

tbl.Properties("Jet OLEDB:Link Provider String").Value

for each table and then update the link to the new desired link using a
string variable.

tbl is an adox.table

I have all this working the way I want within a loop that examines each
msaccess data file, captures the string value of the tbl.properties above.

However, I find the object:
adox.table.properties is read only.

the line:
tbl.Properties("Jet OLEDB:Link Provider String").Value = strNewConnection

I have also tried creating a new adox.property (ThisProperty)
then assigning a value to it with no luck.

fails with object read only error.

Sooo, I'm so close, yet soooo very far??
I have all the little bits together, just not sure how to set the value for
the property.

Any advice would be greatly appreciated.
--
Ed Warren
.



Relevant Pages

  • Idiomatic Expressions to Operating System Architecture: Transforming Rigids
    ... <Subject: Re: Idiomatic Expressions to Operating ... <endpoint during a single session * DATABASE + by ... <statements is a new feature of SQL Server 2005. ...
    (sci.math)
  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)
  • Re: MS Access DAO -> ADO.NET Migration
    ... full SQL Server and I see the logic you explained in a multi user ... allow two users to access the same database file Read/Write at any given ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... Hitchhiker's Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: MS Access DAO -> ADO.NET Migration
    ... For that it is much harder to handle the incremental identifier, ... database but although they have the data, they are not connected at the same ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... SQL Server Management Studio is nowhere to be found on my ...
    (microsoft.public.dotnet.framework.adonet)