tuyetvan:minh dang nhap bang window authentication k co doi logon user, no chi doi user name thoi, luc cai dat minh de mac dinh la trung voi ten server may cua minh, nen minh muon doi sang sql server authentication mode thi no bao loi nhu vay:
Alter failed for server 'NGOCTRAM+PC'. (Microsoft.Sql.Express.Smo)
Additional information:
An exception occurred while executing a Transact - SQL statement or batch. (micosoft.sqlServer.Express.ConnectionInfo)
the EXECUTE permission was denied on the object 'xp_instance_regwrite', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
Tôi không rõ là bạn đang dùng Windows nào.
Nếu bạn dùng Windows từ Vista trở lên thì nó có cách phân quyền hơi khác một chút, cần phải "Add Administrator" để SQL Server hiểu "ai là người quản trị".
Vào Start -> Programs -> SQL Server 2005 -> Configuration Tools -> SQL Server Surface Area Configuration, click vào mục Add New Administrator rồi Add User Admin nhé.
Bạn ơi. minh cũng bị lỗi này mà vào Surface are.. nhưng mà ko có 2 dòng add new administrator và dòng bên dưới thì làm tnao ??