Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
GeneralService or Scheduled Task Pin
epfuller11-May-05 9:17
epfuller11-May-05 9:17 
GeneralRe: Service or Scheduled Task Pin
Dave Kreskowiak11-May-05 9:38
mveDave Kreskowiak11-May-05 9:38 
GeneralRe: Service or Scheduled Task Pin
epfuller11-May-05 9:49
epfuller11-May-05 9:49 
GeneralRe: Service or Scheduled Task Pin
Dave Kreskowiak11-May-05 12:33
mveDave Kreskowiak11-May-05 12:33 
GeneralRe: Service or Scheduled Task Pin
Peter Vertes11-May-05 11:18
Peter Vertes11-May-05 11:18 
GeneralRe: Service or Scheduled Task Pin
Dave Kreskowiak11-May-05 12:27
mveDave Kreskowiak11-May-05 12:27 
GeneralRe: Service or Scheduled Task Pin
epfuller12-May-05 4:08
epfuller12-May-05 4:08 
GeneralRe: Service or Scheduled Task Pin
Dave Kreskowiak12-May-05 12:29
mveDave Kreskowiak12-May-05 12:29 
Well, you're specifying what data your collecting, the file format your going to use, the database tables, ... Since your specifying the file format, you get to map what columns of the text file get mapped to which columns in the database. For example...

Your collecting the machine name, the O/S version, and how much memory is installed in the machine. The client app would probably write something like this to the text file:
820db904-3dd1-4035-ba68-776debc7b796;AGC2010A;5.1.2600.0;1024

Since your defining the file format, the same data will go into the same columns for each line. When you read the line, you use the .Split() method on the string you read to break the line up into an array of strings. You can now go through that array and map each of those strings to the appropriate columns. It's a one-for-one relationship that doesn't change throughout the entire file.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Service or Scheduled Task Pin
epfuller13-May-05 2:03
epfuller13-May-05 2:03 
GeneralRe: Service or Scheduled Task Pin
Dave Kreskowiak13-May-05 12:09
mveDave Kreskowiak13-May-05 12:09 
GeneralRe: Service or Scheduled Task Pin
Anonymous19-May-05 6:12
Anonymous19-May-05 6:12 
GeneralRe: Service or Scheduled Task Pin
epfuller19-May-05 7:48
epfuller19-May-05 7:48 
GeneralFunction Pointers in C# Pin
Vitaly Tomilov11-May-05 9:04
Vitaly Tomilov11-May-05 9:04 
GeneralRe: Function Pointers in C# Pin
DavidNohejl11-May-05 9:21
DavidNohejl11-May-05 9:21 
GeneralRe: Function Pointers in C# Pin
Judah Gabriel Himango11-May-05 9:31
sponsorJudah Gabriel Himango11-May-05 9:31 
GeneralRe: Function Pointers in C# Pin
Vitaly Tomilov11-May-05 22:58
Vitaly Tomilov11-May-05 22:58 
GeneralRe: Function Pointers in C# Pin
Judah Gabriel Himango12-May-05 4:12
sponsorJudah Gabriel Himango12-May-05 4:12 
Generalserial port Pin
gumigyuri11-May-05 8:50
gumigyuri11-May-05 8:50 
GeneralRe: serial port Pin
Dave Kreskowiak11-May-05 9:06
mveDave Kreskowiak11-May-05 9:06 
QuestionHow to know when ThreadPoll is finish? Pin
Snowjim11-May-05 6:59
Snowjim11-May-05 6:59 
AnswerRe: How to know when ThreadPoll is finish? Pin
Snowjim11-May-05 7:10
Snowjim11-May-05 7:10 
AnswerRe: How to know when ThreadPoll is finish? Pin
jklucker11-May-05 7:18
jklucker11-May-05 7:18 
GeneralRe: How to know when ThreadPoll is finish? Pin
Snowjim11-May-05 7:26
Snowjim11-May-05 7:26 
AnswerRe: How to know when ThreadPoll is finish? Pin
S. Senthil Kumar11-May-05 7:25
S. Senthil Kumar11-May-05 7:25 
GeneralC# inserting new XML nodes Pin
c2e11-May-05 6:54
c2e11-May-05 6:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.