Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2007, 01:32 AM
Registered User
 
Join Date: Dec 2006
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.

<connectionStrings>
      <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"/>
      -->
   </connectionStrings>

Help...




 
Old February 5th, 2007, 02:15 AM
Authorized User
 
Join Date: May 2006
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.

 
Old February 5th, 2007, 11:05 AM
Registered User
 
Join Date: Dec 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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








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





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