CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2004
    Posts
    346

    When do i use the SqlDataSource and when to use dataset?

    When do i use the SqlDataSource and when to use datasets?

    they both perform select,delete, etc...

    so which one is better ?
    and if it depends on my needs in the project , then which is better for each situation ?

  2. #2
    Join Date
    Jan 2006
    Posts
    194

    Re: When do i use the SqlDataSource and when to use dataset?

    Datasets are always better and maintained in memory to reuse. SQLDataSource is maintained at page level making it a two-tier object. If you are making a small application this should be fine though.
    [email protected]

    Try your best then wait for things to happen....

  3. #3
    Join Date
    Aug 2004
    Posts
    346

    Re: When do i use the SqlDataSource and when to use dataset?

    thank you ,

    does anyone have more information on the subject ?

  4. #4
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: When do i use the SqlDataSource and when to use dataset?

    personally, I don't like using SqlDataSources to bind to controls. I actually try to stay away from binding any type of data source to a control through the designer. I feel that I have more control over DataSets(and DataTables) than I do over SQLDataSources.

  5. #5
    Join Date
    Aug 2004
    Posts
    346

    Re: When do i use the SqlDataSource and when to use dataset?

    Thank you.

  6. #6
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Lightbulb Re: When do i use the SqlDataSource and when to use dataset?

    in my opinion both of them has their own usage. you use dataset to implement Disconnected Data access and you should write code to make something work.but you can implement some functionality using SQLDataSources without even writing a bit of code.

    Touraj Ebrahimi [toraj_e] [at] [yahoo] [dot] [com]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured