Dovberman
asked on
How to fix the "Login failed for user" error when using Visual Studio and SQL Server
I have very little SQL Server experience. When I use the Visual Studio.NET Walkthroughs Chapter 4 example I get the following error:
Login failed for user 'MARTIN-7C3B18F3\IUSR_MART IN-7C3B18F 3'
SQL Server and the web form app I am building are on the same machine.
I am attempting to populate a datagrid that is bound to a dataset that is filled by the codebehind.
Everything works until I try to run the app.
I have no idea what to change to avoid this error.
Thanks,
Dovberman
Login failed for user 'MARTIN-7C3B18F3\IUSR_MART
SQL Server and the web form app I am building are on the same machine.
I am attempting to populate a datagrid that is bound to a dataset that is filled by the codebehind.
Everything works until I try to run the app.
I have no idea what to change to avoid this error.
Thanks,
Dovberman
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
The SQL Server authentication mode was the key to this issue.
Thanks
Dovberman