Solved

when is an owner not an owner

Posted on 2002-04-10
7
311 Views
Last Modified: 2012-05-04
I've set up my 'non-sa' account as owner of a particular db (sql2k sp2). I was probably logged in as sa when I created the db using DTS from an existing db.

When I connect from my workstation using MSAccess2k via an odbc connection using the non-sa account i find that I don't have ability to create new records. If I connect as sa i can.

looking at EM's Users for that db my non-sa login has checks for 'public' and 'db_owner'. I didn't (don't) think any of the other roles are anything more than subsets of db_owner, yes? So why isn't being owner good enough for Access.

My primary concern here isn't so much connecting via Acess...the db exists only to give stuff to IIS/web pages. I'm wondering if this indicates other things that may bite my butt going forward.

thankx
--steve...
0
Comment
Question by:juststeve
  • 4
  • 3
7 Comments
 

Expert Comment

by:stephendl
Comment Utility
Can you create new records using query analyser when you log in as your 'non-sa' account?
0
 

Author Comment

by:juststeve
Comment Utility
Yep...it's just linked tables through Access via the non-sa account that's having a problem. SA/Access works.

I have web pages using the same non-sa, DSN-based connection able to insert and update.

thankx
--steve...
0
 

Expert Comment

by:stephendl
Comment Utility
But it works in query analyser? Hmmm.

It sounds like your connection to the ODBC's. The web stuff that works, is it asp? Are you getting any error messages in Access? If so, where, when and what?
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

Author Comment

by:juststeve
Comment Utility
No error messages...just a beep if trying to edit a cell and the  'insert record' button at the bottom of the frame is grayed out

[...pause...]

jeeze...i've just gone over there to reproduce whatever dialog box response i'd gotten when typing in the bottem row...and _now I can't reproduce any of the behaviors. [sigh] later today I'll take smoe time to create a new db from scratch (client-side) and see if the read-only issue reoccurs.

The web stuff is asp...uses a connection string like:
  dsn=myDb;uid=not_sa;pwd=thatpw;

When linking the table from MSAccess I point to the same DSN, use the same account/pw and get _only_ read-only access to the same tables that the web pages are able to insert/update.

I suppose the asp route adds the ADO layer but the question remains as to why Access would allow the account only limited access.
0
 

Expert Comment

by:stephendl
Comment Utility
But it works in query analyser? Hmmm.

It sounds like your connection to the ODBC's. The web stuff that works, is it asp? Are you getting any error messages in Access? If so, where, when and what?
0
 

Accepted Solution

by:
stephendl earned 50 total points
Comment Utility
Sorry about that... hit refresh on accident...

OK... if you can replicate, tell me what happens.

Are you using a 'Trusted connection' in access? Access isn't really my forte, it has too many strange behaviours and quirks for me!... did you try posting into the Access topic area?
0
 

Author Comment

by:juststeve
Comment Utility
yep...belongs in the Access area...thankx.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now