SQL Express DB

Last post 04-20-2005 4:44 PM by txghia58. 4 replies.

Sort Posts:

  • SQL Express DB

    04-19-2005, 7:45 PM
    • Member
      110 point Member
    • txghia58
    • Member since 04-19-2005, 3:05 PM
    • Posts 30

    I noticed that the db that the Club site starter kit does not contain the tables to store roles, users ets...

    Should a new database be created or should these tables be created in the same database?

    Whats your opinion

  • Re: SQL Express DB

    04-19-2005, 8:40 PM
    • Participant
      772 point Participant
    • bgold
    • Member since 03-24-2003, 6:16 PM
    • Redmond, WA
    • Posts 77
    • AspNetTeam
      ControlGallery
      Moderator

    ASP.NET will automatically create aspnetdb.mdf for those when you run the site.

    You can run aspnet_regsql to create the tables in a SQL 2000 / SQL 2005 database then modify the connection strings to use this.

    ---------------------------
    Brian Goldfarb [MS]
    Group Product Manager
    UX Platform and Tools Strategy
  • Re: SQL Express DB

    04-19-2005, 10:59 PM
    • Member
      110 point Member
    • txghia58
    • Member since 04-19-2005, 3:05 PM
    • Posts 30

    Thanks

    I had allready gotten it to work. I was just worndering which would be the correct way from a design perspective to do it.

  • Re: SQL Express DB

    04-20-2005, 11:16 AM
    • Participant
      1,410 point Participant
    • Jeff.aspx
    • Member since 09-12-2003, 2:16 AM
    • Redmond, WA
    • Posts 252
    • AspNetTeam
      Moderator

    It depends on your contraints.  We optimized for file download size.  By having the database autogenerate, we didn't have to ship an extra db as part of the package.

    If you are paying per database fees to your hoster, then combining the two databases into one could save you some money.

    From a performance standpoint, merging into one database would be more performant and run a slightly smaller memory footprint.  However, you probably wouldn't notice the difference unless you were running thousands of these sites.

    As a footnote, this kit isn't meant to be a beacon of performance.  We did not excersize certain advanced features and optimizations to make the code easier to understand to a wider audience.

    Hope this helps!

    Jeff King
    Program Manager
    ASP.net
  • Re: SQL Express DB

    04-20-2005, 4:44 PM
    • Member
      110 point Member
    • txghia58
    • Member since 04-19-2005, 3:05 PM
    • Posts 30

    Thank you that was just the type of information that I was looking for.

Page 1 of 1 (5 items)