Change the default provider model to use SQL Server for SBS news, catalogs, testimonals

Last post 04-17-2009 12:04 AM by artistone. 2 replies.

Sort Posts:

  • Change the default provider model to use SQL Server for SBS news, catalogs, testimonals

    06-22-2008, 2:33 PM
    • Member
      428 point Member
    • TinyPond
    • Member since 07-28-2002, 10:39 PM
    • North West USA
    • Posts 114

    Hello All

     Where in the code/configuration  would I change the default Provider Model  to use SqlServer as the data source rather than XML

    I am talking about Catalogs, News, Testimonials they all use the XML Datasource, however in the provide sqlserver database these table are defined and I would like the example to default to these, however I cannot see where I would make this change. Is it in the web.config? if so what are the values?

     Thanks for you help in advance

    TinyPond
  • Re: Change the default provider model to use SQL Server for SBS news, catalogs, testimonals

    06-22-2008, 4:31 PM
    • Member
      428 point Member
    • TinyPond
    • Member since 07-28-2002, 10:39 PM
    • North West USA
    • Posts 114

     

     Change the provider in the web.config to either the SQLProvider or XMLProvider

    Web.config

    <!--
    Register the providers and specify which ones to use for data access for each of the 4 pages-->

    <SmallBusinessDataProviders peopleProviderName="SqlProvider" testimonialsProviderName="xmlProvider" catalogProviderName="SqlProvider" newsProviderName="SqlProvider">

    TinyPond
  • Re: Change the default provider model to use SQL Server for SBS news, catalogs, testimonals

    04-17-2009, 12:04 AM
    • Member
      10 point Member
    • artistone
    • Member since 04-01-2009, 11:46 PM
    • Posts 5

    Is that all that needs to be done? I am using VS 2005 with MS SQL 2005, and not SQL Express. Should I add the any server configuration to the existing connection string, cuz the existing string shows the default data source as ./SQl Express, which does not work out for me. Could you pls give me detailed steps ? Or, is there no modification required when SQL Express is used? I am really confused with this.

Page 1 of 1 (3 items)