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. how to pass data that i get from another computer to my database instead of to a text file?

how to pass data that i get from another computer to my database instead of to a text file?

Scheduled Pinned Locked Moved C#
questiondatabasetutorialannouncement
2 Posts 2 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.
  • N Offline
    N Offline
    nidhelp
    wrote on last edited by
    #1

    hi im using MS access as my database... i've to receive data from another computer and store the data in my database... initially, both computers were using string for read and write... my computer would get the data and store them in a text file... but as the data will keep on increasing and it is a huge amount, as well as for better layout, my computer will now use database to store data instead of in a text file>notepad... the codes used in the other computer is in string and i will NOT be changing the codes in that computer.. im not sure how a computer using string to read and write data will be able to pass data successfully to a computer using varchar for database.. i know i can use a wizard to convert data in text file to table form in database.. but what i want to do is to pass the data directly into a database from the other computer without having the user to need to use a wizard.. the user is supposed to click on a button in a form in my computer and the data will be retrieved from database for user to view/update... my question is: how do i write/change my codes in MY computer in order for the data passed over to directly be stored in a database? (the data will not be kept in text file any more..) thanks a lot!

    C 1 Reply Last reply
    0
    • N nidhelp

      hi im using MS access as my database... i've to receive data from another computer and store the data in my database... initially, both computers were using string for read and write... my computer would get the data and store them in a text file... but as the data will keep on increasing and it is a huge amount, as well as for better layout, my computer will now use database to store data instead of in a text file>notepad... the codes used in the other computer is in string and i will NOT be changing the codes in that computer.. im not sure how a computer using string to read and write data will be able to pass data successfully to a computer using varchar for database.. i know i can use a wizard to convert data in text file to table form in database.. but what i want to do is to pass the data directly into a database from the other computer without having the user to need to use a wizard.. the user is supposed to click on a button in a form in my computer and the data will be retrieved from database for user to view/update... my question is: how do i write/change my codes in MY computer in order for the data passed over to directly be stored in a database? (the data will not be kept in text file any more..) thanks a lot!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      nidhelp wrote: im not sure how a computer using string to read and write data will be able to pass data successfully to a computer using varchar for database.. Make sure your varchar is as long as the longest possible string you'd pass in. That's it. nidhelp wrote: but what i want to do is to pass the data directly into a database from the other computer without having the user to need to use a wizard.. Do you know any SQL ? What you're after is a simple INSERT. nidhelp wrote: my question is: how do i write/change my codes in MY computer in order for the data passed over to directly be stored in a database? (the data will not be kept in text file any more..) Connect to a database with a table that has a varchar value, and do an INSERT into it. Do you intend on making this data easy to search in any way ? Will you at least put a datastamp on it ? Christian Graus - Microsoft MVP - C++

      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