all groups > sql server connect > february 2005 >
You're in the

sql server connect

group:

SQL Table prefixes -how get rid ???


SQL Table prefixes -how get rid ??? Jim McDonald
2/25/2005 3:04:12 PM
sql server connect:
Hi
Thi sis probably another dumb question, but any advice would be great. I
have an SQL db under a website that I have to get to with an Access fromt
end, with ODBC.
When ever I get to a table it has various prefixes added, so that when I
load up Stored Procs locally they fail bercause the tables are mis-names and
therefore cant be found. Typically a table appears as remote_first_tablename
and the SP refers to just tablename, and so fails.
Can some kind person tell me where these prefixes come from and how I can
get rid of them so the SPs will work OK without altering all the table
references in them?

Thanks (A Lot!)

Jimbo Mac

Re: SQL Table prefixes -how get rid ??? Steve Thompson
2/25/2005 3:27:57 PM
[quoted text, click to view]

Just rename the table objects in Access back to their original names.

Steve

Re: SQL Table prefixes -how get rid ??? Jim McDonald
2/26/2005 8:50:28 AM
Hi Steve - thnaks for this - I was already aware about a re-name but its a
bit of a pain and I was lookin for something more elegant and automatic.
Thanks anyway
Jim
[quoted text, click to view]

Re: SQL Table prefixes -how get rid ??? Steve Thompson
2/28/2005 9:00:16 AM
Hi Jim,

Possibly two options for you:
1) Once your tables are linked, you could use some VBA to refresh the
attachments:
http://www.mvps.org/access/tables/tbl0009.htm
2) VBA code to Relink and rename:
http://www.mvps.org/access/tables/tbl0010.htm

Steve

[quoted text, click to view]

AddThis Social Bookmark Button