Sharon
asked on
SQL Server backend dbo table prefix
I have an Access 2010 frontend with an Access 2010 backend. The IT dept took the Access backend and created a SQL Server backend. When I OBDC to the new backend all the tables have a dbo prefix. The Access frontend does not recognize the tables.
When the Access backend is upsized into SQL server is there a way to not have the dbo prefix or will all the tables need to be individually renamed?
When the Access backend is upsized into SQL server is there a way to not have the dbo prefix or will all the tables need to be individually renamed?
if the login you use has db_owner permissions, the dbo table prefixes should not be needed.
When the Access backend is upsized into SQL server is there a way to not have the dbo prefix or will all the tables need to be individually renamed?
If the front-end is using them via linked table references... they'll have to be renamed.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The Access upsizing wizard takes care of this for you by removing the owner prefix in the final step when it relinks the upsized tables. When you link manually, you need to fix the problem manually or by using the code posted by Scott.
You can use the following query to see the actual table name vs the local table name. The Name column is the name of the table as you see it in the navigation pane. The ForeignName is the name of the table as you see it in the remote database. So after you run Scott's update procedure, this query will show you the changes.
SELECT MSysObjects.Connect, MSysObjects.Name, MSysObjects.ForeignName, MSysObjects.Type
FROM MSysObjects
WHERE (((MSysObjects.Type)=4));
You can use the following query to see the actual table name vs the local table name. The Name column is the name of the table as you see it in the navigation pane. The ForeignName is the name of the table as you see it in the remote database. So after you run Scott's update procedure, this query will show you the changes.
SELECT MSysObjects.Connect, MSysObjects.Name, MSysObjects.ForeignName, MSysObjects.Type
FROM MSysObjects
WHERE (((MSysObjects.Type)=4));