Monday, June 30, 2014

How to Implement Timer for Windows 8.1 Store App in C#

Will this do the trick?



DispatcherTimer timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(10);
timer.Tick += timer_Ticker;
timer.Start();

private void timer_Ticker(object sender, EventArgs e)
{
// Do stuff
}


How to Implement Timer for Windows 8.1 Store App in C#

Thank you OlofPetterson It Solved my issue exactly.

RealProxy and Abstract Type

Hi,


You can't use RealProxy directly anyway, becuase its an abstract class. In your implementation of the concrete sub-class, you can introduce the MarshalByRefObject. The example code on the MSDN page shows how to do this (http://ift.tt/V2lo9R)


Regards,

Nick.


Need help in UPDATE data in SQL Query

Hi all,


I am trying to update data in the sql table as per below screenshot but couldn't able to do it. Can anyone help to update the data as I mention in screenshot.Appreciate you help.Thanks.


Yellow highlighted columns are source


Green highlighted columns are target



Colored data should be update as per source data in sql table.Data is not static as it might have more rows to update and query should be bit dynamic.




Maruthi...



Need help in UPDATE data in SQL Query

Is there a timestamp column which is used to order the rows in the display? If yes, that can be used to fill the empty cells.


UPDATE blog: http://ift.tt/1r45AAn




Kalman Toth Database & OLAP Architect SQL Server 2014 Design & Programming

New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012















Need help in UPDATE data in SQL Query

Hi Kalman,


yes I do have a timestamp column...But how can I do that?




Maruthi...


Need help in UPDATE data in SQL Query


Hi Kalman,


yes I do have a timestamp column...But how can I do that?




Maruthi...




UPDATE T SET WeekName = ISNULL(WeekName , (SELECT TOP 1 WeekName FROM YrTable WHERE timestamp < T.TimeStamp AND WeekName IS NOT NULL ORDER BY TimeStamp DESC))

FROM YrTable T







Thanks and regards, Rishabh K