Bali Trip!
May 26th, 2007 — ¥ong¥s
I just back from bali for my holiday. It was a nice trip. I spent 4 days there. I didnt went to a lot tourist spot. Just take a rest there. Here the beach in front of my hotel!

I just back from bali for my holiday. It was a nice trip. I spent 4 days there. I didnt went to a lot tourist spot. Just take a rest there. Here the beach in front of my hotel!

Recently, I had release www.ajaxworkspace.com beta version 0.9.5. I had fixed quite number of bugs in various modules cause by MS ASP.NET AJAX Jan CTP (MS ASP.NET AJAX v1.0 valiVator issues). This is only a temporary work around. Hopefully, it will be solved once my hosting company ready to patch the HotFix. Besides, I also add in workspace and project statistic section which I think is a “nice to have” features.
Workspace Statistic

Project Statistic

Writing custom properties for your own web part isn’t that complex. Here is a simple example to do that.
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Serialization;
using System.Web.UI.WebControls.WebParts;
namespace SampleWebPart
{
[DefaultProperty("DisplayText"),
ToolboxData("<{0}:Sample runat=server></{0}:Sample>"),
XmlRoot(Namespace = "SampleWebPart")]
public class Sample : WebPart
{
private string displayText = “Hello World!”;
[WebBrowsable(true), Personalizable(true)]
public string DisplayText
{
get { return displayText; }
set { displayText = value; }
}
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
writer.Write(displayText);
}
}
}
I guess everybody know that MS ASP.NET AJAX is having problem on.net validation controls. This issues exists long time ago and become a hot topic in ajax.asp.net community forum. What happen to Microsoft? The final release is put up with no notice about the fact that this requires some other update which has not been released.
Now, there is a HotFix to solve this problem:
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=6106
Does this mean that all my problems solved? Unfortunately, it is not. My web hosting upgraded ASP.NET AJAX from RC version to v1.0. That time, I have to recompile all my sources and upload it. Then, all my application’s validation failed. Now, there is a HotFix from Microsoft. But my hosting company does not want to install the patch due to overall stability reason. In that case, if Microsoft does not release the update until end of the year, does this means that I need to use the corrupted AJAX version until that time? I am waiting their reply after submit and explain my second request. If they still do not want to patch the HotFix, I think is time for me to switch away from them. This kind of AJAX features means nothing to us since the simple validation failed.
Do you ever get “Function sequence error” when running bcp with xp_cmdshell? The stored procedure executed fine.
SQLState = HY010, NativeError = 0
Error = [Microsoft][SQL Native Client]Function sequence error
NULL
I am not sure my solution can 100% solve the error, but it works in my machine. The trick is to turn on “Database Mail (Enable database stored procedures)” in “Surface Area Configuration for Features”. Try to run again and the error will gone!

*You may encounter this error while testing on the sample in “How to import multiple CSV files using MS SQL store procedure?“
I believe task management play a very important role in project management and online collaboration. Task management can be very simple such as your personal task which reminds you do something. It also can be very complex which involves multiple parties, getting approval from someone, running parallel, etc. Each type of task management is targeting to different type of user group. Hence, the task management under ajaxworkspace.com (which explained in online collaboration for teamwork and project management) is targeting to intermediate user such as freelancer and small-midsized project.
Task management allows user organize task including simple task, checked task and approval task among your team members by project or organization. Here the details:
Simple Task
Simple task is selected when creator does not need to verify the task’s result. E.g. task remind someone to read a proposal.

Checked Task
Checked task is selected when creator or someone need to verify the task’s result. E.g. task request someone to complete a presentation document. Once completed, the task will route back to person who process for verification.

Approval Task
Approval task is selected when the task need approval before it can be start. Someone also needs to verify the task’s result at the end. E.g. task request someone to update a new sales quotation after get an approval from sales manager.

Each task contains different type of actions:
Anyone who interested to use this task management can go to www.ajaxworkspace.com. It is free. Feel free to drop me any comment so that I can improve it!
Do you ever come across customer’s requirement to convert text (like NEWS) to speech files such as wav, mp3, etc easily? Especially the customer wants to create mp3 directly and attaches it to the news he has just published in MOSS. Here is a good start… http://www.codeproject.com/audio/speech.asp
In this project they made an application program for Text-to-Speech Conversion. To build this application, we must install the SDK speech from Microsoft on our computer (download Speech SDK (it’s free) from http://www.microsoft.comm/speech)
The SAPI API provides a high-level interface between an application and speech engines. SAPI implements all the low-level details needed to control and manage the real-time operations of various speech engines. As mentioned it will required some custom code.
“It is very troublesome to set up a link server to oracle”. I totally agree with that. Once you get any error from that, it is very hard to find out the actual problem out there. Here is a link that lists out steps to set up and troubleshoot a linked server to an Oracle database in SQL Server:
http://support.microsoft.com/kb/280106
If these steps do not able to solve your problem, you probably will stop at there. So far I do not find a better one online unless getting help for some guru.
You probably encounter issue where you have large transaction log but small data file, e.g 40GB transaction log and 60MB database.
Take a look at: http://support.microsoft.com/kb/317375/en-us
Unreplicated transactions
The transaction log size of the publisher database can expand if you are using replication. Transactions that affect the objects that are replicated are marked as “For Replication.” These transactions, such as uncommitted transactions, are not deleted after checkpoint or after you back up the transaction log until the log-reader task copies the transactions to the distribution database and unmarks them. If an issue with the log-reader task prevents it from reading these transactions in the publisher database, the size of the transaction log may continue to expand as the number of non-replicated transactions increases. You can use the DBCC OPENTRAN Transact-SQL reference to identify the oldest non-replicated transaction.
For more information about troubleshooting unreplicated transactions, see the “sp_replcounters” and “sp_repldone” topics in SQL Server Books Online.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
306769 FIX: Transaction log of snapshot published database cannot be truncated
240039 FIX: DBCC OPENTRAN does not report replication information
198514 FIX: Restore to new server causes transactions to remain in log
These are some of the actions they took to solve the problems:
If you trying to extract data from a flat file and got the following error:
Error 1 Validation error. Extract Interface Message ID Data: Extract Interface Message ID Data [1]: The data type for “output column “InterfaceMessageBody” (54)” is DT_NTEXT, which is not supported with ANSI files. Use DT_TEXT instead and convert the data to DT_NTEXT using the data conversion component.
It looks like one or more column datatype in the FlatFile Source has become DT_NTEXT instead of DT_STR.
You can try the following steps to rectify the error:
* Thanks to Ritesh Modi for the solution.