Search Results

Showing results 1 to 20 of 20
Search took 0.01 seconds.
Search: Posts Made By: chris5126 ; Forum: C# and child forums
Forum: C# Mar 4th, 2009
Replies: 5
Views: 1,538
Posted By chris5126
sorry should have marked this as solved, i managed to fix i was just being silly thanks for the help though!
Forum: C# Mar 3rd, 2009
Replies: 5
Views: 1,538
Posted By chris5126
hi,

im getting errors heres the code:

for (int i = 1; i<= NoDisks;i++)
{
StreamReader sr = new StreamReader(fileName.FullName);
...
Forum: C# Mar 2nd, 2009
Replies: 5
Views: 1,538
Posted By chris5126
Hi Guys,

I have a file which contains the following info (it realtes to CPU usage):


1 0 2 2
0 10 1 11


It is stored in a text file. I need to read each line in turn into an array and...
Forum: C# Mar 1st, 2009
Replies: 14
Views: 2,480
Posted By chris5126
i know this is really cheeky but can you look at the code and let me know if im doing it right: I have started putting stuff into functions that i will need to use more than once. I would like to put...
Forum: C# Mar 1st, 2009
Replies: 14
Views: 2,480
Posted By chris5126
oh how do i create a method any useful tips or tricks, i really should have learnt c# before deciding to do a project in it!!
Forum: C# Mar 1st, 2009
Replies: 14
Views: 2,480
Posted By chris5126
hi liz,

this works but is it correct and the best way to do it:


public static System.Data.SqlClient.SqlConnection openConnection()
{
//open connection to database
...
Forum: C# Mar 1st, 2009
Replies: 14
Views: 2,480
Posted By chris5126
hmm have heard of it but dont really know too much about it!
Forum: C# Mar 1st, 2009
Replies: 14
Views: 2,480
Posted By chris5126
hi liz,

thank you for you usefull advice i need one more bit of help if thats ok:

My code is below but i need to put certain aspects into functions. e.g having the following in a function...
Forum: C# Mar 1st, 2009
Replies: 3
Views: 708
Posted By chris5126
cool thats very useful,

trying the example you give i then need to open the file and read the lines:



StreamReader objReader = new StreamReader(fi);

But it gives errors:
Forum: C# Mar 1st, 2009
Replies: 3
Views: 708
Posted By chris5126
Hi guys,

I have a program im writing that needs to look for a file in a certain directory then when it find the file add the contents to a database.

I have the program working which does this...
Forum: C# Mar 1st, 2009
Replies: 14
Views: 2,480
Posted By chris5126
hello again,

Right i have now done what i needed to do, i can read from a text file into a sql database!! (code below). Have lots more things to do but for now this is it cheers!!

try
...
Forum: C# Mar 1st, 2009
Replies: 14
Views: 2,480
Posted By chris5126
Yer the SQL stuff and reading the file isnt too bad its the method of actually writing to the database Im stuck on any help??
Forum: C# Feb 28th, 2009
Replies: 14
Views: 2,480
Posted By chris5126
kinda and kinda not!
This is what i do know!
I know i need to read the text file line by line and insert it into the database but obviously there declared as different types so don’t know whether i...
Forum: C# Feb 28th, 2009
Replies: 14
Views: 2,480
Posted By chris5126
Hi guys,

Im trying to create a console app that will read from a text file and import the file into a sql database. I have completed the following already:

Read from a text file and put out to...
Forum: C# Oct 15th, 2008
Replies: 5
Solved: ping program c#
Views: 1,541
Posted By chris5126
Thought that would be my response socket programming here i come!! thanks for all your help liz your a god send!!
Forum: C# Oct 13th, 2008
Replies: 5
Solved: ping program c#
Views: 1,541
Posted By chris5126
Hi liz,

Thank you and i have found a few c# ping programs that do this but I was hoping to use the internal windows ping program is this possible?
Forum: C# Oct 13th, 2008
Replies: 5
Solved: ping program c#
Views: 1,541
Posted By chris5126
Hi guys,

I am creating a monitoring program. I need to create a windows service to send a ping request to a list of servers from a sqp server database then store the results back into a sql server...
Forum: C# Oct 7th, 2008
Replies: 5
Views: 2,971
Posted By chris5126
spot on thanks very much.

Do you have any helpful hints for the code or places I could start looking.
Forum: C# Oct 6th, 2008
Replies: 5
Views: 2,971
Posted By chris5126
hi,

basically i am getting unix servers to write to a shared drive, this needs to be read in by a windows service and added to a sql server database. This i think shld be done by a windows service...
Forum: C# Oct 6th, 2008
Replies: 5
Views: 2,971
Posted By chris5126
HI guys,

I need to create a windows service that runs a constant ping request to a list of servers and puts the data back into a text file for each server. It will read in from a text file with ip...
Showing results 1 to 20 of 20

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC