Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8714213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:32:26+00:00 2026-06-13T05:32:26+00:00

I am trying to add user permissions using this stored procedure: exec sp_addrolemember db_datawriter,

  • 0

I am trying to add user permissions using this stored procedure:

exec sp_addrolemember db_datawriter, MYUSER

The database is MS SQL 2005 and within SQL Management Studio the stored procedure works correctly using my authorized windows login.

I created a simple HTML CGI website with Python as the scripting language using pyodbc. I also created a local user ‘dataviewer’ login that I used when pyodbc connects that has the following server role permissions the same as my windows login:

enter image description here

On the website I echo back the sql command that Python used and copy and paste the exact command in SQL SMS and the stored procedure works correctly. It seems as though there is a security conflict somewhere but not sure what is happening becasue my windows login has the same server roles permission as the dataviewer login.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:32:27+00:00Added an answer on June 13, 2026 at 5:32 am

    Either commit the transaction with Connection.commit(), or set autocommit=True in connection string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an Oracle database(10g) which contains a stored procedure called Foo. Foo takes
I have a SQL Server 2005 database that I'm trying to access as a
Im trying to add a timer to my game so that the user knows
I'm trying to add the distance from the user's position to a selected annotation's
I am trying to add a custom field to the user form in the
I'm trying to add text input's element to my array when user pressed enter
So I'm trying to add some ability to my project to allow user-defined properties
I am currently trying to add a JavaScript confirm message when a user attempts
I'm trying to add a $('body').live('click') listener after the user clicks on a div.
i'm trying to add some navigation arrows which allow the user to go to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.