Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

sql2005 remap login return error

Posted on 2012-09-08
1
Medium Priority
?
504 Views
Last Modified: 2012-09-20
sorry,
But I dont know what is wrong with my T-sql statemnet below .

Sp_change_users_login @action='report',@loginname='Ben10'

or

Sp_change_users_login @action='Update_One',@loginname='Ben10'

Both turn with error below

Msg 15600, Level 15, State 1, Procedure sp_change_users_login, Line 53
An invalid parameter or option was specified for procedure 'sys.sp_change_users_login'.
0
Comment
Question by:motioneye
1 Comment
 
LVL 25

Accepted Solution

by:
TempDBA earned 2000 total points
ID: 38379310
You have to specify both the login and username for updating

Sp_change_users_login @action='Update_One', 'Ben10', 'Ben10'

Reporting doesn't work if any parameter is specified. It requires all to be NULL. So, following will work:-

Sp_change_users_login @action='report'
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Suggested Courses

579 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