Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Vivaldi
Constraint Violating Yak Guru
298 Posts |
Posted - 2004-05-05 : 10:20:23
|
I have setup an acct that gives read access to certain tables in a sql server database. Some users need to do more extensive reporting than the application allows so they use MS Access to do these reports. Previously, I have created a Access db with DTS and they could use that, now that connections are better and software is updated, i want to let them have a direct link. I have set this up and all works fine, however they tables or views that show up have the dbo_tablename instead of just tablenameSince they have tons of queries,macros, etc that reference the tablenames , is there a way to fix the naming convention that sql server sends to Access?Cheers. |
|
KnooKie
Aged Yak Warrior
623 Posts |
Posted - 2004-05-05 : 12:10:12
|
[code]Public Sub RemoveDBO() Dim t As TableDef For Each t In CurrentDb.TableDefs If Left(t.Name, 4) = "dbo_" Then t.Name = Mid(t.Name, 5) Next MsgBox "All Done!"End Sub[/code]====Paul |
 |
|
Vivaldi
Constraint Violating Yak Guru
298 Posts |
Posted - 2004-05-05 : 12:51:52
|
Danke,I wish I could avoid the dbo_ naming convention but this will help circumvent the complaining I could get for having to change all the tables once in access. |
 |
|
|
|
|