Check some of these amazing underwater photos (B&W) taken by Bruce Mozart, who apparently is the world’s first under water photographer.
Very impressive!!!
The Life Aquatic with Bruce Mozert | Photo Gallery
Written by Deepak Vasa - Visit Website
Check some of these amazing underwater photos (B&W) taken by Bruce Mozart, who apparently is the world’s first under water photographer.
Very impressive!!!
The Life Aquatic with Bruce Mozert | Photo Gallery
Written by Deepak Vasa - Visit WebsiteToday, I started playing with the new Visual Studio 2008 Service Pack 1. The download was massive (800mb) and installer wanted 4 gb free, so as a few people around the web have been saying it is almost like a new release (read Visual Studio 2009).
Any ways, coming back to the Dynamic Data Entities, I first saw a glimpse of this feature in Sql Sever 2008 presentation (read my prev. post), and was thinking this is cool, so gave it a go…It was simple in VS 2008 with SP1 you basically go to File > New > and chose ‘Dynamic Data Entities WebApplication’ project; VS gives us the usual web application template along with a new folder called “DynamicData” and this folder contains all the files required to generate dynamic data drive web application. Next click on Add New > ADO.NET Entity Data Model and follow the steps in the wizard. At the end of this step you will have a simple Entity model of the various table from the SQL Server.
With the entity model in place all we have to do now is edit the Global.asax file and read the instructions which are in the comments. I have put in the name of my model and chose true for ScaffoldAllTables.
model.RegisterContext(typeof(MyEntities), new ContextConfiguration() { ScaffoldAllTables = true });
With that step done…did the build and lo..and behold you get this simple interface which lists all the tables in the model and gives the user the ability to page thru the data in each table by rendering the data in Grid View and gives the options to perform CRUD (Create/Read/Update/Delete) operations. The cool thing is till now I haven’t done any code except for editing the above one line.
Search Feature
This is one thing that is currently missing in the entity driven web app. Currently I am investigating how I can implement this feature. If any of you know how, please let me know.
Written by Deepak Vasa - Visit WebsiteI have been reading about SQL Server 2008 for a while and today I got a glimpse of the various features and how it can help developers at the Victoria Dot Net users group meeting. Thanks to the special presentation by Chris Hewitt – “What should developers know about SQL Server 2008?”
A few days ago, I read about the new “File Stream” data type and my initial thoughts were how would I use this new feature and where would this be more usefull, later I realised that I could use the FileStreaming data type to store all the various CSV reports that I generate from our various applications. So effectively instead of storing it on a file server and putting in the reference in SQL, I could easily store the entire CSV file in to SQL Server and let it worry about where and how it stores it. More over I can also have all the report metadata in one location (sweet
.
In the presentation Chris showed us a few examples on how we can send a Table as parameter to Stored Procedures and the new Merge Statement. Well, frankly speaking it took me a few seconds to comprehend the huge benifits of sending in a table as a parameter to a stored procedure. The biggest benifit is the ability to insert large number of rows in one go by passing the data as a table parameter. Previously you could do that with temp tables but those tables were only specific to the stored procedure which creates them, however with this new feature we have some thing on the lines of Global Temp Tables. For more detailed explanation and examples, please refer this article
Coming to the Merge statement that’s another cool feature that has huge number of benefits. In scenarios where you need to to insert, update, or delete data based on certain conditions, programmers have to take care of the actions in the application, however with Merge statements we can do the insert, update or delete in one single statement based on the join conditions. For more information, please refer this article at BuilderAU.
Another cool feature is the Filtered Indexing. As the name suggests, all it means is that when we create Indexes for a table in SQL Server 2008 based on a particular criteria (simple where clause). I am very keen to test this on one our biggest tables (9 million rows and counting). At the moment it takes quite a bit of time to query this table for certain criteria, I would love to do some bench marking on this table and see how efficient the Filtered Indexes are.
Finally a one more interesting feature is the ability to Debug Sql Statements in the same way as .NET code. Chris showed how we could debug any SQL statement or Stored procedure, and also the MS has finally introduced Intellisense for SQL statements. Allthough I have been told that 3rd party tools have been providing SQL intellisense for quite some time now.
For those of you who are interested in other features like Sparse, new DateTime formats, new Convert functionality etc, please refer SQL Server 2008 @ Microsoft.
Written by Deepak Vasa - Visit WebsiteToday, I found this very very useful blog on how to convert ntext fields to nvarchar(max) in Sql 2005. Apparently when converting a field from ntext to nvarchar(max), SQL Server does not change the internal structure and this is bad as the performance slows down significantly. However the following blog has got a simple fix to make SQL do the correct change.
http://geekswithblogs.net/johnsPerfBlog/archive/2008/04/16/ntext-vs-nvarcharmax-in-sql-2005.aspx
Written by Deepak Vasa - Visit WebsiteI brought a iMAC !!!!
Never thought I would say those words…there you go…after two years with out a desktop, I decided that it’s high time to get one. Since I do all my development with my beloved Dell, I needed a machine which can do all my multimedia work…and that’s mainly converting and creating DVD’s from my Handy cam. The answer was simple…get a MAC, so walked in to David Jones yesterday and got one straight away…..setup was a breeze…no messy cables just the Display, Keyboard and mouse.
I should thank my collegue Paul Jones for suggesting I get the 20 inch iMAC with 1 Gb RAM as I can always upgrade the RAM later and that saved me a good $400 and in turn made my decision of getting one faster.
Next, I need to try the boot camp and get Vista for my .NET stuff.
Update 28-Nov-2009:
It’s now more than a year since I got my mac. I should say I am very very happy with and I am using VMWare Fusion to run Windows 2003 and Ubuntu.