adding clientname and date,time in a dataset from a c# application

  • Thread starter Thread starter Lennie
  • Start date Start date
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);



Lennie

Phonera IT-dep
 
WindowsIdentity ??
i dont have the command.
whits using do i hafto import to me application.


Miha Markic said:
Hi Lennie,

WindowsIdentity.GetCurrent().Name

perhaps?


--
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);



Lennie

Phonera IT-dep
 
Hi,

WindowsIdentitiy is defined in
System.Security.Principal

namespace.


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

Lennie said:
WindowsIdentity ??
i dont have the command.
whits using do i hafto import to me application.


Miha Markic said:
Hi Lennie,

WindowsIdentity.GetCurrent().Name

perhaps?
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);



Lennie

Phonera IT-dep
 
Back
Top