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 7772455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:53:44+00:00 2026-06-01T16:53:44+00:00

I use SQL SERVER 2008 R2 Express. I’m on a NEW project with a

  • 0

I use SQL SERVER 2008 R2 Express.

I’m on a NEW project with a database named myDatabase with the db owner username myUsernamae.

I would like to use ALTER ROLE instead of sp_addrolemember due to this message from Microsoft regarding sp_addrolemember (Transact-SQL):

Important This feature will be removed in a future version of
Microsoft SQL Server. Avoid using this feature in new development
work, and plan to modify applications that currently use this feature.
Use ALTER ROLE instead.

I tried

USE [myDatabase]
GO

ALTER ROLE [db_owner] ADD MEMBER [myUsername]
GO

but I keep getting this error message:

Incorrect syntax near the keyword ‘ADD’.

What is the correct syntax?

  • 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-01T16:53:45+00:00Added an answer on June 1, 2026 at 4:53 pm

    ALTER ROLE is new to SQL Server 2012, while you are using SQL Server 2008 R2.

    I wouldn’t worry to much about sp_addrolemember. Scripts generated by 2008R2 Management Studio use this procedure, so it should be a while before they really phase it out.

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

Sidebar

Related Questions

I'm using SQL Server 2008 and I would like to use a sproc to
I have a database called MyDB in a Microsoft SQL Server 2008 Express instance
I'm configuring a simple service broker implementation. Locally, we use SQL Server 2008 Express
I use Visual Web Developer Express Edition 2008 and SQL Server 2008 Express edition.
I use SQL Server 2008 Express with Advanced Services. I have a view: IF
I am working on a project which uses a relational database (SQL Server 2008).
SQL Server 2008 R2 Express Edition. I'm trying to use the import wizard to
I’m using .Net 3.5 and SQL Server 2008 Express. Should I use the administrator
When I downloaded SQL Server 2008 Express, I did not think I would need
I'm working on a SQL Server 2008 Express + silverlight project, and so far

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.