Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Can I have my customized database along with ADNSF?

  1. #1
    acqy is offline Junior Member
    Join Date
    Jan 2010
    Posts
    14

    Default Can I have my customized database along with ADNSF?

    Hello all,
    According to my business needs, I don't like to modify the existing ADNSF database, instead, I wish to create an additional customized database (for example, MyDatabase) in SQL Server.

    My question is, is there any approach that I can use this customized MyDatabase just like using the ADNSF DB in XmlPackage?

    Thanks!

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Sure...but you'll probably need to do a couple things. First, you'll need to add a new connection string to the web.config file (make sure the name doesn't conflict with ours). Next, you'll need to create a custom extensions class (http://forums.aspdotnetstorefront.co...ad.php?t=21114). In your custom extension class you'll need to use the .NET configuration manager to get the connection string from the web.config file, and then from that you can create a new SqlConnection which can be used to query your custom database.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    acqy is offline Junior Member
    Join Date
    Jan 2010
    Posts
    14

    Default

    Great! Thanks George!