remove dbo in ms-access

Hi,

I have two problem when I work the sql data in ms-access.

1. My linked ms-access table with sql server, begins with dbo_, how to link the sql server with actual table name (for e.g. sql server table name is customer, the same when I link with ms-access, it shows dbo_customer in ms-access). How to show the actual table name in ms-access as appear in the sql server?

2. I'm wondering, the linked sql server table, I cannot change in the ms-access, it seems to be read only. I cannot make new entry, and cannot change the data also. Pls help me!
osmjahirAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SidFishesCommented:
you can rename the linked tables in access and remove the dbo_ with no problem

if you can't add or change data you probably need add a primary key to your tables
0
Jim P.Commented:
This will rename the tables for you.
Public Function Rename_SQL_Tables()

Dim SQL As String
Dim DB As database
Dim RS As Recordset

SQL = "SELECT Name " & _
      "FROM MSysObjects " & _
      "WHERE (((Left([Name],4))='dbo_'));"
     
Set DB = CurrentDb()
Set RS = DB.OpenRecordset(SQL)

If RS.EOF = False Then
    RS.MoveFirst
   
    Do Until RS.EOF
        DoCmd.Rename Mid(RS!name, 5, 100), acTable, RS!name
        RS.MoveNext
    Loop
    RS.Close
End If
End Function

Now as far as being able to edit data. The tables on the SQL Server need at least a unique index and preferably a primary key on every table.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.