Server win2003/final solution:
Step 1: Add 'nt Authority \ Network Service' to the Administrator Group
My computer --> right-click --> Manage --> local users and groups
Select "group" --> double-click "Administrators" --> click "add" --> click "advanced" --> click "find now" --> select a network service user from the list below --> click "OK" --> join twice.
Step 2 Add a netword service user to the Enterprise Manager
Open SQL Server Enterprise Manager --> select database instance --> open "security" node --> select "login" --> right-click the list on the right --> select "New login "--> on the "General" tab, click the button next to "name"... "--> select" Administrators "group --> click the" members "button below --> select" Network Service "--> click" add "--> click" OK ", return to the "New login" dialog box --> ensure that the authentication type is "Windows Authentication" and "Allow access" --> click "OK" --> close "Enterprise Manager"
Web. config configuration file: (the red part is defined based on your actual situation.) In addition, I chose Windows Authentication instead of Hybrid Authentication.
<Connectionstrings>
<Add name = "yourstrname" connectionstring = "Data Source = 127.0.0.1; initial catalog = yourdbname; Integrated Security = true" providername = "system. Data. sqlclient"/>
</Connectionstrings>