You are currently viewing the BOOK: Professional C#, 2nd and 3rd Editions section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Problem: I'm trying to run the code in page 523 ExecuteNonQueryexample.
I'm getting an unhandled Exception error Sysytem.Data.SqlClient.SqlException:Login failed for user 'QSUser' Reason: not associated with the trusted SQL server connection.
I've installed Visual Studio.NET to run on my Windows XP.
Dear friend: Its a Connection error! ur Server is not a trusted Connection. Im sure u have clicked the Check-box for that.
if its a sample of the book, read again related part about Trusted Connection.