Re: fix logins
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 04/13/04
- Next message: Faheem: "19 GB db ( How can i shirink db size )"
- Previous message: Micael: "SQL 7.0 SP4 Backup files not present?"
- In reply to: Adam: "Re: fix logins"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 11:31:44 +0200
> Does sp_change_users_login work for non-windows accounts?
Yes, it is used exactly for SQL Server logins.
> What about adding the login and fix the user's sid?
That is another option. See Books Online, sp_addlogin, and you'll find a parameter for specifying the SID.
Again, search KB for sp_help_revlogin and you'll find an a article with which you can export all logins from
one server to another.
> How
> does that work for non-windows, how do I keep the
> passwords from the database?
It work just fine for non-windows accounts. I'm not sure I understand the part about password. There's no
password stored inside a database, only in master.
-- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp "Adam" <anonymous@discussions.microsoft.com> wrote in message news:17c1601c418d4$d21fcf90$a101280a@phx.gbl... > Thanks Tibor, > > Does sp_change_users_login work for non-windows accounts? > What about adding the login and fix the user's sid? How > does that work for non-windows, how do I keep the > passwords from the database? > > > >-----Original Message----- > >Either specify the SID that the user has in the database > in your sp_addlogin call, or just add the login and > >fix the user's sid using sp_change_users_login, or use > the KB article to export the logins from the source > >server (search KB for sp_help_revlogin). > > > >-- > >Tibor Karaszi, SQL Server MVP > >http://www.karaszi.com/sqlserver/default.asp > > > > > >"Adam" <anonymous@discussions.microsoft.com> wrote in > message news:12ade01c41874$f63ca8e0$a001280a@phx.gbl... > >> How do you create the logins with the same password, > when > >> you backup and restore a database to a seperate server > and > >> those logins do not exist at the server level? > >> > >> Adam > > > > > >. > >
- Next message: Faheem: "19 GB db ( How can i shirink db size )"
- Previous message: Micael: "SQL 7.0 SP4 Backup files not present?"
- In reply to: Adam: "Re: fix logins"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|