Solved

update SID directly

Posted on 2011-03-15
4
1,039 Views
Last Modified: 2012-05-11
is it possible/advised to update the SID directly on syslogins and sysusers?

thanks
0
Comment
Question by:anushahanna
[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
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
owaisyahya earned 250 total points
ID: 35141714
update sysusers set sid = '123' where name = 'USER01'
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 35142334
I would not recommend doing so. sysusers is a system table, and the SID is used to link between other system tables ...
0
 
LVL 6

Author Comment

by:anushahanna
ID: 35143727
a3, is it safe to do on syslogins? there is a situation where need the logins to have same sid across 2 instances. if the logins have that sid, then i make sure user also gets that sid by the command: CREATE USER FOR LOGIN...
0
 
LVL 2

Expert Comment

by:owaisyahya
ID: 35144404
if you really want to update sid change it on both tables (syslogin and sysuser)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

705 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