Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. connecting to sql questions

connecting to sql questions

Scheduled Pinned Locked Moved C#
databaseperformancequestionhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    crash893
    wrote on last edited by
    #1

    Hi all At work we have a database that is read only that keeps track of the work we do ( who completed what ticket and so on) I need to take a chunk of the database for the work done by my group then count up certain types of information like who has done how many tickets or how many of one type of problem there was during a certain time. question 1) can i use the fact that this is read only to my advantage in terms of speed or memory i saw something called sqlreader but i haven't had time to play with it yet question 2) given the senerio above what would be the most efficient work flow? should i read the database into a dataset then do my filtering from there or something else unfortunately this is not my strongest subject so all suggestions are appreshated

    L M 2 Replies Last reply
    0
    • C crash893

      Hi all At work we have a database that is read only that keeps track of the work we do ( who completed what ticket and so on) I need to take a chunk of the database for the work done by my group then count up certain types of information like who has done how many tickets or how many of one type of problem there was during a certain time. question 1) can i use the fact that this is read only to my advantage in terms of speed or memory i saw something called sqlreader but i haven't had time to play with it yet question 2) given the senerio above what would be the most efficient work flow? should i read the database into a dataset then do my filtering from there or something else unfortunately this is not my strongest subject so all suggestions are appreshated

      L Offline
      L Offline
      Le centriste
      wrote on last edited by
      #2

      I would choose solution 1, coupled with the use of stored procedure. As a piece of advice, if you are only reading from the tables, use the with (nolock) lock hint in your queries.

      ----- If atheism is a religion, then not collecting stamps is a hobby. -- Unknown

      1 Reply Last reply
      0
      • C crash893

        Hi all At work we have a database that is read only that keeps track of the work we do ( who completed what ticket and so on) I need to take a chunk of the database for the work done by my group then count up certain types of information like who has done how many tickets or how many of one type of problem there was during a certain time. question 1) can i use the fact that this is read only to my advantage in terms of speed or memory i saw something called sqlreader but i haven't had time to play with it yet question 2) given the senerio above what would be the most efficient work flow? should i read the database into a dataset then do my filtering from there or something else unfortunately this is not my strongest subject so all suggestions are appreshated

        M Offline
        M Offline
        mfmaneef
        wrote on last edited by
        #3

        since your saying "chunk of data" i would prefer using datasets because..if your using datareaders each time u connect to the database whenever u execute a query..but datasets you can work in disconnected mode..

        aneef

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups