Re: Windows NT user or group not found.
- From: "Rick Byham, MSFT" <rickbyh@xxxxxxxxxxxxx>
- Date: Tue, 21 Jul 2009 08:06:51 -0700
I only work with English (typical American I know) so this may be off base
but I recently worked on something that might help.
The SUSER_SID function has an optional parameter that can help you figure
out what SQL Server thinks the login name is vs. what Windows thinks the
login name is.
When the SQL Server collation and the Windows collation are different,
SUSER_SID can fail if SQL Server and Windows store the login in a different
format. For example, if a Windows computer named TestComputer has a login
named User, and SQL Server stores the login as TESTCOMPUTER\User, then the
lookup of the login TestComputer\User might fail to resolve login name
properly. Use the Param2 parameter to skip the validation of the login name.
The following example uses the Param2 parameter to get the SID from Windows
and uses that SID as an input to the SUSER_SNAME function.
SELECT SUSER_SNAME(SUSER_SID('TestComputer\User', 0)) ;
The example inputs the login in the format stored in Windows
(TestComputer\User), and returns the login in the format stored in SQL
Server (TESTCOMPUTER\User).
This may not be helpful, but maybe it will give you some ideas.
--
Rick Byham, MSFT
(Implies no warranty or rights)
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns9C4EEAF6E1DC9Yazorman@xxxxxxxxxxxx
Andreas (Andreas@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
I encounter problems renaming an account with an Umlaut. Here is the
Sample: Domain\Müller should be renamed to Domain\Muller. In AD
everything is ok.
Here is the SQL:
CREATE LOGIN [Domain\muller] FROM WINDOWS
--> Windows NT user or group 'Domain\muller' not found. Check the name
again.
CREATE LOGIN [Domain\müller] FROM WINDOWS
--> Command(s) completed successfully.
ALTER LOGIN [Domain\müller] WITH NAME = [Domain\muller];
--> Windows NT user or group 'Domain\muller' not found. Check the name
again.
So what is the name of the user in the AD? Muller or Müller? The error
message complains about Domain\muller not being found, which makes me
think the name in the AD is still Müller.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Windows NT user or group not found.
- From: Andreas
- Re: Windows NT user or group not found.
- From: Erland Sommarskog
- Windows NT user or group not found.
- Prev by Date: Re: SQL Configuration with 2 PCs
- Next by Date: Re: SQL Configuration with 2 PCs
- Previous by thread: Re: Windows NT user or group not found.
- Next by thread: Using SQL Server Native Client (ODBC) - SQLDriverConnect No respon
- Index(es):
Relevant Pages
|
Loading