How to enable sa user account in SQL Server 2005
2009-12-16 17:24
746 查看
How to enable sa user account in SQL Server 2005
Step 1.You would enable the TCP/IP Protocol Name in the path of Start->Microsoft SQL Server 2005->Configuration Tools->SQL Server Configuration Manager->SQL Server 2005 Network Configuration
Step 2.
You should modify the Server authentication mode into SQL Server and Windows Authentication mode from Windows Authentication mode in the path of Server Properties
Step 3.
You should execute the command as follows in a new query window, the command is: exec sp_password NULL,'yourpassword','sa'
alter login sa enableOr you can edit it in the sa's property window, set the sa 's properties as follow: Permission to connect to database engine: Grant
Login: Enable
If the Server authentication mode is not set to SQL Server and Windows Authentication mode, it will throw an exception like "Login failed for user 'username'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)"
相关文章推荐
- Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005
- How to enable remote connections in SQL Server 2008?
- How to recreate the msdb database in SQL Server 2005
- How to monitor blocking in SQL Server 2005 and in SQL Server 2000 [ZT-MS]
- How to build an OLE DB application for SQL Server CE in Visual Studio 2005
- HOW TO: Change the Owner of a User-Defined Data Type That Is in Use in SQL Server 2000
- How to Alter a Replicated Article in SQL Server 2005
- How to format datetime & date in Sql Server 2005
- How to Implement an Automatic Sliding Window in a Partitioned Table on SQL Server 2005
- How to check if a date is a valid date in Sql Server 2005
- how to debug store procedure in sql server 2005
- How to Enable/Disable SQL Server Service Broker in script
- SQL: enable sa Account in SQL Server
- How to Insert Values into an Identity Column in SQL Server
- how to use danymic sql in SQL Server 2000
- How to Find All SQL Server Instance Running in Local Network c#
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- How to Enable Accounts with userAccountControl
- How to enable javascript in windows server 2008 R2 enterprise