1: Copy the following T-SQL statement into the Query Analyzer window:
SELECT RoleId FROM aspnet_Roles WHERE RoleName = 'Administrators'
Click Submit and save the return value for use in step 3. Click Reset.
2: Copy the following T-SQL statement into the Query Analyzer window:
SELECT UserId FROM aspnet_Users WHERE UserName = '<username>'
Replace <username> with the user name of the account to which administrator privileges will be granted.
Retain the single quotation marks around this case-sensitive value.
Click Submit and save the return value for use in step 3. Click Reset.
3: Copy the following T-SQL statement into the Query Analyser window:
INSERT INTO aspnet_UsersInRoles (RoleId, UserId) VALUES ('<roleID>', '<userID>')
Replace <roleID> with the return value from step 1.
Replace <userID> with the return value from step 2.
Retain the single quotation marks around these values.
Click Submit.
Hope it helps