July 2004 - Posts

SQL Server 2005 Yukon clustering

Despite all my love for SQL Server and Yukon(for it's BI features) I am frustrated by it less then optimal clustering features. Now,
since the launch of the SQL Server 2005 Yukon Beta 2 was yesterday, I don't want to be a party pooper or risk a future "red pill" offer.
But, historically Oracle and DB2 have been more advanced in high availability and I hoped that SQL Server would catch up on the clustering side. But even in it's 2005 incarnation it didn't. MySQL seems to have done it, albeit I don't have the details ready.

"My" sort of clustering would have meant a sort of load balancing, at least for read-only operations. Considering reporting or applications like .Text, where reads make up at least 95% of the total load. Probably more than 80% of applications do m ore than 80% of reads. That means that you could cluster 5 boxes in load balancing, of which 1 does the writing - CRUD stuff - and the other 4 do the reading. Of the 4 one could even do the admin stuff(index building, DBCC checking), so that the 1 is free of admin work. If the "writing" box failed, the cluster would just shift the "write" duty to a "read" box and/ot eventually shift the responsability of  "admin" work onto another box.

Pretty simple really. One of the the many instances would hold a "write lock", the others a "read-only" lock. No need for super cmplex DLM (distributed lock management) on the database files, no need to duplicate database files, do partitioned views, implement shared disk or other quirky linked server stuff. Done cleanly it would be easy to switch the "write" capabilities off during forced or unforeseen maintainance, letting users view their data, but not modify. Design and testing would could also be done much easier. Downtime, patching would not be a problem on a live server anymore. Consolidation would even be a lot easier.

I blame the possessive DB instance not sharing the database files, nobody else.

SQL SERVER Yukon Beta 2 is out

SQL SERVER Yukon Beta 2  is out for all MSDN subscribers

PHP vs ASP.NET Oracle FUD

Bertrand Le Roy fights back Oracle's article about ASP.NET vs PHP  with a rebuttal .

On the security of Apache/PHP vs ASP.NET/IIS  I have posted this:
http://dotnetjunkies.com/weblog/stefandemetz/posts/10465.aspx
http://dotnetjunkies.com/weblog/stefandemetz/posts/10388.aspx

What features does ASP.NET still need after Whidbey?

IMHO
workflow engine
web based job scheduler(DTS)
easier handling of stored procedures
better SQL injection/cross site scripting pretenction/prevention

Will Monad be a popular dev env?

Will Monad be a popular application development environment like the Unix shell(s)??
Will Monad be use in client server batch and remoting application development scenarios like SSH?

ASP.NET popup user notification with JS alert, popup, custom label

since I hate the front-end GUI stuff part of web development I always had issues of how to
inform users of particular events. Tired of this, I whipped up a small class to handle these user notifications

here's the code:

Namespace DemDiagnostic

' opens new window with defined error message

Public Class DemErrorNotification

' tytpes of user error notification

Public Enum DisplayType

ALERT ' javascript alert

DISPLAY ' put on errorLabel

POPUP ' pop up

End Enum

' check type of notification and proceed accordingly

Sub notifyError(ByVal curpage As System.Web.UI.Page, ByVal DisplayType As String, ByVal MsgStr As String)

Select Case DisplayType

Case DemErrorNotification.DisplayType.ALERT

displayOnAlert(MsgStr)

Case DemErrorNotification.DisplayType.DISPLAY

displayOnLabel(curpage, MsgStr)

Case DemErrorNotification.DisplayType.POPUP

displayOnNewPage(MsgStr)

Case Else

End Select

End Sub

' popup alert message with ok button

Sub display(ByVal message As String)

HttpContext.Current.Response.Write(" ")

Dim writestring As String

writestring = "myWindow = window.open('','tinyWindow','width=400,height=400,toolbar=no,directories=no');" & " myWindow.document.write(' " & message + "');" & "myWindow.document.bgColor='red';" & " myWindow.document.write('


');" & "myWindow.document.write('');"

HttpContext.Current.Response.Write(writestring)

HttpContext.Current.Response.Write(" ")

End Sub

' puts message on errorLabel component of Page

Function displayOnLabel(ByVal curpage As System.Web.UI.Page, ByVal message As String)

Dim errorlbl As DemWeb.DemUI.DemWebControls.DemErrorLabel

errorlbl = CType(curpage, System.Web.UI.Page).FindControl("ErrorLabel")

errorlbl.addMsg(message)

Return message

End Function

' creates new page with message and close button

Sub displayOnNewPage(ByVal message As String)

HttpContext.Current.Response.Write(" ")

Dim writestring As String

writestring = "myWindow = window.open('','tinyWindow','width=400,height=400,toolbar=no,directories=no');" & " myWindow.document.write(' " & message + "');" & "myWindow.document.bgColor='red';" & " myWindow.document.write('


');" & "myWindow.document.write('');"

HttpContext.Current.Response.Write(writestring)

HttpContext.Current.Response.Write(" ")

End Sub

' writes a javascript alert

Sub displayOnAlert(ByVal MsgStr As String)

HttpContext.Current.Response.Write(" alert('" & MsgStr & "') ")

End Sub

End Class

End Namespace


 

 

some ASP.NET popup links:

http://weblogs.asp.net/miked/archive/2004/02/11/71506.aspx
http://www.mblog.com/lakshmi/046073.html
http://www.dotnetjohn.com/articles/articleid112.aspx
http://weblogs.asp.net/jgalloway/archive/2003/11/21/39042.aspx
http://dotnetjunkies.com/WebLog/jmeeker/archive/2003/12/01/4122.aspx
http://weblogs.asp.net/sonukapoor/archive/2004/05/02/124777.aspx
http://davidhayden.com/blog/dave/archive/2004/03/16/178.aspx
http://dotnetjunkies.com/WebLog/whoiskb/archive/2004/06/01/14899.aspx
http://www.tanguay.info/superblog/sb.aspx?p=codeExamples&id=7846009
http://weblogs.asp.net/kwarren/archive/2004/04/16/114380.aspx

ADO.NET guru has a blog

ADO.NET Guru Angel Saenz-Badillos has a blog at http://weblogs.asp.net/angelsb/  :)) Hopefully David Sceppa will also join the blogophere soon !!

 

Monad - petition

Can Monad be included in the Whidbey beta 2,
please please please.

 

Vote here on MSDN for Monad