Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 March 13th, 2007, 03:13 AM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to brillox
Default can't access db in sql server 2005

Hi..

I can't work on the book as I have problems in connecting the db to an SQL server 2005 default istance

I have attached tha database to teh sql server and changed the web config connection string as follow

Data Source=(local);Initial catalog=WroxUnited;Integrated Security=True;

I also allowed remote connection and enabled tcp/ip and statred sqlbrowser etc....

still error 26 as the remote connection is not enabled.

what can I do ?

 
Old March 13th, 2007, 04:24 AM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to brillox
Default

I found a solution bya dding this line into the machine.config file

<connectionStrings>
   <add name="LocalSqlServer" connectionString="data source=mylocaldatasource;Integrated Security=SSPI;Initial Catalog=aspnetdb" providerName="System.Data.SqlClient"/>
  </connectionStrings>

then in the web.config file I changed the connection string as follow

<connectionStrings>
   <add name="wroxUnited" connectionString="data source=mydatasource;Integrated Security=SSPI;Initial Catalog=WroxUnited" providerName="System.Data.SqlClient"/>
  </connectionStrings>

apparently the machine.config was not retrieving the aspnetdb

However is still a strange behaviour and if anyone as a more generic solution (e.g. reinstal asp.net) I would be happy to know about it

 
Old March 14th, 2007, 11:44 AM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to brillox
Default

by the way..

would be a problem to have sqlexpress running together with sql on the same machine..

 
Old May 3rd, 2007, 05:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

Hi brillox,

No there shouldn't be a problem running SQL Standard\developer on the same box as SQL Express as long as they have different instance names. For example (local)\SQlExpress and (local)\SQLStd. After that, it would be up to you to make sure that you know which version of SQL you are using and give the web site the correct connection string and permissions as relevant. Please have a look at the new appendix b for more on those. Download it from http://www.hmobius.com/downloads.aspx

Thanks, Dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive





Similar Threads
Thread Thread Starter Forum Replies Last Post
MS ACCESS 2003 FRONTEND AND MS SQL SERVER 2005 DB mohankumar0709 SQL Server 2005 3 March 23rd, 2007 12:48 AM
Moving db to SQL Server 2005 for deployment LoneStar1 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 4 March 3rd, 2006 01:52 PM
Access 2003 project and SQL server 2005 jesseleon Access VBA 3 February 23rd, 2006 12:03 PM
access db to sql server db mikersantiago Classic ASP Basics 4 November 16th, 2004 03:33 AM





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