Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 August 25th, 2007, 05:17 PM
ADH ADH is offline
Registered User
 
Join Date: Apr 2007
Location: ELKANA, , Israel.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Add a 2'nd SQL2005 db

I have in mind adding a 2'nd DB beside the original ASPNETDB. The new one should hold (only) all my specific appl. data.
1) Make sense?
2) Missed tried doing it. Could I get some advice what (VB2005) steps to take?
Thanks


ADH
  #2 (permalink)  
Old August 25th, 2007, 06:08 PM
Friend of Wrox
 
Join Date: Mar 2006
Location: , , Portugal.
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

assume that you want to put your articles section in that second DB.

Follow this:
- Create a database on your "app_data" folder = "myDB_2"
On your connections section in web.config file:
Code:
<connectionStrings>
    <remove name="LocalSqlServer"/>
    <remove name="LocalSqlServerExtend"/>
    <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf" providerName="System.Data.SqlClient"/>
    <add name="LocalSqlServerExtend" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|myDB_2.mdf" providerName="System.Data.SqlClient"/> 
</connectionStrings>
On your articles section in web.config file:
Code:
<articles pageSize="10" connectionStringName="LocalSqlServerExtend"  />
Good luck

 


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
Get Error 1813 when attach db to SQL2005 gerten BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 May 27th, 2014 05:10 AM
Add New Record in Access DB sidra Classic ASP Databases 1 June 2nd, 2008 01:13 PM
ADD DB RECORD/ RETURN ID Huascar82 Classic ASP Databases 1 October 1st, 2007 11:55 PM
How to add paging for access db using asp method Classic ASP Databases 1 June 3rd, 2005 02:12 PM
How Can I Add Info From a Txt File Into a DB? Lucy Classic ASP Professional 3 October 21st, 2003 11:00 AM



All times are GMT -4. The time now is 09:51 AM.


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