ASP.NET with Database

Discussion in 'C#' started by e-webtemplates, Oct 12, 2007.

  1. #1
    I have been using only ASP to process my templates.The site is very fast now. But i am not able to provide lots of facility to customers without a database.

    will it increase the loading time if i use SQL server ? I have MySQL, MS access and SQL server.

    Any suggestion on selecting a database ?

    Thanks,
    e-webtemplates
     
    e-webtemplates, Oct 12, 2007 IP
  2. GMROCKS

    GMROCKS Active Member

    Messages:
    648
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #2
    if your server speed is fast, it shouldn't increase that much.

    I recommend that you use MySQL if possible.
     
    GMROCKS, Oct 12, 2007 IP
  3. kadesmith

    kadesmith Peon

    Messages:
    479
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The increase in load-time vs the advantages you will receive from being able to use a database makes using the database well worth it.

    As far as which database to use depends on your hosting services. You may wish to use MS Access databases if you don't have MS SQL and MySQL in your hosting plan, but MS SQL and MySQL are more efficient when used correctly.
     
    kadesmith, Oct 12, 2007 IP
  4. AndyFarrell

    AndyFarrell Peon

    Messages:
    89
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    why MySQL

    there is 100% support sql server in .net
     
    AndyFarrell, Oct 12, 2007 IP
    Alexander the Great likes this.
  5. e-webtemplates

    e-webtemplates Peon

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks all for your help. I have added reputation to kadesmith for his help.
     
    e-webtemplates, Oct 13, 2007 IP
  6. Forrest

    Forrest Peon

    Messages:
    500
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Definitely go with SQL Server, and use the SqlClient namespace in ASP.NET to access your data. This will increase the load time for your pages, but if you set things up properly, it should be by a very hard to notice amount.
     
    Forrest, Oct 16, 2007 IP
  7. e-webtemplates

    e-webtemplates Peon

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Now e-webtemplates is a data driven site using ASP.NET and SQLserver 2005. used SqlClient namespace . Pls let me know if you have any problem accesing my site.
     
    e-webtemplates, Oct 26, 2007 IP
  8. teraeon

    teraeon Peon

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    MySQL with asp.net is a horrible solution, it will just give you headaches when you're trying to create datasets, do connectivity using visual studio or anyting of that nature. The ODBC drivers are really bad and haven't been kept up.

    I would suggest you use SQL Server because it ties in very nicely, and the new NativeClient drivers are very good. Only problem with SQL Server is it costs a good chunk of change, but if you have the funds I would definately go with SQL Server.

    The database is not going to put too much load on the site unless you get a massive amount of traffic in a short period of time. Just don't open and close too many connections because that's the most expensive part of database work on a site.
     
    teraeon, Oct 31, 2007 IP
  9. e-webtemplates

    e-webtemplates Peon

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    only one connection needed to get the data from the SQL server. I close it once i am done with that. And another connection for CMS.

    It's working great. .NET with MS SQL is really a good option.
     
    e-webtemplates, Nov 6, 2007 IP
  10. urstop

    urstop Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Did you try with MYSQL? I am wondering how MYSQL will perform again MSSQL, as MYSQL hosting comes cheaper compare to MSSQL.

    Regards,
    UrStop
     
    urstop, Nov 13, 2007 IP
  11. e-webtemplates

    e-webtemplates Peon

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I havnt tried MYSQL. There are lots of advandage with ASP.NET & MSSQL

    eg. You can find lots of code sample for .NET with MSSQL than MYSQL.
     
    e-webtemplates, Nov 16, 2007 IP
  12. rena

    rena Peon

    Messages:
    1,987
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Both are good, but in many web hosting company MS SQL will not provide. So better use My sql
     
    rena, Nov 17, 2007 IP
  13. urstop

    urstop Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Also, need to cosider the about of data to be handled, I think SQL Server can handle more data than mysql? Any comments?
     
    urstop, Nov 18, 2007 IP