User Profile

Collapse

Profile Sidebar

Collapse
NickMak
NickMak
Last Activity: Dec 26 '13, 02:51 AM
Joined: Sep 18 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • NickMak
    started a topic Counting the execution time of a Task

    Counting the execution time of a Task

    Hello,
    I am checking out this simple piece of code:
    Code:
    private void button1_Click(object sender, EventArgs e)
            {
                Stopwatch sw = Stopwatch.StartNew();
    
                Task Task1 = Task.Factory.StartNew(() =>
                    {
                        Console.WriteLine("Task1 started in : "+ " "+sw.ElapsedMilliseconds);
                        Thread.Sleep(4000);
    ...
    See more | Go to post

  • NickMak
    started a topic How SqlDataReader Works underneath

    How SqlDataReader Works underneath

    Hello ,my question is theoretical.
    When i make a request from the client(my PC) to the Server(SqlServe r),the data are sent back in packets.In my connection string i wrote:
    Packet Size = 512, which means that each packet(Result Set) will be equal to that.Plus my SqlServer and application are in the same box which means that the buffer is a shared memory in my PC.
    I execute this simple code :

    Code:
    con.open();
    SqlDataReader
    ...
    See more | Go to post
No activity results to display
Show More
Working...