Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

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_MARTIN-7C3B18F3'

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
0
Dovberman
Asked:
Dovberman
1 Solution
 
Bob LearnedCommented:
What is the authentication mode for SQL Server?

Bob
0
 
DovbermanAuthor Commented:
I called Microsoft support after waiting 5 days for a response from Experts Exchange.  There seems to be a great need for ASP.NET experts here.

The SQL Server authentication mode was the key to this issue.

Thanks

Dovberman
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now