Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 5th, 2007, 01:32 AM
Registered User
Join Date: Dec 2006
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Readme file instructions - SQL Server 2005

I have been trying to get the web site running by using the instructions in the readme file. I followed the instructions (SQL Server 2005 - Non-Express Edition Setup). I have one windows server 2003 configured for IIS and another windows server 2003 running sql express 2005. As a sanity check I'am able to run (ODBC) as a User DSN from both machines to test the database connection. and all works fine until step 5.

I can not get the connection to work from the web.config file.
I get the following error...

Login failed for user'<Server_name\User_name>' The user is not associated with a trusted sql server connection.

      <remove name="LocalSqlServer"/>
      <add name="LocalSqlServer" connectionString="Data Source=<Server_Name\SQLEXPRESS;Initial Catalog=<Database_Name;uid=Server_Name\User_name;p wd=Password" providerName="System.Data.SqlClient"/>
      <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf" providerName="System.Data.SqlClient"/>
      <add name="LocalSqlServer" connectionString="Data Source=.\SQL05;Initial Catalog=TheBeerHouse_Remote;User ID=sa;Password=ok" providerName="System.Data.SqlClient"/>


  #2 (permalink)  
Old February 5th, 2007, 02:15 AM
Authorized User
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post

Frankly, I'm a little confused. Are you trying to login using Windows authentication or SQL authentication. If it is SQL authentication (as I suspect, then you don't need to specify "server_name\username" for the uid, just the username. SQL Server doesn't care about the server name.

  #3 (permalink)  
Old February 5th, 2007, 11:05 AM
Registered User
Join Date: Dec 2006
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

I'am using Windows Authentication only, not SQL or mixed mode


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
reg conn to sql server 2005 from vb.net 2005.. veda SQL Server 2005 2 July 1st, 2008 12:16 AM
Conflict in SQL Server 2000 and SQL Server 2005 ayan.mukherjee SQL Language 0 June 30th, 2008 03:34 AM
SQL Server 2005 query for last of file edx SQL Language 10 July 12th, 2007 07:50 AM
migrating from sql server 2000 to sql server 2005 abinashpatra SQL Server 2005 2 December 1st, 2006 03:45 PM
New to SQL Server 2005 vaasmru SQL Server 2005 3 October 5th, 2006 10:26 PM

All times are GMT -4. The time now is 10:23 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.