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 August 25th, 2007, 05:17 PM
ADH ADH is offline
Registered User
 
Join Date: Apr 2007
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
 
Old August 25th, 2007, 06:08 PM
Friend of Wrox
 
Join Date: Mar 2006
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






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





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