|
Question : changing authentication mode and adding SA user for SQL Express 2005
|
|
Hi,
I am using SQL Express 2005. I originally had the SQL server installed in Windows Authentication and now I want to change to SQL Authentication mode. I have changed the LoginMode in the registry to 2. Now, I am following the steps to create the SA account. I have gone throught the steps in T-SQL. 1> exec sp_addlogin 'username', 'password' 2> go And everything is fine.
However when I type: 1> exec sp_addsrvroleadmin 'username', 'sysadmin' 2> go It tells me: Could not find stored procedure 'sp_addsrvroleadmin'
|
|
Answer : changing authentication mode and adding SA user for SQL Express 2005
|
|
Sort of - using SA doesn't make sense because in the example, because an SA already has all of the rights.
Let's say that you have a Windows account that you want to add to the sysadmin role.
(From BOL):
EXEC sp_addsrvrolemember 'Corporate\HelenS', 'sysadmin'; GO
|
|
|
|