Solved

when is an owner not an owner

Posted on 2002-04-10
7
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 

Expert Comment

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

Author Comment

by:juststeve
ID: 6936499
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
ID: 6936588
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:juststeve
ID: 6936687
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
ID: 6936768
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
ID: 6936780
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
ID: 6987728
yep...belongs in the Access area...thankx.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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

740 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