Windows Phone 8 SDK Download
Links and Resources
31 days of windows 8 development course
CREATE TABLE Employee ( ID INT, EmpName varchar(200), Department varchar(200), DOB DateTime );
private void loadDataBySQLBulkCopy()
{
DataTable dtTblEmployee = new DataTable();
dtTblEmployee.Columns.Add("ID", typeof(Int32));
dtTblEmployee.Columns.Add("EmpName", typeof(String));
dtTblEmployee.Columns.Add("Department", typeof(String));
dtTblEmployee.Columns.Add("DOB", typeof(DateTime));
DataRow dtrow = dtTblEmployee.NewRow(); // Create New Row
dtrow["ID"] = 1; //Bind Data to Columns
dtrow["EmpName"] = "Wazeem";
dtrow["Department"] = "Admin";
dtrow["DOB"] = "1990-10-16 12:00:00.000";
dtTblEmployee.Rows.Add(dtrow);
dtrow = dtTblEmployee.NewRow(); // Create New Row
dtrow["ID"] = 2; //Bind Data to Columns
dtrow["EmpName"] = "Aslam";
dtrow["Department"] = "HR";
dtrow["DOB"] = "1987-05-16 12:00:00.000";
dtTblEmployee.Rows.Add(dtrow);
dtrow = dtTblEmployee.NewRow(); // Create New Row
dtrow["ID"] = 3; //Bind Data to Columns
dtrow["EmpName"] = "John";
dtrow["Department"] = "Finance";
dtrow["DOB"] = "1992-12-11 12:00:00.000";
dtTblEmployee.Rows.Add(dtrow);
dtrow = dtTblEmployee.NewRow(); // Create New Row
dtrow["ID"] = 4; //Bind Data to Columns
dtrow["EmpName"] = "Mishal";
dtrow["Department"] = "Infra structure";
dtrow["DOB"] = "1989-04-01 12:00:00.000";
dtTblEmployee.Rows.Add(dtrow);
SqlBulkCopy bulkCopy = new SqlBulkCopy(
"server=TEST;database=TEST;uid=test;password=test",
SqlBulkCopyOptions.TableLock);
bulkCopy.DestinationTableName = "dbo.Employee";
bulkCopy.WriteToServer(dtTblEmployee);
}
WITH Q as(select top 100 * from My_Table order by DATE desc)UPDATE QSET Status = 0
WHILE exists ( SELECT * FROM myTable WHERE name like ‘%ab%’ ) DELETE TOP (50000) scanned_cont_dtls WHERE name like ‘%ab%’;