Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
QuestionEncode two integers Pin
JoaoPe15-Oct-05 15:48
JoaoPe15-Oct-05 15:48 
AnswerRe: Encode two integers Pin
Rob Philpott15-Oct-05 23:29
Rob Philpott15-Oct-05 23:29 
AnswerRe: Encode two integers Pin
Heath Stewart16-Oct-05 0:17
protectorHeath Stewart16-Oct-05 0:17 
GeneralRe: Encode two integers Pin
JoaoPe16-Oct-05 2:33
JoaoPe16-Oct-05 2:33 
AnswerRe: Encode two integers Pin
Heath Stewart16-Oct-05 17:14
protectorHeath Stewart16-Oct-05 17:14 
QuestionWinService issues Pin
WetRivrRat15-Oct-05 13:42
WetRivrRat15-Oct-05 13:42 
AnswerRe: WinService issues Pin
Heath Stewart16-Oct-05 0:25
protectorHeath Stewart16-Oct-05 0:25 
QuestionRead until "- -" ??? Pin
WetRivrRat15-Oct-05 13:06
WetRivrRat15-Oct-05 13:06 
Hello....
I'm stuck on a piece of logic that i'm sure is pretty simple but i've been thinking about it so long now that my mind has literally stopped working....

With that said...
I am writing events to a log file that i then need to turn around and once a day backup-or move to the db.
Once i begin moving to the db i need to parse the separate fields (date/time, user, event message, priority, etc) into separate columns.

Yes, I am fully aware that it would be easier to just write it to the db from the begining...but every action we call is already going to the db so it doesn't need to be contending with event logs.

So, due to the format of my log files i need to read until "- -" for instance: {username}- -{Event Message}- -{etc...} i then need to send that data to the db to the independant columns.

This of course poses two problems, at least that i can see..first being how do i safely parse the string until i hit the "- -"(i am willing to change that to something more unique if necessary).

and Second...
how do i quickly deposit this to the db? I am doing this at night when 90% of our clients will be closed, but there is that small amount of sites that run 24/7, so it doesn't need to interupt their operations!!!

(oh, by the way i've got about 5 logs to send over and they normaly are 100+k each daily)



string Beautiful;
Beautiful = "ignorant";
label1.Text = "The world is full of " + Beautiful +" people.";

Why is common sense such an un-common comodity?
AnswerRe: Read until "- -" ??? Pin
Robert Rohde15-Oct-05 22:29
Robert Rohde15-Oct-05 22:29 
AnswerRe: Read until "- -" ??? Pin
Scott Serl16-Oct-05 15:00
Scott Serl16-Oct-05 15:00 
Questionvideo streaming, Is it possible Pin
serguey_haftrige15-Oct-05 12:23
serguey_haftrige15-Oct-05 12:23 
AnswerRe: video streaming, Is it possible Pin
leppie15-Oct-05 23:24
leppie15-Oct-05 23:24 
QuestionPersistence Pin
Sled Dog15-Oct-05 11:27
Sled Dog15-Oct-05 11:27 
AnswerRe: Persistence Pin
Rob Philpott16-Oct-05 1:14
Rob Philpott16-Oct-05 1:14 
GeneralRe: Persistence Pin
Sled Dog16-Oct-05 3:54
Sled Dog16-Oct-05 3:54 
GeneralRe: Persistence Pin
Rob Philpott16-Oct-05 4:19
Rob Philpott16-Oct-05 4:19 
GeneralRe: Persistence Pin
Sled Dog16-Oct-05 4:37
Sled Dog16-Oct-05 4:37 
GeneralRe: Persistence Pin
Rob Philpott16-Oct-05 4:54
Rob Philpott16-Oct-05 4:54 
Question"Public Shared" equivalent in VB & Global Pin
Sled Dog15-Oct-05 9:52
Sled Dog15-Oct-05 9:52 
AnswerRe: "Public Shared" equivalent in VB & Global Pin
Sled Dog15-Oct-05 9:59
Sled Dog15-Oct-05 9:59 
AnswerRe: "Public Shared" equivalent in VB & Global Pin
Sled Dog15-Oct-05 11:08
Sled Dog15-Oct-05 11:08 
QuestionDetermining DNS servers with C# Pin
Rob Philpott15-Oct-05 7:45
Rob Philpott15-Oct-05 7:45 
AnswerRe: Determining DNS servers with C# Pin
leppie15-Oct-05 21:24
leppie15-Oct-05 21:24 
GeneralRe: Determining DNS servers with C# Pin
Rob Philpott15-Oct-05 23:54
Rob Philpott15-Oct-05 23:54 
QuestionStill locked in first TextBox Pin
Anonymous15-Oct-05 6:16
Anonymous15-Oct-05 6:16 

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.