PC Review


Reply
Thread Tools Rate Thread

Change linked table destination--Access Link to SQL 2005

 
 
=?Utf-8?B?Q2hyaXN0JydzY2hpbGQ=?=
Guest
Posts: n/a
 
      2nd Mar 2007
I have a access database that has linked tables. Those tables are linked to a
Test sql Server database. Now on my access front end the linked tables have
relationships.

Now I have Second test Sql Server database thats a copy of the first one,
except instead of having dbo. as the table(dbo.tablename) prefix it has
second.tablename. When I try to use table manager to relink my table to the
second database I can't, because it says cant find dbo.tablename .

I need to point my front end to the second database
So my question is; is there a way to point the tables to the second SQL
database in code? I want to do this because I have relationships on my linked
tables and I want to just point the linked table to another source whose
table structures are the same but the name different.
 
Reply With Quote
 
 
 
 
Michel Walsh
Guest
Posts: n/a
 
      5th Mar 2007
Relationship cannot be automatically maintained across databases. You will
have to get all the tables in one database, or, abandon the relationship,
or, use triggers to ensure integrity.

Vanderghast, Access MVP

"Christ''schild" <(E-Mail Removed)> wrote in message
news:6C889DFA-E137-4554-A970-(E-Mail Removed)...
>I have a access database that has linked tables. Those tables are linked to
>a
> Test sql Server database. Now on my access front end the linked tables
> have
> relationships.
>
> Now I have Second test Sql Server database thats a copy of the first one,
> except instead of having dbo. as the table(dbo.tablename) prefix it has
> second.tablename. When I try to use table manager to relink my table to
> the
> second database I can't, because it says cant find dbo.tablename .
>
> I need to point my front end to the second database
> So my question is; is there a way to point the tables to the second SQL
> database in code? I want to do this because I have relationships on my
> linked
> tables and I want to just point the linked table to another source whose
> table structures are the same but the name different.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change link destination of OLE object programatically =?Utf-8?B?V2lsbGk=?= Microsoft Access VBA Modules 0 28th Jun 2007 03:02 PM
Can't Add a linked table to SQL Server 2005 with Access 2003 =?Utf-8?B?Ym9ua2VyczE5NjM=?= Microsoft Access External Data 1 28th Oct 2006 10:28 PM
How do I change the path name of a linked access table? =?Utf-8?B?TEtheQ==?= Microsoft Access 2 21st Sep 2006 07:52 PM
Change ODBC for Access 2003 linked table =?Utf-8?B?bGFuZW0=?= Microsoft Access External Data 1 8th Jan 2005 06:58 PM
Programmatically change the destination of a link table Hai Ly Hoang Microsoft Access 1 18th Dec 2004 11:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:26 AM.