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. Web Development
  3. ASP.NET
  4. Read from text file & store in DB...Best way to implement

Read from text file & store in DB...Best way to implement

Scheduled Pinned Locked Moved ASP.NET
databasequestionannouncement
7 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.
  • H Offline
    H Offline
    Hemant_ec48
    wrote on last edited by
    #1

    Hi... I have to read one Text file & i have to store content of text file into Database. Which is the best way to implement this task. Because text file will update each & every midnight. I can create one windows service which will run at specify time and store content in the DB.... Is there any other way to implement this task except windows service??

    M A 2 Replies Last reply
    0
    • H Hemant_ec48

      Hi... I have to read one Text file & i have to store content of text file into Database. Which is the best way to implement this task. Because text file will update each & every midnight. I can create one windows service which will run at specify time and store content in the DB.... Is there any other way to implement this task except windows service??

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      Hemant_ec48 wrote:

      Is there any other way to implement this task except windows service??

      Another way would be to write a console application(for eg) and schedule it run at specific time. But, IMO windows service is a nice approach to follow.

      Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      A 1 Reply Last reply
      0
      • H Hemant_ec48

        Hi... I have to read one Text file & i have to store content of text file into Database. Which is the best way to implement this task. Because text file will update each & every midnight. I can create one windows service which will run at specify time and store content in the DB.... Is there any other way to implement this task except windows service??

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Hemant_ec48 wrote:

        I can create one windows service which will run at specify time and store content in the DB....

        So, this is nothing related with ASP.NET :)

        Hemant_ec48 wrote:

        Is there any other way to implement this task except windows service??

        Yes. Create a normal Console Application for that, Schedule it using Windows Scheduler. :-D

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        1 Reply Last reply
        0
        • M Manas Bhardwaj

          Hemant_ec48 wrote:

          Is there any other way to implement this task except windows service??

          Another way would be to write a console application(for eg) and schedule it run at specific time. But, IMO windows service is a nice approach to follow.

          Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Aha... I didn't see your response :doh:

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          H 1 Reply Last reply
          0
          • A Abhijit Jana

            Aha... I didn't see your response :doh:

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            H Offline
            H Offline
            Hemant_ec48
            wrote on last edited by
            #5

            Sorry My friend for let reply but i was busy in meeting.... Should i use SSIS from this task... If I create one DTSX Package And if i use that Package from SQL Job I do not have Proper Idea Regarding this ..... But I am getting one advice to implemet this one.... If you have any idea regarding this than Please help me....

            A 1 Reply Last reply
            0
            • H Hemant_ec48

              Sorry My friend for let reply but i was busy in meeting.... Should i use SSIS from this task... If I create one DTSX Package And if i use that Package from SQL Job I do not have Proper Idea Regarding this ..... But I am getting one advice to implemet this one.... If you have any idea regarding this than Please help me....

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              Hemant_ec48 wrote:

              Should i use SSIS from this task... If I create one DTSX Package And if i use that Package from SQL Job

              This is also an Good idea. you can . What is ur text file content ? is it like CSV file or what ?

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

              H 1 Reply Last reply
              0
              • A Abhijit Jana

                Hemant_ec48 wrote:

                Should i use SSIS from this task... If I create one DTSX Package And if i use that Package from SQL Job

                This is also an Good idea. you can . What is ur text file content ? is it like CSV file or what ?

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                H Offline
                H Offline
                Hemant_ec48
                wrote on last edited by
                #7

                Ya Abhi... Text format is like Hemant|Patel|03ec48 ABHI|JANA|03ec49 Like that .... I request you to Please if you have any document regarding this plaese send me link.. Regards, Hemant Patel.

                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