adding data,time and computername to a dataset

L

Lennie

Hello..



I have a problem in a c# application.

I have a dataset that have a table cald tblcounter in this table I have 2
columns

Computer_name and datetime.

In the computer_name I want to store the clientnamn and in datetime I want
to store the date and time the clientnamn was enter in the table



This is the C# code I am using.

DataRow anyRow = tblcounter.NewRow();

anyRow["processor"] = perf_processor_time.NextValue();

anyRow["memory_fri"] = perf_memory_fri.NextValue();

// the code to add clientnamn and date,time



tblcounter.Rows.Add(anyRow);
 
L

Lennie

Hello.
yes.. i know. and thank you for the answer.
but i still having some problem whit the date,time to be add to the dataset


Miha Markic said:
Lenni, I've already responded you:
WindowsIdentitiy.GetCurrent().Name

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

Lennie said:
Hello..



I have a problem in a c# application.

I have a dataset that have a table cald tblcounter in this table I have 2
columns

Computer_name and datetime.

In the computer_name I want to store the clientnamn and in datetime I want
to store the date and time the clientnamn was enter in the table



This is the C# code I am using.

DataRow anyRow = tblcounter.NewRow();

anyRow["processor"] = perf_processor_time.NextValue();

anyRow["memory_fri"] = perf_memory_fri.NextValue();

// the code to add clientnamn and date,time



tblcounter.Rows.Add(anyRow);
 
M

Miha Markic

DateTime.Now?

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

Lennie said:
Hello.
yes.. i know. and thank you for the answer.
but i still having some problem whit the date,time to be add to the dataset


Miha Markic said:
Lenni, I've already responded you:
WindowsIdentitiy.GetCurrent().Name
have
2
columns

Computer_name and datetime.

In the computer_name I want to store the clientnamn and in datetime I want
to store the date and time the clientnamn was enter in the table



This is the C# code I am using.

DataRow anyRow = tblcounter.NewRow();

anyRow["processor"] = perf_processor_time.NextValue();

anyRow["memory_fri"] = perf_memory_fri.NextValue();

// the code to add clientnamn and date,time



tblcounter.Rows.Add(anyRow);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top