Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 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 March 13th, 2007, 03:13 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
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 ?

  #2 (permalink)  
Old March 13th, 2007, 04:24 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
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

  #3 (permalink)  
Old March 14th, 2007, 11:44 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
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..

  #4 (permalink)  
Old May 3rd, 2007, 05:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Banbury, , United Kingdom.
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
 


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
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



All times are GMT -4. The time now is 12:16 AM.


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