Click here to Skip to main content
15,885,914 members
Articles / Operating Systems / Windows
Article

Extracts from MS TechEd 2006

Rate me:
Please Sign up or sign in to vote.
2.29/5 (9 votes)
26 Jun 20065 min read 22.1K   7   2
Recently MicroSoft has conducted Tech Ed 2006 events in various cities. There were different tracks and sessions demonstrating the capabilities of upcoming MS products and technologies. This document summarizes some of these striking technologies and products.

*      Introduction<o:p>

Recently Microsoft has conducted Tech Ed 2006 events in various cities. I could participate in the event at <st1:city w:st="on"><st1:place w:st="on">Bangalore. There were different tracks and sessions demonstrating the capabilities of upcoming <st1:personname w:st="on">MS products and technologies. This document summarizes some of these striking technologies and products.

<o:p> 

*      Threat Modeling

In order to hacker proof your applications you must know the possible ways and means of hackers and the process of Threat modeling using the guidelines and best practices. Thereat modeling is the process of identifying all possible threats to the application, risk due to each threat and mitigation planning for each threat.

<o:p> 

*      Best Practice: Failure of planning is planning for failure. Introduce threat modeling at the early stages of project life cycle. One of the many best practices – never leave any loop holes; always check for specifics.

<o:p> 

//Bad way of Coding

SecurityCheckStatus = CheckSecurity();

If (SecurityCheckStatus != NOT_ENOUGH_CREDENTIALS)

{

          //Allow access

          DoProcess();

}

<o:p> 

//Good way of coding

<o:p> 

SecurityCheckStatus = CheckSecurity();

If (SecurityCheckStatus == ALL_SUCCESS)

{

          //Allow access

          DoProcess();

}

Else

{

          //Deny Access

          AccessDenied();

}

<o:p> 

*      Good news: There is a Threat Modeling tool from Microsoft which helps to automate much of the threat modeling process.

<o:p> 

*      WCF (Windows Communication Foundation)

 “Windows Communication Foundation (formerly code-named "Indigo") is a set of .NET technologies for building and running connected systems. It is a new breed of communications infrastructure built around the Web services architecture. Advanced Web services support in Windows Communication Foundation provides secure, reliable, and transacted messaging along with interoperability. The service-oriented programming model of Windows Communication Foundation is built on the Microsoft .NET Framework and simplifies development of connected systems.

<o:p> 

*      Message: Abstraction is playing it’s role in the upcoming version of .Net Framework 3.0. A whole set of discrete technologies – ASP.Net web services, WSE, .Net Remoting, Enterprise Services and <st1:personname w:st="on">MSMQ are getting replaced by WCF in .Net Framework 3.0.

<o:p> 

*      Good News: WCF will be the single technology platform from <st1:personname w:st="on">MS for connected systems development. But you have to wait for .Net Framework 3.0!

<o:p> 

*      Managed Code in SQL Server 2005

In SQL server 2005, it is possible to write managed .Net Code (C#, VB.Net for the time being). All the functionality of TSQL can be implemented using this managed code hosted in SQL Server 2005.

<o:p> 

*      Best Practice: It is not a good idea to always use the managed code in SQL Server 2005 and completely avoid stored procedures, simply because it is possible! The best practice is to use TSQL for straight queries (simple queries or having many joins) and managed code for processes/calculations involving queried data. The overload that the managed code is adding on to SQL Server is also to be considered before using it.

<o:p> 

*      Good News: OOPS in SQL Server also! Say we need to store the co-ordinates of a straight line joining points A and B, in SQL Server table. Our table definition would normally contain the following columns

<o:p> 

Create table  LineTable  (XaxisA int, YAxisA int, XaxisB int, YAxisB int)

<o:p> 

These are almost redundant! Now, in SQL Server 2005, you can define a managed struct named ‘Point’ with integer properties ‘X’ and ‘Y’ and host this code in SQL Server. Then your table definition would be

<o:p> 

Create table  LineTable (PoinA point, PointB point)<o:p>

<o:p> 

You can use object oriented constructs like

<o:p> 

Select PointA.X, PointB.Y From LineTable

<o:p> 

Good bye to debugging lengthy Stored Procedures. Now it is possible use managed .Net code in SQL Server 2005. Gen X needs to learn only C# and it will work for both friend end and back end!

<o:p> 

*      LINQ (Language Integrated Natural Query)<o:p>

“Rather than add relational or XML-specific features to our programming languages and runtime, with the LINQ project we have taken a more general approach and are adding general purpose query facilities to the .NET Framework that apply to all sources of information, not just relational or XML data. This facility is called .NET Language Integrated Query (LINQ).”<o:p>

<o:p> 

*      Message: Abstraction is on the stage again! LINQ is your gateway abstract base for all sorts of queries in .Net. And then, you have more specific DLINQ (Data LINQ) for relational data access, XLINQ (XML LINQ) for XML etc..

<o:p> 

*      Good News: Fed up with inline queries in C# which will show errors only in run time?  LINQ is for you! It is a .NET query system which the .NET compiler can fully understand. Another advantage is that instead of using entirely separate query mechanisms (SQL,  XQuery etc..) for different types of data such as relational or XML, now you can use a unified Natural Query for all kinds of data. Again, learning curve is reduced for Gen X ! But you will have to wait for .Net Framework 3.0 to get this feature.

<o:p> 

*      OR (Object Relations)

Now you have ADO.NET, data access application blocks etc.. But wait for DLINQ! It includes a command line tool called SQLMetal.exe that runs against a specific database and auto-generates classes. One of the classes it generates represents the database itself which can perform all the database operations.

<o:p> 

*      Good News: Forget ADO.NET! Now data access is going to be as simple as this!

<o:p> 

NorthWindDB myDB = new NorthWindDB(“connection string”);

DataRow myProduct = myDB.Products.NewRow();

myDB.Products.Add(myProduct);

<o:p> 

Guess what it does?  It has created an object having exact structure of NorthWind DB, opened a connection to the DB and added a new record to Products table! Where is all that SqlConnection, SqlCommand, SqlDataAdapter and ‘INSERT INTO.. ‘ ? It is all done internally! Wait for .Net Framework 3.0 and all these are going to be reality!

<o:p> 

*      DMV (Dynamic Management Views)

It is a special type of views in SQL Server 2005. These views provide changing server state information. They contain metadata that is not persisted on disk but stored in memory only. Dynamic management views can be used to answer diagnostic questions.

<o:p> 

*      Good News: Are you tired of trouble shooting long running queries and deadlocks? Is it nearly impossible to pin-point the problem maker query? Dynamic Management views are there to reduce your work load! These views contain all kind of online statistical information such as re-compiled queries, missing indexes, query causing deadlock etc..

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
Pls visit my site at www.geocities.com/josekonoor

josekonoor@yahoo.com

Comments and Discussions

 
GeneralOR (Object Relations) Pin
ZAky4-Jul-06 22:56
ZAky4-Jul-06 22:56 
The minute you wrote
DataRow myProduct = myDB.Products.NewRow();
You stayed with the familiar TypeDadaset.
What if your class is not stored in a single table?
You can't hide from NHibernet this is the only good OR solution outside of mssql 2005.



ZAky

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.