Go to home page mail me! RSS Feed
FoxMetrics Web Analytics

July 2007 Entries

Visual Studio 2008 Beta 2

Microsoft Visual Studio 2008 is now available for download as BETA. Here is the link:

posted @ Saturday, July 28, 2007 4:14 PM | Feedback (0)

SQL Server @@IDENTITY, SCOPE_IDENTITY and IDENT_CURRENT

Ok, these 3 functions could be confusing - I have seen people use these functions in-appropriately, so I decided to put together a basic list of differences between them. These are points that should be noted before using any of these SQL functions included in the title. These functions are very similar and should be used carefully If no inserts occur @@IDENTITY will be NULL If multiple rows are inserted, @@IDENTITY will hold the last identity value generated @@IDENTITY does not revert to the previous setting if the insert/select into statement fails - same applies if the transaction is rolled back. @@IDENTITY and SCOPE_IDENTITY...

posted @ Tuesday, July 17, 2007 4:20 PM | Feedback (0)

Do The Simplest Thing That Could Possibly Work

I came across this article today and it stands side by side with my simple development philoshphy. I strongly believe in writing simple and effective code at all times. If an array will do the job, keep it that way - no interwining code. If time permits I'll come up with a list of my do's and don'ts. Read this article...very interesting.   Source: Do The Simplest Thing That Could Possibly Work

posted @ Tuesday, July 03, 2007 1:50 PM | Feedback (0)

C# - Get short month name from month int value

 Ok, I've been asked one too many times about how to convert a month int value to a short or long month name - so here goes nothing.   1: /// <summary> 2: /// Start program 3: /// </summary> 4: /// <param name="args">Arguaments not required</param> 5: static void Main(string[] args) 6: { 7: for (int month = 1; month < 13; month++) 8: { 9: ...

posted @ Monday, July 02, 2007 9:52 AM | Feedback (5)

Next entries »