473,385 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Unable to log onto Access .adp db after creating new db role using sqlserver 2008.

I recently had to add a new database role for an existing Access.adp database using SQLSERVER 2008. I already have 4 other roles working just fine, but I cannot connect (We use NT Authentication) when using this new role. It bombs out and says that it's "Unable to verify login. Program Aborting". I cannot determine what I am missing. I use the following procedure to verify who's trying log into the database based on the assigned role. For testing purposes, I assign myself to the role I am testing. The schema and role have the same name. In the procedure below, schema 16384 is the SA account.

Expand|Select|Wrap|Line Numbers
  1. SET ANSI_NULLS ON
  2. GO
  3. SET QUOTED_IDENTIFIER ON
  4. GO
  5.  
  6. ALTER PROCEDURE [dbo].[ProcGetLoggedInUserData]
  7. AS
  8. DECLARE @user varchar(25) 
  9. SELECT @user = substring(system_user, 
  10.     (charindex('\', system_user) + 1), 
  11.     len(system_user)- charindex('\', 
  12.     system_user))
  13. --PRINT @user
  14. SELECT a.name AS UserID,
  15.     UPPER(d.name) AS UserRole, 
  16.     c.per_id, 
  17.     c.per_code
  18. FROM sys.sysusers a, 
  19.     sys.sysmembers b, 
  20.     dbo.TBL_PERSONNEL c,
  21.     sys.schemas d 
  22. WHERE a.uid = b.memberuid
  23. AND a.name = @user 
  24. AND a.name = c.per_login
  25. AND b.groupuid = d.schema_id
  26. AND d.schema_id <> '16384'
Nov 23 '15 #1
0 2586

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: soup_or_power | last post by:
The pop up window has several checkboxes. I'm unable to access the checkboxes using the handle from window.open. Any way to do this? var display; function showSugg(but_id, sugg1, sugg2, sugg3,...
1
by: Sivaraman.S | last post by:
I am unable to create new users using directory services in Windows 2003 server. But it is possible to create users with ASP.NET applications in windows 2000. I am getting "Permission Denied"...
6
by: Vikram | last post by:
I have added some input elements on a page using javascript at client side. when i submit the page, i am unable to access the values of input elements created using request.form. Are elements...
0
by: Weijiajun | last post by:
I am currently trying to add a way to dynamically add the <input type="file"> to my webpage to allow a user to add as many attachments as they would like at a given time. However, when I added it...
6
by: thinkfr33ly | last post by:
I've been developing on this machine for months and have created many ASP.NET applications that connect to various remote machines, mostly databases. All of a sudden, I am unable to connect to...
8
by: Bhuwan Bhaskar | last post by:
Hi, Can we access database (SQL) using AJAX ? Thanks, Bhuwan
1
by: venkat thota | last post by:
How can we decrypt the encrypted stored procedure in sqlserver 2008
0
by: Sunil Revankar | last post by:
How Can I Get The Session Value from ASPState Db, Where I Am Storing The Session Details Using Sqlserver Mode. This is what i have tried to fetch data from ASPState database. But couldn't able to...
1
by: jinnejeevansai | last post by:
I was creating a swing applet if i make a seperate class of action listener i was unable to access extended class variables.Can someone explain my mistake and modify the code without merging two...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.