[AccessD] RE: A2k2 / SQL Server dropped indexes

MartyConnelly martyconnelly at shaw.ca
Tue Aug 30 13:33:43 CDT 2005


Some maybes.

When you link a table from an ODBC data source, such as Microsoft SQL 
Server or ORACLE, and that table contains more than one unique index, 
Microsoft Access may select the wrong index as the primary key. Has 
someone been adding indexes to the sql tables

ACC2000: Access May Choose an Unexpected Index as the Primary Key

http://support.microsoft.com/default.aspx?scid=KB;EN-US;207745

ACC2000: Creating Virtual Indexes with SQL Data-Definition Queries
http://support.microsoft.com/kb/q209123

Tom Bolton wrote:

>Morning all
>
> 
>
>We've had a problem in the past here with linking tables into an Access .mdb
>from a SQL Server database - when the tables are linked, Access decides on
>its own primary key and creates an index.  So far, so good, but then
>seemingly at random Access is dropping the index which results in the table
>becoming read-only.  The problem can be fixed manually, but there's no
>pattern to the behaviour.
>
> 
>
>I cured this before using a bit of ADOX to drop and relink the tables (an
>extra button, but in this case the user was pretty Access-conversant), but
>now in a separate .mdb looking at a different SQL backend, it's happening
>again - to a mission-critical application.
>
> 
>
>Anyone any clues?  I've Googled from top to bottom for this one, and not a
>sausage to be found.
>
> 
>
>Many TIA as always
>
>Tom
>
> 
>
> 
>
> 
>
> 
>
>Tom Bolton
>
>Systems Developer (I.T.)
>
>Donns Solicitors
>
>Tel: 0161 834 3311
>
>Fax: 0161 834 2317
>
> 
>
> 
>
>  
>
>------------------------------------------------------------------------
>
>
>The contents of this message and any attachments are the property of Donns Solicitors 
>and are intended for the confidential use of the named recipient only.  They may be legally
> privileged and should not be communicated to, or relied upon, by any other party without 
>our written consent.  If you are not the addressee, please notify us immediately so that we 
>can make arrangements for its return.  You should not show this e-mail to any person or
> take copies as you may be committing a criminal or civil offence for which you may be
> liable.  The statement and opinions expressed in this e-mail message are those of the 
>writer, and do not necessarily represent that of Donns Solicitors.  Although any files attached
> to this e-mail will have been checked with virus protection software prior to transmission, 
>you should carry out your own virus check before opening any attachment.  
>Donns Solicitors does not accept any liability for any damage or loss which may be caused 
>by software viruses...
>  
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.344 / Virus Database: 267.10.17/84 - Release Date: 29/08/2005
>  
>

-- 
Marty Connelly
Victoria, B.C.
Canada






More information about the AccessD mailing list