I'm going through a book to teach myself ASP.NET. So far so good on it and even on SQL in SQL Developer but I can't connect from external apps.
I'm using Visual Studio 2010 Pro SP1, SQL Server 2008 R2 Standard and Windows 7 Professional SP1 using IIS 7.5. The language I'm using in ASP.NET is VB.NET but happy for C# answers.
I can never get the connection string working
connectionString="Server=ASUS-P5Q\MSSQLSERVER;Database=Dorknozzle; User Id=xxxxxxxxx; Password=xxxxxxxxx;"
I always get the following Error
Server Error in '/' Application.
Login failed for user 'ASUS-P5Q\xxxxxx'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'ASUS-P5Q\xxxxxxx'.
Source Error:
Line 17: conn.Open()**
I've switched off user account control, the anti-virus and the firewall but nothing works :-(